-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.tpl
76 lines (69 loc) · 2.03 KB
/
view.tpl
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
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=0.1">
<script type="text/javascript" src="jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="Javascript">
$(document).ready(function(){
$(document).keypress(function(e){
$.post( "/ajax", {arrow:e.which}, function( data ) {
//console.log(e);
});
});
$(document).keyup(function(e){
$.post( "/ajax", {arrow:e.which}, function( data ) {
//console.log(e);
});
});
$("#f")
.mousedown(function(){
$.post( "/ajax", {arrow:38}, function( data ) {});
})
// .mouseup(function(){
// $.post( "/ajax", {arrow:87}, function( data ) {});
// });
$("#b")
.mousedown(function(){
$.post( "/ajax", {arrow:40}, function( data ) {});
})
// .mouseup(function(){
// $.post( "/ajax", {arrow:83}, function( data ) {});
// });
$("#l")
.mousedown(function(){
$.post( "/ajax", {arrow:37}, function( data ) {});
})
// .mouseup(function(){
// $.post( "/ajax", {arrow:65}, function( data ) {});
// });
$("#r")
.mousedown(function(){
$.post( "/ajax", {arrow:39}, function( data ) {});
})
// .mouseup(function(){
// $.post( "/ajax", {arrow:68}, function( data ) {});
// });
});
</script>
</head>
<body bgcolor="black" style="margin: 0px;"><center><br></br>
<img style="-webkit-user-select: none" src="http://140.114.79.229:8081/"><br></br>
<div class="Table">
<div class="Heading">
<div class="Cell"></div>
<div class="Cell" style="background-color:Blue;" id="f"></div>
<div class="Cell"></div>
</div>
<div class="Row">
<div class="Cell" style="background-color:Green;" id="l"></div>
<div class="Cell"></div>
<div class="Cell" style="background-color:Pink;" id="r"></div>
</div>
<div class="Row">
<div class="Cell"></div>
<div class="Cell" style="background-color:Yellow" id="b"></div>
<div class="Cell"></div>
</div>
</div>
</body>
</html>