From db1c6676a13798ee57dbac429a1d5045b60356fb Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Thu, 30 Apr 2026 22:01:53 +0800 Subject: quite a big commit --- scripts/onload.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 scripts/onload.js (limited to 'scripts/onload.js') diff --git a/scripts/onload.js b/scripts/onload.js deleted file mode 100644 index 10dcf1d..0000000 --- a/scripts/onload.js +++ /dev/null @@ -1,25 +0,0 @@ -function addNodes() { - const collection = document.getElementsByTagName("section"); - const container = document.getElementById("progressContainer"); - - for (var i = 0; i < collection.length; i++) { - var node = document.createElement("a"); - node.className = "node"; - container.appendChild(node); - if (collection.item(i).getAttribute('id') == null) { - collection.item(i).setAttribute('id', `section-${i}`); - } - node.setAttribute('id', `node-${i}`) - node.href = `#${collection.item(i).getAttribute('id')}` - } -} - -function blog(n) { - // addNodes is called in loadPost(n); - loadPost(n); -} - -function index() { - postList(2); - addNodes(); -} -- cgit v1.2.3