forked from homata/brownbag
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidemenu.html
79 lines (71 loc) · 2.03 KB
/
sidemenu.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
<ons-page>
<div class="profile-pic">
<img src="logo.png">
</div>
<!--
<ons-list-title>アクセス</ons-list-title>
<ons-list>
<ons-list-item onclick="fn.loadView(0)">
<div class="left">
<ons-icon fixed-width class="list-item__icon" icon="ion-home, material:md-home"></ons-icon>
</div>
<div class="center">
ホーム
</div>
<div class="right">
<ons-icon icon="fa-link"></ons-icon>
</div>
</ons-list-item>
</ons-list>
-->
<!------------>
<ons-list-title style="margin-top: 10px">リンク</ons-list-title>
<ons-list>
<ons-list-item onclick="fn.loadLink('http://www.code-for-nagareyama.org/')">
<div class="left">
<ons-icon fixed-width class="list-item__icon" icon="ion-document-text"></ons-icon>
</div>
<div class="center">
<a href="http://www.code-for-nagareyama.org/">CODE for NAGAREYAMA</a>
</div>
<div class="right">
<ons-icon icon="fa-external-link"></ons-icon>
</div>
</ons-list-item>
</ons-list>
<!------------>
<script>
ons.getScriptPage().onInit = function() {
// Set ons-splitter-side animation
this.parentElement.setAttribute('animation', ons.platform.isAndroid() ? 'overlay' : 'reveal');
};
</script>
<style>
.profile-pic {
width: 60px;
background-color: #fff;
margin: 20px auto 10px;
border: 1px solid #999;
border-radius: 4px;
}
.profile-pic > img {
display: block;
max-width: 100%;
}
ons-list-item {
color: #444;
}
</style>
</ons-page>
<!--
<ons-template id="sidemenu.html">
<ons-list>
<ons-list-item modifier="chevron" onclick="menu.setMainPage('page1.html', {closeMenu: true})">
page1.html
</ons-list-item>
<ons-list-item modifier="chevron" onclick="menu.setMainPage('page2.html', {closeMenu: true})">
page2.html
</ons-list-item>
</ons-list>
</ons-template>
-->