This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
current.html
100 lines (84 loc) · 3.35 KB
/
current.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Examples</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<script nomodule defer src="/website/static/katex/katex.js"></script>
<link rel="stylesheet" href="/website/static/katex/katex.css">
</head>
<body style="max-width:500px">
<style>
body {
margin: 16px;
/* width: 100%; */
/* height: 100%; */
}
</style>
<!-- STYLESHEET -->
<link rel="stylesheet" href="/css/library.css">
<div id="number-wheel-factors"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-highlight-factors-of.js";
main("number-wheel-factors");
</script>
<div id="number-wheel"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel.js";
main("number-wheel");
</script>
<div id="number-wheel-no-sliders"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-without-slider.js";
main("number-wheel-no-sliders");
</script>
<div id="number-wheel-big" class="container"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-big.js";
main("number-wheel-big");
</script>
<div id="number-wheel-factors-of-2" class="container"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-highlight-factors-of-2.js";
main("number-wheel-factors-of-2");
</script>
<div id="number-wheel-factors-of-3" class="container"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-highlight-factors-of-3.js";
main("number-wheel-factors-of-3");
</script>
<div id="number-wheel-factors-of-4" class="container"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-highlight-factors-of-4.js";
main("number-wheel-factors-of-4");
</script>
<div id="number-wheel-factors-of-5" class="container"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-highlight-factors-of-5.js";
main("number-wheel-factors-of-5");
</script>
<div id="number-wheel-primes" class="container"></div>
<script type="module">
import main from "/dist/examples/math/modular-arithmetic-wheel-highlight-primes.js";
main("number-wheel-primes");
</script>
<!-- <script type="module">
import { getUrlParams, getURL, loadScript, download } from './dist/util/file.js';
let params = getUrlParams(window.location.search);
if (params.has('script')) {
loadScript( params.get('script'), document.getElementsByTagName('body')[0]);
} else {
throw new Error('no url parameter script. Example: ?script=./dist/examples/math/unit-circle.js');
}
// add a save function to the window to save the current interactive
window.save = function() {
let interactives = document.getElementsByClassName('interactive');
for( let i = 0; i < interactives.length; i++ ) {
let name = interactives[i].parentElement.id;
let id = interactives[i].id;
download(id, `${name}.svg`);
}
}
</script> -->
</body>
</html>