-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (67 loc) · 3.68 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<html>
<head>
<meta charset="utf-8">
<title>Shiva-VR</title>
<meta name="description" content="VR">
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
</head>
<body bgcolor="222"><h2 colour="white"><center><font color="white">About Shiva</font></center></h2>
<a-scene auto-enter-vr>
<a-assets>
<img id="home1" src="assets/ash.jpg">
<img id="home2" src="assets/blue.jpg">
<img id="home3" src="assets/snake.jpg">
<img id="home4" src="assets/tri.jpg">
<img id="home5" src="assets/3rdeye.jpg">
</a-assets>
<a-entity>
<a-entity camera look-controls wasd-controls>
<a-entity position="0 1 -2" scale="0.2 0.2 0.2" geometry="primitive: ring; radiusOuter: 0.20; radiusInner: 0.13;" material="color: #ADD8E6; shader: flat" cursor="maxDistance: 30; fuse: true">
<a-animation begin="click" easing="ease-in" attribute="scale" fill="backwards" from="0.1 0.1 0.1" to="1 1 1" dur="150"></a-animation>
<a-animation begin="fusing" easing="ease-in" attribute="scale" fill="forwards" from="1 1 1" to="0.2 0.2 0.2" dur="1500"></a-animation>
</a-entity>
</a-entity>
</a-entity>
<a-curvedimage id="ho1" src="#home1" transparent="true"
height="2" radius="3" theta-length="40" rotation="0 250 0" position="0 0 -2">
</a-curvedimage>
<a-curvedimage id="ho2" src="#home2" transparent="true"
height="2" radius="3" theta-length="40" rotation="0 200 0" position="0 0 -2">
</a-curvedimage>
<a-curvedimage id="ho5" src="#home5" transparent="true"
height="2" radius="3" theta-length="40" rotation="0 150 0" position="0 0 -2">
</a-curvedimage>
<a-curvedimage id="ho3" src="#home3" transparent="true"
height="2" radius="3" theta-length="40" rotation="0 100 0" position="0 0 -2">
</a-curvedimage>
<a-curvedimage id="ho4" src="#home4" transparent="true"
height="2" radius="3" theta-length="40" rotation="0 50 0" position="0 0 -2">
</a-curvedimage>
<a-light type="directional" color="#fff" intensity="0.2" position="-1 2 1"></a-light>
<a-light type="ambient" color="#fff"></a-light>
<a-sky src="assets/sky.jpg"></a-sky>
</a-scene>
<script>
AFRAME.registerComponent('auto-enter-vr', {
init: function () {
this.el.sceneEl.enterVR();
}
});
document.querySelector("#ho1").addEventListener('click', function() {
window.location.href = "Users/Mohithkumar/Desktop/Pongal_WebVR_wishes-master/pongal/ash/index.html";
});
document.querySelector("#ho2").addEventListener('click', function() {
window.location.href = "pongal/bluethroat/index.html";
});
document.querySelector("#ho3").addEventListener('click', function() {
window.location.href = "pongal/snake/index.html";
});
document.querySelector("#ho4").addEventListener('click', function() {
window.location.href = "pongal/trishul/index.html";
});
document.querySelector("#ho5").addEventListener('click', function() {
window.location.href = "pongal/3rdeye/index.html";
});
</script>
</body>
</html>