-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (89 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://fonts.googleapis.com/css2?family=Jost:wght@300;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
href="https://image.flaticon.com/icons/svg/2928/2928790.svg"
type="image/x-icon"
/>
<title>softpaint</title>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="./style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.js"></script>
<!-- import the webpage's javascript files -->
<script src="./script.js" defer></script>
<script src="./interface.js" defer></script>
<script src="./defaults.js" defer></script>
</head>
<body>
<h1>
softpaint
</h1>
<p>
soothing art at your fingertips ♡
</p>
<div id="error-display"></div>
<div class="container">
<label for="user-upload" id="user-uploader" class="button">
upload
</label>
<input
type="file"
accept="image/*"
name="userupload"
id="user-upload"
onchange="userUpload(event)"
style="display: none;"
/>
<div id="random-link" class="button" onclick="randomLink()">
random
</div>
<div id="save-painting" class="button" onclick="savePainting()">
save
</div>
</div>
<div id="canvas-div"></div>
<div>
<input
id="slider"
type="range"
min="0"
max="100"
step="1"
value="10"
onchange="updateSlider(this.value)"
/>
<div id="instruct-container" class="container">
<p id="instruction">
scroll to change || brush size: 40 || <br />
</p>
<a href="url" target="blank" id="source-link"> </a></div>
</div>
<div id="modal-open" class="button" onclick="openModal()">?</div>
<div id="info-modal" class="modal">
<div class="modal-content">
<div class="close" onclick="closeModal()"> × </div>
<h3>how to softpaint</h3>
<ul>
<li>use the scroll wheel or slider to change your brush size
</li>
<li>
paint faster to create longer and thinner strokes
</li>
<li>
slower strokes and smaller brushes create more detail and reveal hidden colours!
</li>
</ul>
<hr>
<p id="modal-footer">made with love by <a href="https://github.com/midnightingale/" target="blank">sophie liu</a></p>
</div>
</div>
</body>
</html>