aboutsummaryrefslogtreecommitdiff
path: root/static/js/footerscript.js
diff options
context:
space:
mode:
authorFChannel <>2022-06-19 12:47:32 -0700
committerFChannel <>2022-06-19 16:03:29 -0700
commitb02f813e519dc890f2eb4827ff52cff3ff90c828 (patch)
treed020fbdefda52542aab3f4250bf93533e9f38504 /static/js/footerscript.js
parentcd99df8d6781c3f0a191d119ea0ddf8c4a16089f (diff)
v0.1.0
Diffstat (limited to 'static/js/footerscript.js')
-rw-r--r--static/js/footerscript.js44
1 files changed, 0 insertions, 44 deletions
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);
- });
-}