Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
9305fd37
Commit
9305fd37
authored
Aug 12, 2015
by
Thomas McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scrollspy example
parent
575a8864
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
28 deletions
+14
-28
docs/components/scrollspy.md
docs/components/scrollspy.md
+14
-28
No files found.
docs/components/scrollspy.md
View file @
9305fd37
...
...
@@ -14,26 +14,14 @@ group: components
The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.
<div
class=
"bd-example"
>
<nav
id=
"navbar-example2"
class=
"navbar navbar-default navbar-static"
role=
"navigation"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<button
class=
"navbar-toggle collapsed"
type=
"button"
data-toggle=
"collapse"
data-target=
".bd-example-js-navbar-scrollspy"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"#"
>
Project Name
</a>
</div>
<div
class=
"collapse navbar-collapse bd-example-js-navbar-scrollspy"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"#fat"
>
@fat
</a></li>
<li><a
href=
"#mdo"
>
@mdo
</a></li>
<li
class=
"dropdown"
>
<a
href=
"#"
id=
"navbarDrop1"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Dropdown
</a>
<ul
class=
"dropdown-menu"
aria-labelledby=
"navbarDrop1"
>
<nav
id=
"navbar-example2"
class=
"navbar navbar-default"
role=
"navigation"
>
<h3
class=
"navbar-brand"
>
Project Name
</h3>
<ul
class=
"nav nav-pills"
>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"#fat"
>
@fat
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"#mdo"
>
@mdo
</a></li>
<li
class=
"nav-item"
>
<a
class=
"nav-link dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
role=
"button"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Dropdown
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#one"
>
one
</a></li>
<li><a
href=
"#two"
>
two
</a></li>
<li
role=
"separator"
class=
"divider"
></li>
...
...
@@ -41,8 +29,6 @@ The ScrollSpy plugin is for automatically updating nav targets based on scroll p
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div
data-spy=
"scroll"
data-target=
"#navbar-example2"
data-offset=
"0"
class=
"scrollspy-example"
>
<h4
id=
"fat"
>
@fat
</h4>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment