We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a202cd3 commit 8bb55f2Copy full SHA for 8bb55f2
1 file changed
Client/index_sprint.html
@@ -16,15 +16,17 @@
16
<script>
17
$(document).ready(function() {
18
var viewer = new ThreeJsViewer();
19
- viewer.init('floor.js');
+ viewer.init($('#viewer'));
20
+ viewer.loadModel('floor.js');
21
viewer.onClick = function(id){
- $('#selection').html(id);
22
+ $('#selection').html(id ? id : 'nothing');
23
};
24
viewer.animate();
25
});
26
</script>
27
</head>
28
<body style="background-color: #CCEEEE; padding: 0; margin: 0;">
29
<p style="position: absolute; top: 10px; left: 10px; background-color: white; border: 1px solid black; padding: 5px;">selected: <span id="selection">nothing</span></p>
30
+<div id="viewer" style="width: 100%; height: 100%"></div>
31
</body>
32
</html>
0 commit comments