From 4de46b8f378c6fe005a888e1c7914449efb11a91 Mon Sep 17 00:00:00 2001 From: Elijah Cohen Date: Thu, 28 Jan 2021 21:56:55 -0600 Subject: [PATCH] better stylings mostly --- comics.js | 9 +++++++++ index.html | 15 +++++++++++++-- node/runner.sh | 6 +----- 3 files changed, 23 insertions(+), 7 deletions(-) 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 -- 2.39.2