-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
94 lines (87 loc) · 5 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
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>Little Experiments</title>
<meta name="theme-color" content="#2EC4B6">
<meta name="MobileOptimized" content="width">
<meta name="HandheldFriendly" content="true">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" type="image/png" href="./assets/logo.png">
<link rel="apple-touch-icon" href="./assets/logo.png">
<link rel="apple-touch-startup-image" href="./assets/logo.png">
<link rel="manifest" href="./manifest.json">
<!-- CSS files-->
<link rel="stylesheet" href="css/master.css">
</head>
<body>
<div class="display" id="display">
<button class="close" type="button" name="button" onclick="backToHome()"><span></span></button>
<iframe id="frame" class="frame" src=""></iframe>
</div>
<div class="home" id="home">
<div class="content">
<h1 class="title">Little Experiments</h1>
<div class="experiments">
<div class="categories">
<label class="container" onclick="updateCategories()">
<input type="checkbox" id="star-input" checked>
<span class="category c-star"></span>
</label>
<label class="container" onclick="updateCategories()">
<input type="checkbox" id="wip-input" checked>
<span class="category c-wip"></span>
</label>
<label class="container" onclick="updateCategories()">
<input type="checkbox" id="others-input" checked>
<span class="category c-others"></span>
</label>
</div>
<p onclick="setExperiment('10-PRINT')" class="link others-link"> 10 PRINT </p>
<p onclick="setExperiment('Barnsley-Fern')" class="link others-link"> Barnsley Fern </p>
<p onclick="setExperiment('Cantor-Set')" class="link others-link"> Cantor Set </p>
<p onclick="setExperiment('Canvas')" class="link others-link"> Canvas </p>
<p onclick="setExperiment('Chaos-Game')" class="link others-link"> Chaos Game </p>
<p onclick="setExperiment('Chess-JS')" class="link wip-link"> Chess JS <span class="wip" /></p>
<p onclick="setExperiment('Clock-Of-Clocks')" class="link others-link"> Clock Of Clocks </p>
<p onclick="setExperiment('Cropped-Image')" class="link others-link"> Cropped Image </p>
<p onclick="setExperiment('Diffusion-Limited-Aggregation')" class="link others-link"> Diffusion Limited Aggregation </p>
<p onclick="setExperiment('Falling-Puzzle')" class="link wip-link"> Falling Puzzle <span class="wip" /></p>
<p onclick="setExperiment('Flappy-Bird')" class="link others-link"> Flappy Bird </p>
<p onclick="setExperiment('Fluid-Simulation')" class="link wip-link"> Fluid Simulation <span class="wip" /></p>
<p onclick="setExperiment('Fractal-Tree')" class="link others-link"> Fractal Tree </p>
<p onclick="setExperiment('Game-Of-Life')" class="link star-link"> Game Of Life <span class="star" /></p>
<p onclick="setExperiment('Isometric-Snake')" class="link others-link"> Isometric Snake </p>
<p onclick="setExperiment('Koch-Curve')" class="link others-link"> Koch Curve </p>
<p onclick="setExperiment('Lorenz-Attractor')" class="link others-link"> Lorenz Attractor </p>
<p onclick="setExperiment('Minesweeper')" class="link star-link"> Minesweeper <span class="star" /></p>
<p onclick="setExperiment('Moving-Particles')" class="link others-link"> Moving Particles </p>
<p onclick="setExperiment('Paint-JS')" class="link wip-link"> Paint JS <span class="wip" /></p>
<p onclick="setExperiment('Particles-In-Force-Field')" class="link others-link"> Particles In Force Field </p>
<p onclick="setExperiment('Phyllotaxis')" class="link others-link"> Phyllotaxis </p>
<p onclick="setExperiment('Piano')" class="link star-link"> Piano <span class="star" /></p>
<p onclick="setExperiment('Plinko')" class="link others-link"> Plinko </p>
<p onclick="setExperiment('Ray-Casting')" class="link wip-link"> Ray Casting <span class="wip" /></p>
<p onclick="setExperiment('Sliding-Puzzle')" class="link star-link"> Sliding Puzzle <span class="star" /></p>
</div>
</div>
</div>
<!-- JavaScript files-->
<script src="js/script.js" charset="utf-8"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/Little-Experiments/sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
</body>
</html>