-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (60 loc) · 1.49 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>PowerLite</title>
<meta name="viewport" content="width=device-width">
<link href='http://fonts.googleapis.com/css?family=Roboto:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://yui.yahooapis.com/combo?pure/0.4.2/base-min.css&pure/0.4.2/buttons-min.css">
<style>
body {
overflow: hidden;
}
table {
height: 100%;
width: 100%;
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
}
table tr {
height: 25%;
width: 100%;
}
button.pure-button {
font-family: 'Roboto', sans-serif;
height: 100%;
width: 100%;
font-size: 150%;
}
</style>
</head>
<body>
<!-- Old school table ! -->
<table>
<tr>
<td><button class="pure-button" data-num="1">Power 1</button></td>
</tr>
<tr>
<td><button class="pure-button" data-num="2">Power 2</button></td>
</tr>
<tr>
<td><button class="pure-button" data-num="3">Power 3</button></td>
</tr>
<tr>
<td><button class="pure-button" data-num="4">Power 4</button></td>
</tr>
</table>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function(){
$('button').on('click', function() {
var num = $(this).attr('data-num');
$.ajax({
url: '/toggle/' + num
});
});
});
</script>
</body>
</html>