-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (57 loc) · 2.23 KB
/
index.html
File metadata and controls
66 lines (57 loc) · 2.23 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="This is a mobile machine drum to play with friends in the same room. Admin can control intruments in the peers mobile devices.">
<meta name="keywords" content="mobile machine drum, mobile, machine, drum, machine drum, play, friend, friends">
<meta name="author" content="Free Geeks a.k.a. RRR">
<title>Mobile Drums</title>
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/styles.css" type="text/css" media="screen">
<link href='http://fonts.googleapis.com/css?family=Dosis' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
</head>
<body>
<header>
<h1>Mobile Machine Drum</h1>
<p>play drums using your friend’s mobiles!</p>
<input type="text" id="room" name="" value="" placeholder="name your room">
</header>
<a href="javascript:;" class="start">START</a>
<script src="/socket.io/socket.io.js"></script>
<script>
/**
* Add JS here at the bottom of the page
* to avoid the whole document.ready since
* we are not using jquery
*/
// Single DOM element selection
window.$ = function(selector) {
return document.querySelector(selector);
};
// Bind event using "on"
Element.prototype.on = Element.prototype.addEventListener;
// play button
$('.start').on('click', function(e) {
e.preventDefault();
var roomName = escape($('#room').value);
if (roomName.length === 0) {
roomName = (new Date()).getTime().toString(16).substr(-8);
}
location.href = '/' + roomName;
});
</script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-41306693-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', '.mobiledrums.freegeeks.nl']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>