From b02f813e519dc890f2eb4827ff52cff3ff90c828 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 19 Jun 2022 12:47:32 -0700 Subject: v0.1.0 --- static/js/footerscript.js | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 static/js/footerscript.js (limited to 'static/js/footerscript.js') diff --git a/static/js/footerscript.js b/static/js/footerscript.js deleted file mode 100644 index 69e56e7..0000000 --- a/static/js/footerscript.js +++ /dev/null @@ -1,44 +0,0 @@ -var imgs = document.querySelectorAll('#img'); -var imgArray = [].slice.call(imgs); - -imgArray.forEach(function(img, i){ - img.addEventListener("click", function(e){ - var id = img.getAttribute("id"); - var media = document.getElementById("media-" + id); - var sensitive = document.getElementById("sensitive-" + id); - - if(img.getAttribute("enlarge") == "0") - { - var attachment = img.getAttribute("attachment"); - img.setAttribute("enlarge", "1"); - img.setAttribute("style", "float: left; margin-right: 10px; cursor: pointer;"); - img.src = attachment; - } - else - { - var preview = img.getAttribute("preview"); - img.setAttribute("enlarge", "0"); - if(img.getAttribute("main") == 1) - { - img.setAttribute("style", "float: left; margin-right: 10px; max-width: 250px; max-height: 250px; cursor: pointer;"); - img.src = preview; - } - else - { - img.setAttribute("style", "float: left; margin-right: 10px; max-width: 125px; max-height: 125px; cursor: pointer;"); - img.src = preview; - } - } - }); -}); - - -function viewLink(board, actor) { - var posts = document.querySelectorAll('#view'); - var postsArray = [].slice.call(posts); - - postsArray.forEach(function(p, i){ - var id = p.getAttribute("post"); - p.href = "/" + board + "/" + shortURL(actor, id); - }); -} -- cgit v1.2.3