-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (76 loc) · 2.7 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
<!DOCTYPE HTML>
<html>
<head>
<title>Snuffbox WebGL</title>
<script src="./main.js" type="module"></script>
<style>
/* Straight from W3Schools.. */
.slider
{
-webkit-appearance: none; /* Override default CSS styles */
appearance: none;
width: 300px;
height: 16px; /* Specified height */
background: #414141; /* Grey background */
outline: none; /* Remove outline */
opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
-webkit-transition: .2s; /* 0.2 seconds transition on hover */
transition: opacity .2s;
margin: 10px;
}
.slider:hover
{
opacity: 1; /* Fully shown on mouse-over */
}
.slider::-webkit-slider-thumb
{
-webkit-appearance: none; /* Override default look */
appearance: none;
width: 12px; /* Set a specific slider handle width */
height: 24px; /* Slider handle height */
background: rgb(76, 99, 175); /* Green background */
cursor: pointer; /* Cursor on hover */
box-shadow: 0px 2px 2px rgba(0.0, 0.0, 0.0, 0.5);
}
.checkbox
{
-webkit-appearance: none;
width: 16px;
height: 16px;
background: rgb(20, 20, 20);
border: 1px solid gray;
transform: translateY(5px);
opacity: .5;
}
.checkbox:hover
{
opacity: 1;
}
.checkbox:checked
{
background: rgb(76, 99, 175);
border: 1px solid white;
opacity: 1;
}
.text
{
font-family: "Verdana";
color: rgb(207, 207, 207);
}
</style>
</head>
<body style="background-color: #141414">
<div id="main" style="margin: auto; width: 1280px;">
<div style="position: absolute; display: inline-block; background-color: rgba(0.0, 0.0, 0.0, 0.25); padding: 5px">
<div id="fps" class="text">FPS: 0</div>
</div>
<canvas style="box-shadow: 4px 4px 10px rgba(0.0, 0.0, 0.0, 0.25);" id="glCanvas" width="1280" height="720"></canvas>
<div id="timeOfDay" style="background-color: rgba(0.0, 0.0, 0.0, 0.25); padding: 5px;">
<span style="margin-left: 10px; display: block;" class="text">Time of day</span>
<input type="range" min="0" max="1" step="0.0001" value="0.25" class="slider" id="timeOfDaySlider" class="slider">
<span class="text">Pause </span>
<input class="checkbox" type="checkbox" id="checkboxPause">
</div>
</div>
</body>
</html>