From aac90540f5ef091070c394a23aa4cfc80f0595c1 Mon Sep 17 00:00:00 2001 From: johan Date: Mon, 9 Jan 2023 11:16:03 +0100 Subject: [PATCH] padding --- static/css/main.css | 2 +- static/js/main.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/css/main.css b/static/css/main.css index 2f686b0..717ece1 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -265,7 +265,7 @@ button[type="submit"]:hover { } .treasure { - padding: 0 20px 30px 0px; + padding: 0 20px 20px 20px; } .treasure-submitted { diff --git a/static/js/main.js b/static/js/main.js index 7010c80..b609081 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -10,6 +10,8 @@ window.onpopstate = history.onpushstate = function(e) { }; history.pushState("#main-page", "", "") +var save_udpate= null; + function show_page(id, historyPush) { //si le z-index de la nouvelle page est inférieur on fait un transi 'forward' sinon 'backward' for(i in page) { @@ -21,6 +23,15 @@ function show_page(id, historyPush) { $hs.addClass('away'); $id = $(id).show(); + /*if(id == "#demande-page") { + save_udpate = setInterval(() => { + let save_scroll = $(window).scrollTop(); + updateDemandes(); + $(window).scrollTop(save_scroll); + }, 5000); + } else if (!save_udpate) { + clearInterval(save_udpate); + }*/ if(!historyPush) { history.pushState(id, "", "")