-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
44 lines (39 loc) · 1.18 KB
/
demo.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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="navigate.js"></script>
<link rel="stylesheet" type="text/css" href="navigate.css" />
<style>
#page1 {
background: red;
}
#page2 {
background: blue;
}
#page3 {
background: yellow;
}
}
</style>
<script>
navigateStart('#page1');
</script>
</head>
<body>
<div class='page' id='page1'>
<h1>Page 1</h1>
<p onclick="navigateTo('#page2')">Go to Page 2</p>
<p onclick='navigateGoBack()'>Back</p>
</div>
<div class='page' id='page2'>
<h1>Page 2</h1>
<p onclick="navigateTo('#page3')">Go to Page 3</p>
<p onclick='navigateGoBack()'>Back</p>
</div>
<div class='page' id='page3'>
<h1>Page 3</h1>
<p onclick="navigateTo('#page1')">Go to Page 1</p>
<p onclick='navigateGoBack()'>Back</p>
</div>
</body>
</html>