-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (67 loc) · 2.35 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="author" content="Estech">
<title>Intuition Preference Demo</title>
<!--<script type="text/javascript" src="js/scroll-polyfill.js"></script>-->
<script type="text/javascript" src="js/kx.js"></script>
<style>
html,
body {
margin: 0;
padding: O;
background: black;
height: 100%;
width: 100%;
}
@font-face {
font-family: 'Open Sans';
src: url('css/OpenSans-Light-webfont.woff');
font-weight: 300;
font-style: normal;
font-display: block;
}
@font-face {
font-family: 'Open Sans';
src: url('css/OpenSans-Regular-webfont.woff');
font-weight: 400;
font-style: normal;
font-display: block;
}
@font-face {
font-family: 'Open Sans';
src: url('css/OpenSans-Bold-webfont.woff');
font-weight: 700;
font-style: normal;
font-display: block;
}
</style>
</head>
<body>
<div id="instance" class="kx"
style="width:100%;height:100%;padding:0 ;margin:0;overflow:hidden;background:black;position: relative;">
</div>
<script>
window.onload = function () {
// Optionnaly replace all media by alternative source
// (Media list is in kx.imgDB)
kx.imgDB['kbkg'].hsrc = "images/kbkg.png";
kx.imgDB['care'].hsrc = "images/care.png";
kx.imgDB['unitfrg'].hsrc = "images/unitfrg2.png";
kx.imgDB['bkgSheet'].hsrc = "images/bkgSheet.jpg";
kx.imgDB['recipesSheet'].hsrc = "images/recipesSheet.png";
kx.imgDB['beep'].hsrc = "images/beep.mp3";
kx.imgDB['bleep'].hsrc = "images/bleep.mp3";
//then init the app in whatever element of the DOM with its ID.
//WIP : As long as the destination element has calculated dimensions.
if (kx.canRun()) {
kx.init("#instance");
} else {
alert("The experience can't run, please update your navigator")
}
}
</script>
</body>
</html>