-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (65 loc) · 2.04 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
<html>
<head>
<title>:: ocelotl | chipahuac</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css" >
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="HandheldFriendly" content="true" />
<script language="JavaScript" src="../vvvv.js/lib/jquery/jquery-1.8.2.min.js"></script>
<script language="JavaScript" src="../vvvv.js/lib/require.js"></script>
<script language="JavaScript" src="../vvvv.js/vvvv.js"></script>
<link rel="Stylesheet" href="../vvvv.js/vvvviewer/vvvv.css"/>
<link rel="VVVV" href="patch.v4p"/>
<script language="JavaScript">
$(document).ready(function() {
VVVVContext.init("../vvvv.js", "full", function() {
console.log('VVVV.js ready.');
});
});
</script>
<script>
$(document).ready(function(){
$(document).keydown(function(){
var x = event.key;
document.getElementById("tecla").innerHTML = x;
});
$(document).keyup(function(){
document.getElementById("tecla").innerHTML = "Amitla";
});
});
</script>
<style>
body {
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
.container {
max-width: 360px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
}
.container img {
width: 100%;
height: auto;
}
.back {
position: absolute;
bottom: 5%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
}
</style>
</head>
<body ondragstart="return false;" ondrop="return false;" onselectstart="return false;">
<div class="CanvasDiv">
<div id="RendererMain"></div>
</div>
<div class="container"></div>
<div id="tecla"></div>
</body>
</html>