From 62f3ac48bb3daf50dab67a97e7a594cea23354eb Mon Sep 17 00:00:00 2001 From: MEUNIER Thibaud Date: Thu, 11 Nov 2021 11:51:43 +0100 Subject: [PATCH] temporaire --- index.php | 17 +++++++++--- js/blockexplorer.js | 67 ++++++++++++++++++++++----------------------- 2 files changed, 45 insertions(+), 39 deletions(-) diff --git a/index.php b/index.php index 3970bcc..a56afa8 100644 --- a/index.php +++ b/index.php @@ -39,10 +39,15 @@ $(window).scroll(function() { if (isInViewport(document.querySelector('footer'))) { - blockchainExplorer.addBottomBlock(); + //blockchainExplorer.addBottomBlock(); console.log("Scroll to footer detected !"); } - /* + + if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) { + // blockchainExplorer.addBottomBlock(); + console.log("Scroll to footer detected !"); + } + $(".slideanim").each(function(){ var pos = $(this).offset().top; var winTop = $(window).scrollTop(); @@ -51,10 +56,10 @@ $(this).addClass("slide"); } }); - */ + }); - blockchainExplorer.init(2); + blockchainExplorer.init(0); //toggleInfos(); }); @@ -129,6 +134,10 @@
+
+ Click to see more blocks +
+