-
Notifications
You must be signed in to change notification settings - Fork 0
/
14-scrollspy.html
110 lines (97 loc) · 4.9 KB
/
14-scrollspy.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bootstrap Practice</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body data-spy="scroll" data-target=".navbar">
<nav class="nav nav-pills mb-4 flex-wrap">
<a class="nav-link" href="1-general.html">General</a>
<a class="nav-link" href="2-navbar.html">Navbar</a>
<a class="nav-link" href="3-navtabs.html">Nav-tabs</a>
<a class="nav-link" href="4-buttons.html">Buttons</a>
<a class="nav-link" href="5-carousel.html">Carousel</a>
<a class="nav-link" href="6-thumbnails.html">Thumbnails</a>
<a class="nav-link" href="7-card.html">Card</a>
<a class="nav-link" href="8-utilities.html">Utilities</a>
<a class="nav-link" href="9-modal-card.html">Modal-Card</a>
<a class="nav-link" href="10-alerts.html">Alerts</a>
<a class="nav-link" href="11-forms.html">Forms</a>
<a class="nav-link" href="12-pagination.html">Pagination</a>
<a class="nav-link" href="13-tables.html">Tables</a>
<a class="nav-link active" href="14-scrollspy.html">Scrollspy</a>
</nav>
<!-- Scrollspy navbar -->
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light" style="top: 60px;">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="#section1">Home <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="#section2">Features</a>
<a class="nav-item nav-link" href="#section3">Pricing</a>
<a class="nav-item nav-link disabled" href="#">Disabled</a>
</div>
<span class="navbar-text mr-auto ml-auto">
Navbar text with an inline element
</span>
<form class="form-inline my-2 my-lg-0 ml-auto">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div class="container">
<div id="section1">
<h2>This is first section</h2>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
<p>This is first section. This is first section. This is first section.</p>
</div>
<div id="section2">
<h2>This is second section</h2>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
<p>This is second section. This is second section. This is second section.</p>
</div>
<div id="section3">
<h2>This is third section</h2>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
<p>This is third section. This is third section.</p>
</div>
</div>
<!-- JavaScript -->
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>