-
Notifications
You must be signed in to change notification settings - Fork 3
/
atlas.html
195 lines (174 loc) · 9.74 KB
/
atlas.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ATLAS Panorama</title>
<meta name="description" content="ATLAS Panorama Webpage - A-Frame"/>
<!-- favico -->
<!-- <link rel="icon" type="image/png" href="logo/cern_logo.png"/> -->
<!-- <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script> -->
<script src="vendor/aframe/aframe-v1.0.4.min.js"></script>
<!-- <script src="vendor/aframe/aframe-animation-component.min.js"></script> -->
<script src="vendor/aframe/aframe-event-set-component.min.js"></script>
<script src="vendor/aframe/aframe-layout-component.min.js"></script>
<script src="vendor/aframe/aframe-template-component.min.js"></script>
<!-- <script src="https://unpkg.com/aframe-animation-component@^4.1.2/dist/aframe-animation-component.min.js"></script>
<script src="https://unpkg.com/aframe-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-layout-component.min.js"></script>
<script src="https://unpkg.com/aframe-template-component@^3.2.1/dist/aframe-template-component.min.js"></script> -->
<script src="vendor/ajax/jquery.js"></script>
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> -->
<link rel="stylesheet" type="text/css" href="css/load.css"/>
<script src="components/set-image.js"></script>
<script src="components/scroller.js"></script>
<script src="components/view-icon.js"></script>
<script src="components/load-assets.js"></script>
<script src="components/loading.js"></script>
<script src="components/atlas-choice.js"></script>
</head>
<body>
<div id="splash">
<div class="loading"></div>
<!-- <div class="start-button">Explore Atlas</div> -->
</div>
<a-scene>
<a-assets>
<div id="images">
<img id="left-arrow" crossorigin="anonymous" src="assets/backward.png"/>
<img id="right-arrow" crossorigin="anonymous" src="assets/forward.png"/>
<img id="view-icon" crossorigin="anonymous" src="assets/view_icon.png"/>
<img id="no-view-icon" crossorigin="anonymous" src="assets/no_view.png"/>
<img id="page-back" crossorigin="anonymous" src="assets/prev_page.png"/>
</div>
<script id="link" type="text/html">
<a-entity class="link"
geometry="primitive: plane; height: 1; width: 1"
material="shader: flat; src: ${thumb}"
event-set__1="_event: mousedown; scale: 1 1 1"
event-set__2="_event: mouseup; scale: 1.2 1.2 1"
event-set__3="_event: mouseenter; scale: 1.2 1.2 1"
event-set__4="_event: mouseleave; scale: 1 1 1"
set-image="on: click; target: #image-360; src: ${src}">
</a-entity>
</script>
</a-assets>
<!-- 360-degree image. -->
<a-sky id="image-360" radius="10" src="#undefined"></a-sky>
<!-- Match Oculus Go controller if present, regardless of hand. -->
<a-entity oculus-go-controls></a-entity>
<!-- Image links. -->
<a-entity id="image_thumbs">
<a-entity id="links_top" layout="type: line; margin: 1.25" position="-1.5 1.0 -4.25"></a-entity>
<a-entity id="links_bottom" layout="type: line; margin: 1.25" position="-1.5 -.25 -4.25"></a-entity>
</a-entity>
<!--Scrollers-->
<a-entity id="left-scroller" position="-2.50 0.5 -4">
<a-image class="scroll-left"
src="#left-arrow"
height="2" width="1"
material="opacity: 1.0; transparent: true"
event-set__1="_event: mousedown; scale: 1 1 1"
event-set__2="_event: mouseup; scale: 1.2 1.2 1"
event-set__3="_event: mouseenter; scale: 1.2 1.2 1"
event-set__4="_event: mouseleave; scale: 1 1 1"
scroll-left="on: click">
</a-image>
</a-entity>
<a-entity id="right-scroller" position="2 0.5 -4">
<a-image class="scroll-right"
src="#right-arrow"
height="2" width="1"
material="opacity: 1.0; transparent: true"
event-set__1="_event: mousedown; scale: 1 1 1"
event-set__2="_event: mouseup; scale: 1.2 1.2 1"
event-set__3="_event: mouseenter; scale: 1.2 1.2 1"
event-set__4="_event: mouseleave; scale: 1 1 1"
scroll-right="on: click">
</a-image>
</a-entity>
<!--View Icon-->
<a-entity id="view-icon" position="2 2.2 -5">
<a-image class="viewer"
src="#view-icon"
height="0.25" width="0.25"
material="opacity: 1.0; transparent: true"
event-set__1="_event: mousedown; scale: 1 1 1"
event-set__2="_event: mouseup; scale: 1.2 1.2 1"
event-set__3="_event: mouseenter; scale: 1.2 1.2 1"
event-set__4="_event: mouseleave; scale: 1 1 1"
view-icon="on: click">
</a-image>
</a-entity>
<!-- Page Back Icon-->
<a-entity id="prev-page" position="-2.25 2.3 -5">
<a-image class="previous"
src="#page-back"
height="0.5" width="0.5"
material="opacity: 1.0; transparent: true"
event-set__1="_event: mousedown; scale: 1 1 1"
event-set__2="_event: mouseup; scale: 1.2 1.2 1"
event-set__3="_event: mouseenter; scale: 1.2 1.2 1"
event-set__4="_event: mouseleave; scale: 1 1 1"
prev-page="on: click">
</a-image>
</a-entity>
<!--Add the text-->
<!-- <a-entity id="title1" text="value: ATLAS Panorama; color: #C70039; shader: msdf;
font: https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/cuprum/Cuprum-BoldItalic.json;
align: center;"
position="0 2.0 -5" scale="10 10 10"></a-entity> -->
<a-entity id="title1" text="value: ATLAS Panorama; color: #C70039; shader: msdf;
font:kelsonsans;
align: center;"
position="0 2.35 -5" scale="10 10 10"></a-entity>
<!-- Add white, highlighting background text -->
<!-- <a-entity id="title2" text="value: ATLAS Panorama; color: white; shader: msdf;
font:https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/cuprum/Cuprum-BoldItalic.json;
align: center;"
position="0 2.0 -5" scale="10.2 10.25 9.25"></a-entity> -->
<!-- Camera + cursor. -->
<a-entity camera look-controls>
<!-- simple cursor -->
<!-- <a-cursor id="cursor"
raycaster="objects: .link, .scroll-left, .scroll-right, .previous, .viewer">
</a-cursor> -->
<!-- animated cursor -->
<!-- <a-cursor id="cursor"
animation__click="property: scale; startEvents: click; from: 0.1 0.1 0.1; to: 1 1 1; dur: 150"
animation__fusing="property: fusing; startEvents: fusing; from: 1 1 1; to: 0.1 0.1 0.1; dur: 1500"
event-set__1="_event: mouseenter; color: springgreen"
event-set__2="_event: mouseleave; color: black"
fuse="true"
raycaster="objects: .link, .scroll-left, .scroll-right, .previous, .viewer">
</a-cursor> -->
<!-- NEW IMPLEMENTATIONS -->
<!-- SIMPLE -->
<!-- <a-entity cursor="fuse: true; fuseTimeout: 500"
position="0 0 -1"
geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03"
material="color: black; shader: flat">
</a-entity> -->
<!-- WITH VISUAL FEEDBACK -->
<!-- <a-entity
animation__click="property: scale; startEvents: click; easing: easeInCubic; dur: 150; from: 0.1 0.1 0.1; to: 1 1 1"
animation__fusing="property: scale; startEvents: fusing; easing: easeInCubic; dur: 1500; from: 1 1 1; to: 0.1 0.1 0.1"
animation__mouseleave="property: scale; startEvents: mouseleave; easing: easeInCubic; dur: 500; to: 1 1 1"
cursor="fuse: true;"
material="color: black; shader: flat"
position="0 0 -3"
geometry="primitive: ring">
</a-entity> -->
<a-entity
animation__click="property: scale; startEvents: click; easing: easeInCubic; dur: 150; from: 0.1 0.1 0.1; to: 1 1 1"
animation__fusing="property: scale; startEvents: fusing; easing: easeInCubic; dur: 500; from: 1 1 1; to: 0.1 0.1 0.1"
animation__mouseleave="property: scale; startEvents: mouseleave; easing: easeInCubic; dur: 500; to: 1 1 1"
animation__mouseenter="property: color; startEvents: mouseenter; dur: 500; to: red"
cursor="fuse: true;"
material="color: black; shader: flat"
position="0 0 -4"
geometry="primitive: ring; radiusInner: 0.2; radiusOuter: 0.3">
</a-entity>
</a-entity>
</a-scene>
</body>
</html>