-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
44 lines (43 loc) · 1.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="atrament.min.js"></script>
<meta charset="utf-8"/>
</head>
<body>
<div class="container">
<img src="blank_page.jpg" />
<canvas width="1274" height="1643" id="canvas-menu"></canvas>
<canvas width="1274" height="1643" id="canvas-content"></canvas>
<div id="write-preventer"></div>
<div id="click-container"></div>
</div>
<div id="ui">
<h2>Tools</h2>
Save: <input class="input" type="button" id="save-input" value="Save"><br/>
Load: <input class="file-input" type="file" id="load-input" name="load-input" value="Load">
<div id="tools">
<button onclick="sketchpad.mode = 'draw'">Draw</button>
<input type="color" onchange="sketchpad.color = this.value">
<button onclick="sketchpad.mode = 'erase'">Erase</button>
<input type="number" onchange="sketchpad.weight = parseFloat(this.value)" value="2">
</div>
<div>
Homepages: <input id="homepages-input" type="text" onchange="website.homepages = JSON.parse(this.value)">
</div>
<h2>Timeline</h2>
<p>When you have selected a position in the timeline, press <span class="key">Space</span> to start recording, and <span class="key">Space</span> again to stop recording.</p>
<button onclick="if(!recording){clearSketchpad(); drawPage(page, 1);}">Refresh</button>
<button onclick="if(!recording){clearSketchpad(); waiting = false; drawPage(page, 1000); waiting = true }">ShowAll</button>
<button onclick="if(!recording){clearSketchpad();} ">Clear</button>
<div id="website-info"></div>
<div id="page-info"></div>
<div id="timeline"></div>
</div>
<script src="write-your-website.js"></script>
<script>
startWebsite("written-website.json")
</script>
</body>
</html>