-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstlViewer_original.html
More file actions
40 lines (35 loc) · 1.24 KB
/
stlViewer_original.html
File metadata and controls
40 lines (35 loc) · 1.24 KB
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
<html>
<head>
<script type="text/javascript">
var stlViewer;
function loadContentAfterScriptsLoad(node) {
stlViewer = new StlViewer(node);
stlViewer.render();
};
function loadContent(node) {
/*
* this loadScripts() function call will load the javascript imports
* into this html file
*/
scriptloader.loadScripts('stlViewer', document, node.id, eventManager);
};
/*
* This is called when the student clicks on the save button below in the body
*/
function save() {
/*
* calls the save function in stlViewer.js
*/
stlViewer.save();
}
</script>
</head>
<body>
<!-- TODO create the html UI that the student will see when they visit the step -->
<!-- the promptDiv, responseDiv, saveButtonDiv are not required, they are only provided as an example,
you may delete all of these divs and create the body however you like -->
<div id='promptDiv'></div>
<div id='responseDiv'><textarea id='studentResponseTextArea' rows='8' cols='80'></textarea></div>
<div id='saveButtonDiv'><input type='button' value='Save' onclick='save()'></input></div>
</body>
</html>