-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.html
69 lines (60 loc) · 1.78 KB
/
Home.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
<!DOCTYPE html>
<html>
<head>
<title>My mobile page!</title>
<link rel="stylesheet" href="themes/StrixHomeTheme.min.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile.structure-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>My first page</h1>
<div class="topnav">
<a href="#home" class="active">Logo</a>
<div id="myLinks">
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
</div>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>
</div>
<!-- Top Navigation Menu -->
<div data-role="main" class="ui-content">
<h1>Hello world</h1>
<p>Welcome to my first page</p>
</div>
<div data-role="footer">
<h2>© Sam Cogan 2014</h2>
</div>
</div>
<div data-role="page">
<div data-role="header">
<h1>My second page</h1>
</div>
<div data-role="main" class="ui-content">
<h1>Hello world</h1>
<p>Welcome to my second page</p>
</div>
<div data-role="footer">
<h2>© Sam Cogan 2019</h2>
</div>
</div>
</body>
<script>
function myFunction() {
var x = document.getElementById("myLinks");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
</script>
</html>