-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (43 loc) · 1.47 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Rolling down a vector field (perpendicular to equipotential lines)</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
.attribution {
bottom: 0.25rem;
right: 0.25rem;
z-index: 1;
position: fixed;
font-size: 80%;
}
</style>
</head>
<body>
<div class="attribution">
[<a href="https://git.sr.ht/~zakzh/electric-field-lines/tree">Code</a>]
</div>
<!--<script src="./node_modules/pouchdb/dist/pouchdb.js"></script>-->
<!-- TODO: link to the minifed versions of these -->
<script src="./node_modules/axios/dist/axios.min.js"></script>
<script src="./node_modules/three/build/three.js"></script>
<script src="./node_modules/gl-matrix/dist/gl-matrix.js"></script>
<script src="./node_modules/flyd/flyd.min.js"></script>
<script>
// from
// https://github.com/paldepind/flyd/blob/b2ced63/module/filter/index.js
flyd.filter = flyd.curryN(2, function(fn, s) {
return flyd.combine(function(s, self) {
if (fn(s())) self(s.val);
}, [s]);
});
</script>
<script src="https://unpkg.com/three@0.91.0/examples/js/controls/OrbitControls.js"></script>
<script src="dist/field-solver-wasm.js"></script>
<script src="field-solver-common.js"></script>
<script src="worker-manager.js"></script>
<script src="index.js"></script>
</body>
</html>