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
<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>