-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
119 lines (97 loc) · 3.2 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Luminis Cardboard Experiment</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="scene">
<div id="startButton" style="color:white;height:100%;cursor:pointer;">
<center>
<h1 style="margin:5px;margin-top:20px;">Luminis Cardboard Experiment</h1>
<p style="margin:10px;margin-bottom:20px;">Place your phone into the cardboard and click anywhere when ready.</p>
<img src="images/cardboard.gif" style="max-width: 25%;" />
</center>
</div>
</div>
<script src="js/external/jquery-2.1.1.min.js"></script>
<script src="js/external/jstorage.js"></script>
<script src="js/external/three.min.js"></script>
<script src="js/external/NoSleep.min.js"></script>
<script src="js/external/helvetiker_regular.typeface.js"></script>
<script src="js/StereoEffect.js"></script>
<script src="js/DeviceOrientationControls.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/external/has.js"></script>
<script src="js/Cardboard.js"></script>
<script src="js/Stats.js"></script>
<script>
var root = this;
var SCALE = 3;
</script>
<script src="js/Cursor.js"></script>
<script src="js/RoomEntrence.js"></script>
<script src="js/RoomArrival.js"></script>
<script src="js/RoomWorkplacesFront.js"></script>
<script src="js/RoomChef.js"></script>
<script src="js/RoomSales.js"></script>
<script src="js/RoomConference.js"></script>
<script src="js/RoomWorkplaces.js"></script>
<script src="js/RoomBack.js"></script>
<script src="js/RoomRelax.js"></script>
<script src="js/RoomIne.js"></script>
<script src="js/MainController.js"></script>
<script src="js/PhotoSphere.js"></script>
<script src="js/Hotspot.js"></script>
<script src="js/DetailImage.js"></script>
<script src="js/Textbox.js"></script>
<script src="js/GameRoom.js"></script>
<script src="js/NavigationArrow.js"></script>
<script src="js/Bat.js"></script>
<script src="js/Part.js"></script>
<script src="js/Ball.js"></script>
<script src="js/TextLights.js"></script>
<script>
$(function() {
// Initiate Insomnia PhoneGap Plugin
try {
cordova.exec(function(){}, function(){}, "Insomnia", "keepAwake", []);
} catch (e){ }
});
// initialize the screen
var cardboard, mainController, cursor;
function setup() {
cardboard = new Cardboard();
mainController = new MainController();
cardboard.scene.add(mainController);
cursor = new Cursor();
cardboard.camera.add(cursor);
cursor.position.z = -3 * SCALE;
cursor.lookAt(cardboard.camera.position);
cardboard.effect.separation = 0.6;
if (!has.mobile) {
setTimeout(function() {
cardboard.orbitControls.target.set(0, 0.3, 1);
}, 0);
}
cardboard.update = function() {
Cardboard.prototype.update.call(this);
mainController.update();
};
document.getElementById('scene').appendChild(cardboard.renderer.domElement);
// Start
root.MainController = MainController;
root.Cursor = Cursor;
}
$("#startButton").on("click", function(){
var noSleep = new NoSleep();
noSleep.enable();
$(this).remove();
setup();
});
//setup();
</script>
</body>
</html>