forked from philippedubost/keybright
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_LOCAL.html
128 lines (100 loc) · 4.62 KB
/
index_LOCAL.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<meta name="robots" content="noindex">
<script type="text/javascript" src="./js/lib/matter-0.8.0.js"></script>
<script src="js/lib/modernizr.custom.js"></script>
<script src="js/lib/interact.min.js"></script>
<link rel="stylesheet" href="./css/styles.css" type="text/css">
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
var scene = "Keyboard";
// get the scene function name from hash
if (window.location.hash.length !== 0)
scene = window.location.hash.replace('#', '').replace('-inspect', '');
</script>
<script type="text/javascript" src="./js/scenes/Keyboard.js"></script>
<script type="text/javascript" src="./js/scenes/Musicolor.js"></script>
<script type="text/javascript" src="./js/IntroCalibration.js"></script>
<title>Keybright 1.0 - Your DIY light installation</title>
</head>
<body>
<!--<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="social-box" align="right">
<div class="fb-like" data-href="https://www.facebook.com/keybright.net" data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46810788-3', 'auto');
ga('send', 'pageview');
</script>
-->
<audio id="sound1" src="sound/key1.ogg" preload="auto"></audio>
<audio id="sound2" src="sound/key2.ogg" preload="auto"></audio>
<audio id="sound3" src="sound/key3.ogg" preload="auto"></audio>
<audio id="sound4" src="sound/space1.ogg" preload="auto"></audio>
<audio id="sound5" src="sound/space2.ogg" preload="auto"></audio>
<!--
https://github.com/philippedubost/keybright
TODO:
- Create a template game
IDEAS
- Make game variations library
- Open github commuity to create games and apps
- Message: 'You have a projector at home? Let's take a few seconds to create a fun and original playground with a simple keyboard and some imagination !'
GAMES
- Incredible machine style
- Casse brique
- Type match
- ...
<div id="scene-menu">
<a onClick="swapScene("Keyboard")">Keyboard</a> - <a href="index_LOCAL.html#Musicolor">Musicolor</a>
</div>
-->
<!-- HOME -->
<div id="home" class="slide">
<h1>Welcome to Keybright 1.0</h1>
<p>Build your own magical light installation in just a few clicks.</p>
<button class="btn btn-4 btn-4c icon-arrow-right" id="startPreparation">1. Let's go !</button>
</div>
<!-- PREPARATION - Grille de calibration en background -->
<div id="preparation" class="slide">
<h1>Preparation</h1>
<p>Drag that Window to your projector screen. Press F11 to go fullscreen</p>
<button class="btn btn-4 btn-4c icon-arrow-right" id="startCalibration">2. Calibrate Keyboard</button>
</div>
<!-- CALIBRATION - Grille de calibration en background -->
<div id="calibration" class="slide no-border">
<h1>Calibration</h1>
<button class="btn btn-4 btn-4c icon-arrow-right" id="startPlay">3. Play !</button>
</div>
<div class="resize-container">
<div id="calibrationRectangle" class="resize-drag draggable">
Drag and Resize me over your keyboard.
</div>
</div>
<!-- PLAY -->
<button class="btn btn-4 btn-4b icon-arrow-left top-layer" id="backToCalibration">Re-Calibrate</button>
<div id="keyboardLight"></div>
<div id="keyboardLight_print"></div>
<div class="container" id="play">
<div id="canvas-container">
</div>
</div>
</body>
</html>