]> git.eli173.com Git - comics/commitdiff
better stylings mostly
authorElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:56:55 +0000 (21:56 -0600)
committerElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:56:55 +0000 (21:56 -0600)
comics.js
index.html
node/runner.sh

index 22800e9b49cb2ad651fe1aebcd0057fc6cb1dea1..491ce6a2d894e5cad49f3d93ea2b2b1233388bd0 100644 (file)
--- 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
index 03f0791c71ef3d570f75b6f8728c4857cfe574de..e839319aa6776bb78c3748b8e3a337152b6e3005 100644 (file)
@@ -4,9 +4,20 @@
   <head>
     <title>Comics</title>
     <script type="text/javascript" src="comics.js"></script>
+    <link href="style.css" rel="stylesheet" type="text/css" />
   </head>
-  <body style="background-color: #f8f8ff;" onload="onload()">
-    <canvas id="canvas" width="735" height="500"></canvas>
+  <body onload="onload()">
+    <div class="container">
+      <p class="title">Comics</p>
+    </div>
+    <div class="container">
+      <canvas id="canvas" width="735" height="500"></canvas>
+    </div>
+    <div class="container">
+      <p>This is Ryan North's <a href="https://qwantz.com/"><i>Dinosaur Comics</i></a>, but without the dinosaurs. Hence, "Comics". It's... a different experience</p>
+    </div>
+    <div id="original" class="container">
+    </div>
   </body>
 </html>
 
index 89ad5cf1f06fa8ab5b31156d7e54d81b6c50708a..a1a6197b0f456d2b2c6a41609948c0225709b85f 100755 (executable)
@@ -2,8 +2,4 @@
 
 # runner for comics api thingy
 
-touch ~/comics/node/hasrun
-while :
-do
-    node index.js
-done
+node index.js