-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (113 loc) · 4.32 KB
/
index.html
File metadata and controls
117 lines (113 loc) · 4.32 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
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
<!DOCTYPE html>
<html>
<head>
<title>Yes, a really good book!</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/styles.css">
<link href="/jquery-ui/jquery-ui.css" type="text/css" rel="stylesheet">
<link href="/jquery-ui/jquery-ui.structure.css" type="text/css" rel="stylesheet">
<link href="/jquery-ui/jquery-ui.theme.css" type="text/css" rel="stylesheet">
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"
integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js"></script>
<script src="/script.js" defer></script>
<script>
$( function() {
var handle1 = $( "#custom-handle1" );
$( "#slider1" ).slider({
value: 5,
max: 10,
min: 1,
create: function() {
handle1.text( $( this ).slider( "value" ) );
},
slide: function( event, ui ) {
handle1.text( ui.value );
m = ui.value;
}
});
var handle2 = $( "#custom-handle2" );
$( "#slider2" ).slider({
value: 5,
max: 10,
min: 1,
create: function() {
handle2.text( $( this ).slider( "value" ) );
},
slide: function( event, ui ) {
handle2.text( ui.value );
n = ui.value;
}
});
$('#color1').click( function() {
color1 = $( this ).val();
if (color1 == 'surprise') {
color1 = color(Math.floor(Math.random() * 255), Math.floor(Math.random() * 255), Math.floor(Math.random() * 255));
}
});
$('#color2').click( function() {
color2 = $( this ).val();
if (color2 == 'surprise') {
color2 = color(Math.floor(Math.random() * 255), Math.floor(Math.random() * 255), Math.floor(Math.random() * 255));
}
});
$('#start').click( function() {
loop();
});
$('#stop').click( function() {
noLoop();
});
} );
</script>
</head>
<body>
<div class="page-container">
<div class="page-back">
<nav>
<div class="logo"><img src="example-logo.png" width="150"></div>
<ul>
<li><a href="#" class="hover">Home</a></li>
<li><a href="/maths" class="hover">Maths</a></li>
<li><a href="#" class="hover">QuickMaths</a></li>
<li><a href="#" class="hover">Wow Math</a></li>
<li><a class="active" href="#">Log-In Maths</a></li>
</ul>
</nav>
<div class="content">
<div id="slider1" class="slider">
<div id="custom-handle1" class="ui-slider-handle custom-handle"></div>
</div>
<div id="slider2" class="slider">
<div id="custom-handle2" class="ui-slider-handle custom-handle"></div>
</div>
<select id="color1">
<option value="red">RED</option>
<option value="green">GREEN</option>
<option value="blue">BLUE</option>
<option value="white">WHITE</option>
<option value="black">BLACK</option>
<option value="surprise">SURPRISE ME</option>
</select>
<select id="color2">
<option value="red">RED</option>
<option value="green">GREEN</option>
<option value="blue">BLUE</option>
<option value="white">WHITE</option>
<option value="black">BLACK</option>
<option value="surprise">SURPRISE ME</option>
</select>
<button id="start">Start</button>
<button id="stop">Stop</button>
</div>
</div>
</div>
</body>
</html>