From: Elijah Cohen Date: Fri, 29 Jan 2021 03:56:55 +0000 (-0600) Subject: better stylings mostly X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=4de46b8f378c6fe005a888e1c7914449efb11a91;p=comics better stylings mostly --- diff --git a/comics.js b/comics.js index 22800e9..491ce6a 100644 --- a/comics.js +++ b/comics.js @@ -10,9 +10,18 @@ function onload() { num = window.location.search.substring(window.location.search.indexOf('=')+1) + setorig(num) getimageurl(num) } +function setorig(num) { + div = document.getElementById("original") + a = document.createElement('a') + a.innerHTML = "original" + a.href = "https://qwantz.com/index.php?comic=" + num + div.appendChild(a) +} + function getimageurl(number) { number = (number == "") ? 0 : number // takes the comic no (from the ?comic=<>) and gets the url we want diff --git a/index.html b/index.html index 03f0791..e839319 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,20 @@ Comics + - - + +
+

Comics

+
+
+ +
+
+

This is Ryan North's Dinosaur Comics, but without the dinosaurs. Hence, "Comics". It's... a different experience

+
+
+
diff --git a/node/runner.sh b/node/runner.sh index 89ad5cf..a1a6197 100755 --- a/node/runner.sh +++ b/node/runner.sh @@ -2,8 +2,4 @@ # runner for comics api thingy -touch ~/comics/node/hasrun -while : -do - node index.js -done +node index.js