-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsample1.html
39 lines (34 loc) · 866 Bytes
/
sample1.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample</title>
<link rel="stylesheet" href="css/onsenui.css">
<link rel="stylesheet" href="css/onsen-css-components.css">
<script src="js/onsenui.min.js"></script>
<script>
ons.ready(function() {
console.log('onsenui ready');
});
function btn_click(btn) {
console.log(`clicked : ${btn.tagName}`);
}
</script>
</head>
<body>
<ons-navigator title="Navi" var="nav">
<ons-page>
<ons-toolbar>
<div class="left">
<ons-toolbar-button onclick="btn_click(this)">
<ons-icon icon="fa-bars" />
</ons-toolbar-button>
</div>
<div class="center">Sample</div>
</ons-toolbar>
<div>Content</div>
<ons-button onclick="btn_click(this)">click button</ons-button>
</ons-page>
</ons-navigator>
</body>
</html>