-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (42 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" /><title>ページを下にスクロールするとヘッダーが表示される(index1) - js do it</title>
<meta name="Description" content="jsdo.it - share JavaScript, HTML5 and CSS - " />
<meta name="Keywords" content="JavaScript,HTML5,CSS" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<style type="text/css">body,
h1,
p {
padding: 0;
margin: 0;
}
header {
background-color: #000;
line-height: 56px;
text-align: center;
width: 100%;
color: #fff;
}
.link {
text-align: center;
font-size: 12px;
}</style></head>
<body>
<link rel="stylesheet" href="http://jsrun.it/assets/4/t/1/w/4t1wL">
<header class="cb-header">header</header>
<div style="height: 3000px; background-color: #cca; text-align: center; padding-top: 72px" class="cb-header2">
<h1>main</h1>
<br>
<p>
↑<br>
スクロースすると、ヘッダーが表示/非表示される<br>
↓
</p>
<br>
<p class="link"><a href="https://github.com/maechabin/jquery.cb-slideheader.js" target="_blank">https://github.com/maechabin/jquery.cb-slideheader.js</a></p>
</div>
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="build.js"></script>
</body>
</html>