]> git.eli173.com Git - comics/commitdiff
done?
authorElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:14:30 +0000 (21:14 -0600)
committerElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:14:30 +0000 (21:14 -0600)
comics.js

index 9aa63400df136da9b77cc6f1da4ffeed4ae2f7b2..22800e9b49cb2ad651fe1aebcd0057fc6cb1dea1 100644 (file)
--- a/comics.js
+++ b/comics.js
@@ -6,7 +6,7 @@ function onload() {
     //imgtag.src = "https://qwantz.com/comics/comic2-3900.png"
     
     
-    drawcomic("https://qwantz.com/comics/comic2-675.png")
+    //drawcomic("https://qwantz.com/comics/comic2-675.png")
 
 
     num = window.location.search.substring(window.location.search.indexOf('=')+1)
@@ -17,12 +17,13 @@ function getimageurl(number) {
     number = (number == "") ? 0 : number
     // takes the comic no (from the ?comic=<>) and gets the url we want
     // returns a promise?
-    console.log(number)
+    //console.log(number)
     //fetch("https://qwantz.com/index.php?comic=" + number, {mode: "cors"})
     fetch("https://comics.eli173.com/id/" + number)
        .then(req => req.text())
        .then(text => {
-           console.log(text)
+           //console.log(text)
+           drawcomic("https://qwantz.com/" + text)
        })
 }