-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathindex.html
164 lines (154 loc) · 5.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" type="image/x-icon" href="assets/ico/favicon.ico" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<div class="shareBtnDiv">
<button id="shareBtn">
<img
src="https://thenounproject.com/api/private/icons/2137557/edit/?backgroundShape=SQUARE&backgroundShapeColor=%23000000&backgroundShapeOpacity=0&exportSize=752&flipX=false&flipY=false&foregroundColor=%23000000&foregroundOpacity=1&imageFormat=png&rotation=0"
alt="img loading"
/>
</button>
<div id="allOptions">
<a
href="whatsapp://send?text=https://board-dhanushnehru.netlify.app/"
data-action="share/whatsapp/share"
><img
width="40px"
id="whatsAppBtn"
src="https://cdn.iconscout.com/icon/free/png-512/free-whatsapp-42-189793.png?f=webp&w=512"
alt="loading"
/></a>
<a
href="https://www.facebook.com/sharer/sharer.php?u=https://board-dhanushnehru.netlify.app/"
target="_blank"
rel="noopener"
><img
width="40px"
id="gmailBtn"
src="https://cdn-icons-png.flaticon.com/512/5968/5968764.png?ga=GA1.1.942035619.1696882171"
alt="loading"
/></a>
<a onclick="copyClipFun()" id="copyCopy">
<div id="copyStatDiv">Copy to clipboard</div>
<img
width="40px"
id="linkCopyBtn"
src="https://cdn.iconscout.com/icon/free/png-512/free-link-1439747-1214319.png?f=webp&w=512"
alt="loading"
/>
</a>
</div>
</div>
<div class="github-button-container">
<button
id="btnGoogleSignIn"
style="border: none; background: none"
></button>
<div class="sign-in">
<span
id="g_id_onload"
data-callback="handleCredentialResponse"
data-auto_prompt="false"
>
</span>
<span
class="g_id_signin"
id="g_id_signin"
data-type="standard"
data-size="medium"
data-theme="filled_black"
data-text="sign_in_with"
data-shape="square"
data-logo_alignment="left"
>
</span>
<span onclick="signOut()" id="g_id_signout" style="display: none">
Sign Out
</span>
</div>
<span id="g_id_user" style="display: none"></span>
<a
class="github-button"
href="https://github.com/DhanushNehru/board"
data-icon="octicon-star"
data-size="large"
data-show-count="true"
aria-label="Star DhanushNehru/board on GitHub"
>
Star
</a>
</div>
<div class="selectors">
<div class="color-selection board-color">
<div class="color-header">Board Colour :</div>
<input
type="color"
name="boardColor"
id="board-color"
value="#FFFFFF"
/>
</div>
<div class="color-selection pen-color">
<div class="color-header">Pen Colour :</div>
<input type="color" name="penColor" id="pen-color" />
</div>
<div class="color-selection pen-thickness">
<div class="color-header">Pen Thickness :</div>
<input
type="range"
name="penThickness"
id="pen-thickness"
min="1"
max="10"
value="5"
/>
</div>
<div class="color-selection eraser">
<div class="color-header">Eraser :</div>
<button id="eraser-btn">Enable Eraser</button>
</div>
<div class="color-selection eraser-thickness">
<div class="color-header">Eraser Thickness :</div>
<input
type="range"
name="eraserThickness"
id="eraser-thickness"
min="5"
max="30"
value="10"
/>
</div>
</div>
<div class="canvas-container">
<canvas id="black-board"></canvas>
</div>
<div class="clear-download-undo-button">
<button class="clear" title="Clear Board" onclick="onClear()">
Clear
</button>
<button class="undo" title="Undo Board" onclick="onUndo()">Undo</button>
<button id="download" title="Download">
<img src="/assets/ico/download.svg" />
</button>
</div>
<script src="script.js"></script>
<script src="colorChanges.js"></script>
<script>
var time_stamp = new Date().getTime();
var scriptElement = document.createElement("script");
scriptElement.src = "https://accounts.google.com/gsi/client?nocache=" + time_stamp;
scriptElement.async = true;
scriptElement.defer = true;
document.body.appendChild(scriptElement);
</script>
<!-- the above line is equal to <script src="https://accounts.google.com/gsi/client?nocache=timestamp" async defer></script>
[time_stamp] dynamic value (random number) to ensure that the browser fetches a fresh version of the script on each page load.
-->
</body>
</html>