add resize

This commit is contained in:
2018-07-11 18:32:33 +02:00
parent f857767bc2
commit 8e6325e94a
2 changed files with 3 additions and 25 deletions
+1 -25
View File
@@ -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 }}