From bd9536ee06890c07456337fec3e7a916e03d8f6e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 22:27:54 +0800 Subject: re build index.js --- dest/js/index.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/dest/js/index.js b/dest/js/index.js index bb886053..9a390c31 100644 --- a/dest/js/index.js +++ b/dest/js/index.js @@ -1,13 +1 @@ -"use strict"; - -var obj = document.getElementById('infos'); -var topBar = document.getElementById('navBarHeader'); -window.addEventListener('scroll', function () { - var value = window.scrollY; - obj.style.marginTop = value * 2.5 + 'px'; - console.log("=============="); - console.log(topBar.style.height); - console.log(value); -}, { - passive: true -}); \ No newline at end of file +"use strict"; \ No newline at end of file -- cgit v1.2.3