-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (143 loc) · 5.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Drawing App</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="./favicon.jpeg">
</head>
<body>
<div class="controls">
<div class="brush">
<svg
xmlns="http://www.w3.org/2000/svg"
class="tools brush"
id="brush"
height="44px"
viewBox="0 -960 960 960"
width="44px"
fill="#FFFFFF"
>
<path
d="M223.33-118q-37.55 0-74.27-15-36.73-15-62.39-44.33 32-8 51-30.17t19-61.17q0-45.83 32.11-77.91 32.12-32.09 78-32.09 45.89 0 77.89 32.09 32 32.08 32 77.91Q376.67-204 332-161t-108.67 43Zm0-66.67q34.34 0 60.5-24.5 26.17-24.5 26.17-59.5 0-19-12.17-31.16Q285.67-312 266.67-312t-31.17 12.17q-12.17 12.16-12.17 31.16 0 33.67-7.5 52.34-7.5 18.66-25.83 27 5.67 1.33 16.67 3 11 1.66 16.66 1.66Zm230-171.33-96.66-100 370-370q13-13 29.83-13.5t30.83 13.5l37.34 37.33q14 14 13.66 31-.33 17-13.66 30.34L453.33-356Zm-186.66 87.33Z"
/>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
height="44px"
viewBox="0 -960 960 960"
width="44px"
fill="#FFFFFF"
id="eraser"
class="tools eraser"
>
<path
d="M678-220h203v60H618l60-60Zm-499 60-81-84q-18-17-17.5-41.5T97-327l458-498q16-17 40.57-17 24.56 0 41.43 17l205 215q17 17 18 42t-16 42L503-160H179Zm301-60 324-352-207-217-455 503 64 66h274Zm0-260Z"
/>
</svg>
</div>
<div class="shapes">
<svg
xmlns="http://www.w3.org/2000/svg"
height="44px"
viewBox="0 -960 960 960"
width="44px"
class="tools rectangle"
id="rectangle"
fill="#FFFFFF"
>
<path
d="M80-160v-640h800v640H80Zm60-60h680v-520H140v520Zm0 0v-520 520Z"
/>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
height="42px"
viewBox="0 -960 960 960"
width="42px"
fill="#FFFFFF"
class="tools circle"
id="circle"
>
<path
d="M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-156t86-127Q252-817 325-848.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 82-31.5 155T763-197.5q-54 54.5-127 86T480-80Zm0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140Zm0-340Z"
/>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
height="44px"
viewBox="0 -960 960 960"
width="44px"
fill="#FFFFFF"
class="tools triangle"
id="triangle"
>
<path
d="m80-160 401-640 399 640H80Zm107-60h586L481-685 187-220Zm293-233Z"
/>
</svg>
</div>
<div class="saveButtons">
<button id="clear" class="clear">
<svg
xmlns="http://www.w3.org/2000/svg"
height="44px"
viewBox="0 -960 960 960"
width="44px"
fill="#FFFFFF"
class="extraButton clearSvg"
id="clearSvg"
>
<path
d="m330-288 150-150 150 150 42-42-150-150 150-150-42-42-150 150-150-150-42 42 150 150-150 150 42 42ZM480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-156t86-127Q252-817 325-848.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 82-31.5 155T763-197.5q-54 54.5-127 86T480-80Zm0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140Zm0-340Z"
/>
</svg>
</button>
<button id="save" class="save">
<svg
xmlns="http://www.w3.org/2000/svg"
height="44px"
viewBox="0 -960 960 960"
width="44px"
fill="#FFFFFF"
class="extraButton saveSvg"
id="saveSvg"
>
<path
d="M840-683v503q0 24-18 42t-42 18H180q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h503l157 157Zm-60 27L656-780H180v600h600v-476ZM479.76-245q43.24 0 73.74-30.26 30.5-30.27 30.5-73.5 0-43.24-30.26-73.74-30.27-30.5-73.5-30.5-43.24 0-73.74 30.26-30.5 30.27-30.5 73.5 0 43.24 30.26 73.74 30.27 30.5 73.5 30.5ZM233-584h358v-143H233v143Zm-53-72v476-600 124Z"
/>
</svg>
</button>
</div>
</div>
<div class="controls subControls">
<div class="brushSize">
<input type="range" min="1" max="50" value="2" class="slider" id="mySize">
</div>
<div class="fillButton">
<input type="checkbox" id="fillColor" name="fillColor" >
<label for="fillColor"> Fill the color </label>
</div>
<div class="colors">
<div id="white" class="white color-circle"></div>
<div id="black" class="black color-circle"></div>
<div id="red" class="red color-circle"></div>
<div id="multiColor" class="multiColor color-circle"><input type="color" id="color-picker" value="#007bff"></div>
</div>
</div>
<canvas id="canvas"> </canvas>
<div class="message">
<div class="desktop-only">
<h1>Welcome to Our Website!</h1>
<p>Please note that our platform is optimized for desktop use and may not provide the best experience on mobile devices.</p>
<p>For the optimal browsing experience, we recommend accessing our site from a desktop or laptop computer.</p>
<p>Thank you for your understanding!</p>
</div>
<div class="mobile-warning">
<h1>Mobile Access Not Supported</h1>
<p>Sorry, this website is optimized for desktop use and may not work properly on mobile devices. Please visit us from a desktop or laptop computer for the best experience.</p>
</div></div>
</body>
<script src="script.js"></script>
</html>