-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (43 loc) · 1.44 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
iframe {
width: 700px;
height: 400px;
}
</style>
</head>
<body>
<div id="vrview">
<label><input type="checkbox" id="tag1" value="tag1">tag1</label>
<label><input type="checkbox" id="tag2" value="tag2">tag2</label>
<button id="add">Add</button>
</div>
<script src="https://cdn.gravitec.net/sites/gudz/client.js" async></script>
<!-- <script src="http://storage.googleapis.com/vrview/2.0/build/vrview.min.js"></script>
<script src="./script.js"></script> -->
<script>
var Gravitec = Gravitec || [];
var addButton = document.getElementById('add');
var checkbox1 = document.getElementById('tag1');
var checkbox2 = document.getElementById('tag2');
addButton.addEventListener('click', function(){
var tags = [];
if(checkbox1.checked){
tags.push(checkbox1.value)
}
if(checkbox2.checked){
tags.push(checkbox2.value)
}
Gravitec.push(['setTags', tags])
})
</script>
<script type="text/javascript">
(function(w,d,s,u,h,a,m){w[h]=w[h]||function(){(w[h].q=w[h].q||[]).push(arguments)};a=d.createElement(s),m=d.getElementsByTagName(s)[0];a.async=1;a.src=u;a.charset='utf-8';m.parentNode.insertBefore(a,m)})(window,document,'script','//hintarea.com/hint.js','_hintArea');
_hintArea("start");
</script>
</body>
</html>