-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (50 loc) · 3.24 KB
/
index.html
File metadata and controls
55 lines (50 loc) · 3.24 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
<!DOCTYPE HTML>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116368049-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-116368049-1');
</script>
<title>Spirograph</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/solid.css" integrity="sha384-v2Tw72dyUXeU3y4aM2Y0tBJQkGfplr39mxZqlTBDUZAb9BGoC40+rdFCG0m10lXk" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/fontawesome.css" integrity="sha384-q3jl8XQu1OpdLgGFvNRnPdj5VIlCvgsDQTQB6owSOHWlAurxul7f+JpUOVdAiJ5P" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<script src="js/jscolor.min.js"></script>
</head>
<body>
<canvas id="outerCircleCanvas" width="800" height="800"></canvas>
<canvas id="innerCircleCanvas" width="800" height="800"></canvas>
<canvas id="brushCanvas" width="800" height="800"></canvas>
<div class="controls">
<table>
<td class="slider-label">Brush width</td><td><input type="range" min="1" max="30" value="2" class="slider" id="widthRange" /></td><td><input type="text" class="slider-input" id="widthRangeInput" /></td><tr />
<td class="slider-label">Brush handle length</td><td><input type="range" min="1" max="300" value="80" class="slider" id="handleRange" /></td><td><input type="text" class="slider-input" id="handleRangeInput" /></td><tr />
<td class="slider-label">Inner circle radius</td><td><input type="range" min="1" max="150" value="75" class="slider" id="circleRange" /></td><td><input type="text" class="slider-input" id="circleRangeInput" /></td><tr />
<td class="slider-label">Speed</td><td><input type="range" min="5" max="20" value="9" class="slider" id="speedRange" /></td><td><input type="text" class="slider-input" id="speedRangeInput" /></td><tr />
<td class="slider-label">Colour</td><td class="check"><input class="jscolor colour" value="8ED6FF" onchange="colourChange()" id="colour"></td><tr />
<td class="slider-label"><label for="showBackground" class="pointer" onclick="clearBackground()">Show background</label></td><td class="check"><input type="checkbox" id="showBackground" onclick="clearBackground()" checked /></td><tr />
</table>
<div class="buttons">
<button onclick="addCircle()">Add circle</button>
<button onclick="removeCircle()" id="remove-circle">Remove circle</button>
<button onclick="clearBrush()">Clear canvas</button>
<br />
<div class="share-box">
Share current spirograph<br />
<span class="share-input">
<input type="text" id="share-url" class="share-url" />
<i class="fas fa-clipboard icon" onclick="copyToClipboard()"></i>
</span>
</div>
</div>
</div>
<script src="js/searchparams.js" type="text/javascript"></script>
<script src="js/spiro.js" type="text/javascript"></script>
<script src="js/controls.js" type="text/javascript"></script>
</body>
</html>