-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen2.html
39 lines (33 loc) · 1.19 KB
/
screen2.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
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/screen2.css">
<script type='application/javascript' src='js/fastclick.js'></script>
</head>
<body>
<div id="header">
<div>r<span>Hybrid</span></div>
</div>
<div class="container">
<div class="content">
<p class="wrapper">
Show a side menu using native animations.
</p>
</div>
</div>
<input id="menu" type="button" value="Show Menu">
</body>
<script>
if ('addEventListener' in document) {
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body);
}, false);
document.getElementById('header').addEventListener('click', function() {
Rhy.popScreen();
}, false);
document.getElementById('menu').addEventListener('click', function() {
Rhy.createMenu('menu.html', 'option1.html', '3.0rem');
}, false);
}
</script>
</html>