-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvirus.html
More file actions
26 lines (23 loc) · 784 Bytes
/
Copy pathvirus.html
File metadata and controls
26 lines (23 loc) · 784 Bytes
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
<html>
<head>
<title>Virus</title>
</head>
<body>
<script type="module">
import Model from './VirusModel.js'
import run from './runModel.js'
// Use any query string to use TwoDraw, otherwise use TwoView
const useTwoDraw = window.location.search.length > 0
console.log('useTwoDraw:', useTwoDraw)
run(Model, { div: 'modelDiv', patchSize: 8 }, useTwoDraw).then(
(sample) => {
console.log('done, sample', sample)
util.printToPage(sample, 'textDiv')
}
)
</script>
<!-- divs for model and text. -->
<div id="modelDiv"></div>
<div id="textDiv"></div>
</body>
</html>