-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (70 loc) · 1.91 KB
/
Copy pathindex.html
File metadata and controls
72 lines (70 loc) · 1.91 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>demalab</title>
<!-- <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> -->
<script src="./jquery-2.1.3.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.0.0.js"></script>
<script src="p5.js"></script>
<script src="p0.js"></script>
<style type="text/css">
body {
-webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
font-family: helvetica;
text-align: center;
overflow: hidden;
cursor: cell;
padding: 0;
margin: 0;
}
button, select{
-webkit-appearance: none;
-moz-appearance: none;
border-radius: 0px;
}
button{
cursor: pointer;
}
#bar {
background-color: rgba(125,125,125,0.05);
position: fixed;
padding: 10px 0;
height: 20px;
width: 100%;
bottom: 0;
left: 0;
}
#color-range{
vertical-align: top;
width: 25%;
}
#color-text, button{
background-color: rgba(125,125,125,0);
vertical-align: top;
border: none;
width: 25px;
font-size: 10px;
padding-top: 3px;
}
#grid{
background-image: linear-gradient(to right, rgba(125,125,125,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(125,125,125,0.05) 1px, transparent 1px);
background-size: 40px 40px;
position: absolute;
display: none;
height: 100%;
width: 100%;
left: 0;
top: 0;
}
</style>
</head>
<body>
<div id="bar">
<button id="save-image" type="button" onclick="saveNewDrawing()">S</button>
<input id="color-range" name="color" type="range" min="0" max="255" step="5" value="125" onchange="colorStatus(colorText,this.value)" autofocus></input>
<input id="color-text" name="color" type="text" value="125" onchange="colorStatus(colorRange,this.value)"></input>
</div>
<div id="grid"></div>
</body>
</html>