-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (53 loc) · 1.58 KB
/
index.html
File metadata and controls
56 lines (53 loc) · 1.58 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="https://necolas.github.io/normalize.css/latest/normalize.css">
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i|Montserrat" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./CSS/master.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<meta charset="utf-8">
<title>Home</title>
</head>
<body>
<header>
<div class="container">
<div class="logo">
<a href="./aboutme.html">
<img src="../jcphotologo.png" alt="Logo">
</a>
</div>
<nav class="menu">
<ul class="menu">
<li><a href="./city.html">City</a></li>
<li><a href="./nature.html">Nature</a></li>
<li><a href="./portraits.html">Portraits</a></li>
<li><a href="./film.html">Film</a></li>
<li><a href="./aboutme.html">About</a></li>
<li><a href="./contact.html">Contact</a></li>
</ul>
<a href='#' id='openup'>☰</a>
</nav>
</div>
</header>
<script>
$(function() {
menu = $('nav ul');
$('#openup').on('click', function(e) {
e.preventDefault(); menu.slideToggle();
});
$(window).resize(function(){
var w = $(this).width(); if(w > 680 && menu.is(':hidden')) {
menu.removeAttr('style');
}
});
$('nav li').on('click', function(e) {
var w = $(window).width(); if(w < 680 ) {
menu.slideToggle();
}
});
$('.open-menu').height($(window).height());
});
</script>
</body>
</html>