-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (153 loc) · 4.96 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
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
<!DOCTYPE html>
<html>
<head>
<title>Jquery plugin to one page navigation</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
margin: 0;
padding: 0;
text-align: center;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
.scrol-page {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.main-wrapper {
width: 1000px;
margin: 0 auto;
display: table;
height: 100%;
}
h2 {
color: #ffffff;
display: table-cell;
font-size: 5em;
vertical-align: middle;
font-weight: 700;
text-transform: uppercase;
}
header {
height: 50px;
background: #ffffff;
line-height: 50px;
}
.main-nav {
margin: 0;
padding: 0;
}
.main-nav li {
display: inline-block;
margin:0 10px;
}
.main-nav li a {
color: #222438;
text-decoration: none;
font-size: 1.2em;
text-transform: uppercase;
-webkit-transition: color 0.5s;
transition: color 0.5s;
}
.main-nav li a:hover,
.main-nav li a.active {
color: #d92b00;
}
.scrool-nav-show {
display: none;
}
@media screen and (max-width: 1000px) {
.main-wrapper {
width: 100%;
}
header {
line-height: normal;
position: relative;
}
.main-nav {
height: 0;
overflow: hidden;
-webkit-transition: height 0.5s;
transition: height 0.5s;
}
.main-nav li {
display: block;
margin: 10px 0;
}
.scrool-nav-show {
display: block;
border-bottom: #222438 solid 5px;
border-top: #222438 solid 5px;
width: 30px;
height: 15px;
position: absolute;
left: 20px;
top: 12px;
}
.scrool-nav-show:before {
position: absolute;
top: 5px;
left: 0px;
display: block;
height: 5px;
width: 30px;
background: #222438;
content: '';
}
}
</style>
</head>
<body>
<header>
<nav>
<ul class="main-nav">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="http://google.pl">google</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#ignore-page" class="scroolnav-ignore"></a></li>
<li><a href="#contacts">Contacts</a></li>
</ul>
</nav>
</header>
<div class="scrol-page" id="home" style="background:#222438;">
<div class="main-wrapper">
<h2>Home Page</h2>
</div>
</div>
<div class="scrol-page" id="about" style="background:#ffb000">
<div class="main-wrapper">
<h2>About Page</h2>
</div>
</div>
<div class="scrol-page" id="portfolio" style="background:#d92b00">
<div class="main-wrapper">
<h2>Portfolio Page</h2>
</div>
</div>
<div class="scrol-page" id="ignore-page" style="background:#DBED00">
<div class="main-wrapper">
<h2>Ignore Page</h2>
</div>
</div>
<div class="scrol-page" id="contacts" style="background:#800080">
<div class="main-wrapper">
<h2>Contact Page</h2>
</div>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="js/scrolnav.js" type="text/javascript"></script>
<script>
$(function() {
$('header').scrolnav({
oneScrean: true,
});
});
</script>
</html>