add resize
This commit is contained in:
@@ -5,31 +5,7 @@ function wrap(){
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// wrap();
|
// wrap();
|
||||||
|
|
||||||
$(window).on("load resize", function() {
|
$(window).on("load resize", function() {
|
||||||
|
$(".blocs").resizable();
|
||||||
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)
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
{% set grid_size = theme_var('grid-size') %}
|
{% set grid_size = theme_var('grid-size') %}
|
||||||
{% set image = page.media.images|first %}
|
{% set image = page.media.images|first %}
|
||||||
|
|
||||||
|
<h2>{{ header.title }}</h2>
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|||||||
Reference in New Issue
Block a user