53 lines
846 B
Twig
53 lines
846 B
Twig
|
{% extends "base.html.twig" %}
|
||
|
|
||
|
{% block localstyle %}
|
||
|
html {
|
||
|
height:100%;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
overflow: hidden;
|
||
|
height:100%;
|
||
|
}
|
||
|
|
||
|
#main {
|
||
|
padding-right: 0px;
|
||
|
}
|
||
|
.contentsidebar {
|
||
|
margin-left: 235px;
|
||
|
}
|
||
|
|
||
|
iframe {
|
||
|
width: 100%;
|
||
|
border: none;
|
||
|
}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<iframe id="frameresized" src="{{url}}"></iframe>
|
||
|
{% endblock %}
|
||
|
|
||
|
|
||
|
|
||
|
{% block localjavascript %}
|
||
|
$(window).resize(function() {
|
||
|
resizeFrame();
|
||
|
});
|
||
|
|
||
|
$('document').ready(function(){
|
||
|
resizeFrame();
|
||
|
});
|
||
|
|
||
|
function resizeFrame() {
|
||
|
|
||
|
var heightbody = $('html').height();
|
||
|
|
||
|
|
||
|
var heightframe = heightbody;
|
||
|
|
||
|
if($("#frameresized").length>0) {
|
||
|
$("#frameresized").height(heightframe);
|
||
|
}
|
||
|
}
|
||
|
{% endblock %}
|