-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment-create.html
66 lines (59 loc) · 2.69 KB
/
experiment-create.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>No Lab Physics</title>
<script type="module" src="./navbar.js"></script>
<script defer src="./experiment-src/create.js" type="module"></script>
<link rel="stylesheet" href="./styles/global.css">
<link rel="stylesheet" href="./styles/create.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&display=swap" rel="stylesheet">
<script async defer src="./nprogress.js" type="module"></script>
<link rel="stylesheet" href="./styles/nprogress.css">
</head>
<body>
<physics-navbar></physics-navbar>
<main style="padding-top: 2em;">
<div id="canvas-and-controlbar-container">
<div style="display: flex; align-items: center; justify-content: center; flex-direction: column; margin-bottom: 2rem">
<div style="display: flex; flex-wrap: wrap; justify-content: center;">
<button class="control-button" id="play" onclick="pause()" style="display: hidden">
<img src="./physics.icons/play.svg">
<div style="min-width: 3em">Play</div>
</button>
<button class="control-button" id="pause" onclick="pause()">
<img src="./physics.icons/pause.svg">
<div style="min-width: 3em">Pause</div>
</button>
<button class="control-button" id="restart" onclick="restart()">
<img src="./physics.icons/restart.svg">
<div>Restart</div>
</button>
<button class="control-button" id="ruler" onclick="toggleRuler()">
<img src="./physics.icons/ruler.svg">
<div>Ruler</div>
</button>
<button class="control-button" id="editExperiment" onclick="editExperiment()">
<img src="./physics.icons/pencil.svg">
<div>Edit</div>
</button>
<button class="control-button" id="copy-link">
<img src="./physics.icons/copylink.svg">
<div>Copy Link</div>
</button>
<span id="loading-experiment" style="margin-right: 1em"></span>
</div>
<div> <span id="copy-link-tooltip"></span></div>
<pre id="time" style="font-weight: bold;"></pre>
<input id="time-slider" type="range" min="0" max="1" step="any" value="0" style="width: 75%" />
<div id="put-canvas-here">
<canvas></canvas>
</div>
</div>
<div id="vue-app" style="width: 100%">Loading...</div>
</div>
</main>
</body>
</html>