-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (88 loc) · 2.33 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<title>Quick Draw!</title>
<style>
@font-face { font-family: PencilDoodle; src: url('Assets/Fonts/PencilDoodle.otf'); }
@font-face { font-family: JoyfulJuliana; src: url('Assets/Fonts/JoyfulJuliana.ttf'); }
@font-face { font-family: NiceWritten; src: url('Assets/Fonts/NiceWritten.ttf'); }
::-webkit-scrollbar{
width: 8px;
}
::-webkit-scrollbar-track{
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb{
background: #888;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover{
background: #555;
}
#predictionsTextbox{
overflow: hidden;
}
#predictionsTextbox:hover{
overflow-y: scroll;
}
p, textarea, li{
font-family: Tahoma;
font-size: 1em;
margin: 0px;
padding: 0px;
}
.tool{
background-color: white;
display: block;
margin: 0 auto;
position: relative;
top: 20px;
margin-bottom: 20px;
width: 80%;
}
.tool:hover{
background-color: lightblue;
}
img{
width: 100%;
}
</style>
</head>
<body onresize="onResizeEvent()">
<div id="drawPromptPanel">
<div id="drawPromptPanelContent">
<p>
Depict mother nature in one of her forms as mentioned on the following list, and we will try to guess your drawing!<br>
</p>
<ul id="categoriesList"></ul>
</div>
</div>
<div id="aboutUsPanel">
<div id="aboutUsPanelContent">
<p>
Done by me and him, based on the dataset of Google's "Quick, Draw!". Follow me on Instagram! I post Piano stuff ^-^
</p>
</div>
</div>
<div id="toolsPanel">
<div id="toolsPanelContent">
<button class="tool" onclick="updateMarker(MARKER_STATUS_MARKER)"><img src="Assets/Images/marker.png"></button>
<button class="tool" onclick="updateMarker(MARKER_STATUS_ERASER)"><img src="Assets/Images/eraser.png"></button>
<button class="tool" onclick="clearCanvas()"><img src="Assets/Images/clear.png"></button>
<button class="tool" onclick="showCompressedImage()"><img src="Assets/Images/clear.png"></button>
</div>
</div>
<div id="canvasPanel">
<div id="canvasPanelContent">
<canvas id="canvas"></canvas>
</div>
</div>
<div id="predictionsPanel">
<div id="predictionsPanelContent">
<textarea readonly disabled id="predictionsTextbox"></textarea>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="Scripts/index.js"></script>