-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_layout.html
163 lines (141 loc) · 3.04 KB
/
sample_layout.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="ja" />
<title>HTML TEMPLATE MODULES</title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<style type="text/css">
* {
margin:0px;
padding:0px;
border:0px;
font-size:100%;
}
body {
}
#container {
background:#f0f0f0;
position:relative;
}
#siteHeader {
z-index: 10;
width:100%;
height:50px;
background:#FFC;
position:fixed;
top:0;
}
#content {
z-index: 0;
padding:50px 0 0;
height:2000px;
background:#fff;
}
#siteFooter {
z-index: 10;
width:100%;
height:50px;
background:#CCF;
position:fixed;
bottom:0;
}
.modalwindow{
z-index: -1;
width:50%;
height:100%;
background:#300;
position:fixed;
top:0;
margin-left:50%;
color:#fff;
font-weight:900;
font-size:48px;
opacity:0.8;
box-shadow:2px 2px 12px #000;
}
.modalwindow.show{
z-index: 100;
}
.dialog{
z-index: -1;
width:100%;
height:100%;
position:fixed;
top:0;
}
.dialog.show{
z-index: 999;
}
.dialog p {
width:200px;
height:160px;
padding:20px 50px;
background:#FFF;
border-radius:20px;
vertical-align:middle;
text-align:center;
margin:30px 200px;
box-shadow:2px 2px 12px #000;
}
</style>
</head>
<body>
<div id="container">
<div id="siteHeader">
<h1>Layout example</h1>
<!-- /#siteHeader --></div>
<div id="content">
<div class="main">
<p>メインコンテンツ</p>
<ul>
<li id="btnShowModal"><a href="#">モーダルウインドウ表示</a></li>
<li id="btnShowDialog"><a href="#">ダイアログ表示</a></li>
</ul>
<!-- /.main --></div>
<div class="sub">
<p>サブコンテンツ</p>
<!-- /.sub --></div>
<!-- /#content --></div>
<div id="siteFooter">
<address>copyright © 2011 KAYAC all rights and reserved.</address>
<!-- /#siteFooter --></div>
<div class="modalwindow">
<p>モーダル</p>
</div>
<div class="dialog">
<p>ダイアログ</p>
</div>
<!-- /#container --></div>
<!-- [ SCRIPTS ] -->
<script src="./js/lib/LAB.min.js" type="text/javascript"></script>
<script src="./js/lib/jquery.1.6.1.js" type="text/javascript"></script>
<script src="./js/lib/meca.js" type="text/javascript"></script>
<script type="text/javascipt">
console.log('test');
$(init);
function init() {
console.log('test');
$("#btnShowModal").click(function(){
$(".modalwindow").addClass('show');
return false;
});
$("#btnShowDialog").click(function(){
$(".dialog").addClass('show');
return false;
});
$(".modalwindow").click(function(){
$(".modalwindow").removeClass('show');
return false;
});
$(".dialog").click(function(){
$(".dialog").removeClass('show');
return false;
});
}
</script>
<noscript><p id="msgNoscript">当サイトは、ブラウザのJavaScript設定を有効にしてご覧ください。</p></noscript>
<!-- / [ SCRIPTS ] -->
</body>
</html>