-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
57 lines (54 loc) · 1.58 KB
/
demo.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Numbas Eukleides extension</title>
<script src="lib/jme-runtime.js"></script>
<script src="lib/locales.js"></script>
<script src="dist/eukleides.js"></script>
<script>
function require() {return eukleides}
</script>
<script src="dist/demo.js"></script>
<script>
window.onload = function() {
run_demo();
}
</script>
<style>
article {
display: grid;
grid-auto-flow: column;
position: relative;
width: 100%;
grid: auto / minmax(min-content,1fr) 1fr;
}
article ~ article {
margin-top: 2em;
padding-top: 2em;
border-top: 1px solid #ccc;
}
article > pre {
overflow-x: auto;
margin-left: 1em;
font-size: 1.5em;
}
article > canvas, article > svg {
border: 1px solid #ccc;
margin: 1em;
position: sticky;
top: 0;
}
svg {
border-color: blue;
border-style: dashed;
}
</style>
</head>
<body>
<p>This page shows some examples of the Numbas eukleides extension.</p>
<p><a href="playground.html">Interactive playground</a></p>
<section id="examples">
</section>
</body>
</html>