add resize
This commit is contained in:
@@ -5,31 +5,7 @@ function wrap(){
|
||||
|
||||
$(document).ready(function() {
|
||||
// wrap();
|
||||
|
||||
$(window).on("load resize", function() {
|
||||
|
||||
var windowWidth = $(window).width();
|
||||
var windowHeight = $(window).height();
|
||||
var v1Width = $("#récit").width()
|
||||
|
||||
|
||||
$("#récit").resizable({
|
||||
minWidth: 50,
|
||||
maxWidth: windowWidth - 80,
|
||||
maxHeight: windowHeight * (.83)
|
||||
}).on("#resize", function() {
|
||||
|
||||
if (v1Width == $("#récit").width()) {
|
||||
$("#interview").height(0)
|
||||
}
|
||||
v1Width = $("#interview").width()
|
||||
});
|
||||
|
||||
$("#interview").resizable({
|
||||
maxHeight: windowHeight * (.83)
|
||||
}).on("#resize", function() {
|
||||
$("#récit").height(0)
|
||||
});
|
||||
$(".blocs").resizable();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{% set grid_size = theme_var('grid-size') %}
|
||||
{% set image = page.media.images|first %}
|
||||
|
||||
<h2>{{ header.title }}</h2>
|
||||
|
||||
{{ content }}
|
||||
|
||||
Reference in New Issue
Block a user