-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·156 lines (140 loc) · 6.03 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!doctype html>
<html>
<head>
<title>Clementine home page</title>
<!-- search engine optimization (: -->
<meta charset="UTF-8">
<meta name="author" content="Cynthia Clementine">
<meta name="keywords" content="1994, Cynthia Clementine, website">
<style>
body {
background-color: slateblue;
font-family: Arial, Helvetica, sans-serif;
}
#top-text {
color: white;
font-size: 30px;
text-align: center;
}
#localStorage-text {
color: white;
font-size: 20px;
text-align: center;
position: absolute;
bottom: 0;
}
#games-list {
color: white;
font-size: 20px;
text-align: center;
float: left;
}
#interact-list {
color: white;
font-size: 20px;
text-align: center;
float: right;
}
#display-list {
color: white;
font-size: 20px;
text-align: center;
}
a:link {
color: purple;
}
a:visited {
color: brown;
}
</style>
</head>
<body>
<div id="top-text">
<p>
Welcome to Clementine!
</p>
</div>
<div id="games-list">
<p>
<b>Games:</b>
<br>
<a href="The-ascent.html">The ascent</a><br>
<a href="The-ascent-2/The-ascent-2.html">The ascent 2</a><br>
<a href="heaven-ascension/index.html">Heaven's price</a><br>
<br>
<a href="package-parsing.html">Package Parsing</a><br>
<a href="present-finder.html">Present Finder</a><br>
<a href="simon-says/index.html">Simon Says</a><br>
<a href="minimal-flappy.html">Flutter poultry</a><br>
<a href="tetris/index.html">Tetris</a><br>
<br>
<a href="sun-survivor.html">Sun survivor</a><br>
<a href="rotate/index.html">Rotate</a><br>
<a href="seasonalGrid/index.html">Tile World</a><br>
<a href="run-3-clone/index.html">Javascript-based Run 3 remake</a><br>
<a href="circles/index.html">Circle System</a><br>
</p>
</div>
<div id="interact-list">
<p>
<b>Other interactables:</b>
<br>
<a href="mandelbrot-set.html">Interactive Mandelbrot set</a><br>
<a href="maze-generator.html">Square Maze Generator</a><br>
<a href="prime-spiral.html">A Plot of Primes in Polar Coordinates</a><br>
<a href="run-3-map-visualizer.html">Run 3 Tunnel visualizer</a><br>
<a href="monopoly-board.html">Monopoly probability distribution</a><br>
<a href="solar-eclipse.html">Solar eclipse visualizer</a><br>
<a href="matrix-visualizer.html">Matrix Visualization Helper</a><br>
<a href="pascal-triangle.html">Pascal's triangle</a><br>
<br>
<a href="raymarch/index.html">Ray marching demo</a><br>
<a href="plains/index.html">The Desert</a><br>
<a href="X-O-games/index.html">XO games</a><br>
</p>
</div>
<div id="display-list">
<p>
<b>Graphics displays:</b>
<br>
<a href="lovely-linies.html">1d random walk</a><br>
<a href="lovely-linies-2d.html">2d random walk (snakes?)</a><br>
<a href="metaballs.html">Metamorph circles</a><br>
<a href="particles.html">Particles!</a><br>
<a href="cursordance.html">Cursor dance</a><br>
<a href="noise/axis-noise.html">2-axis noise generation</a><br>
<a href="noise/wave-noise.html">Sine wave noise generation</a><br>
<a href="noise/perlin-noise.html">Perlin noise generation</a><br>
<br>
<a href="spinning-shapes.html">spinning 3d wireframes</a><br>
<a href="spinning-shapes.html">spinning 4d wireframes</a><br>
</p>
</div>
<!--display storage size-->
<div id="localStorage-text">
<p id="storageNotifier">Persistent storage used: <span id="storageCalculator">[uncalculated]</span>%</p>
<p id="storageExtra"></p>
</div>
</body>
<script type="text/javascript">
//calculate amount of localstorage remaining
var size = 0;
Object.keys(window.localStorage).forEach(d => {
size += window.localStorage[d].length * 2;
});
//max is theoretically 5MB, but in testing it's a bit more and I don't want this counter to ever go over 100%
var percent = (size / (1048576 * 5.075));
document.getElementById("storageCalculator").textContent = percent.toFixed(5);
if (percent > 0.99) {
document.getElementById("storageExtra").textContent = "Oh dear goodness please just get rid of something, the pages aren't going to be able to save, please I'm begging you";
} else if (percent > 0.95) {
document.getElementById("storageExtra").textContent = "You need to clear some storage. It will be full soon.";
} else if (percent > 0.75) {
document.getElementById("storageExtra").textContent = "You should probably clear some storage.";
} else if (percent > 0.5) {
document.getElementById("storageExtra").textContent = "Hi, just wanted to draw attention to the amount of storage that you have used.";
} else {
document.getElementById("storageExtra").textContent = "All is well.";
}
</script>
</html>