Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Scroll spy navigation added
  • Loading branch information
Eugene Simakin committed Jan 5, 2014
1 parent db0d195 commit 60015ce
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
7 changes: 6 additions & 1 deletion css/stylesheet.css
Expand Up @@ -519,5 +519,10 @@ footer a:hover {
}

.affix {
position: fixed;
width: 200px;
top: 20px;
}

.affix-top {
width: 200px;
}
26 changes: 13 additions & 13 deletions index.html
Expand Up @@ -26,7 +26,7 @@
<title>jQuery Pagination plugin</title>
</head>

<body>
<body data-spy="scroll" data-target="#navigation">
<header>
<div class="inner">
<h1>jQuery Pagination plugin</h1>
Expand All @@ -42,7 +42,7 @@ <h2>Optimized for bootstrap</h2>
<div class="inner clearfix">
<section id="main-content">
<h3>
<a name="intro" class="anchor" href="#intro"><span
<a id="intro" class="anchor" href="#intro"><span
class="octicon octicon-link"></span></a>Intro</h3>

<p>This jQuery plugin simplifies the usage of Bootstrap Pagintion. It uses appropriate classes:
Expand All @@ -62,7 +62,7 @@ <h3>
</p>

<h3>
<a name="demo" class="anchor" href="#demo"><span
<a id="demo" class="anchor" href="#demo"><span
class="octicon octicon-link"></span></a>Demo</h3>

<p>
Expand All @@ -87,7 +87,7 @@ <h3>
<pre><code class="highlight"> &lt;<span class="nt">ul</span> <span class="na">id</span>=<span class="s">&quot;pagination-demo&quot;</span> <span class="na">class</span>=<span class="s">&quot;pagination-sm&quot;</span>&gt;&lt;/<span class="nt">ul</span>&gt;</code></pre>

<h3>
<a name="options-and-events" class="anchor" href="#options-and-events"><span
<a id="options-and-events" class="anchor" href="#options-and-events"><span
class="octicon octicon-link"></span></a>Options and events</h3>

<p>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h3>
</p>

<h3>
<a name="examples" class="anchor" href="#examples"><span
<a id="examples" class="anchor" href="#examples"><span
class="octicon octicon-link"></span></a>Examples</h3>

<h4>URL page link</h4>
Expand All @@ -131,14 +131,14 @@ <h4>URL page link</h4>
</section>

<aside id="sidebar">

<ul class="nav nav-pills nav-stacked">
<li><a href="#intro">Intro</a></li>
<li><a href="#demo">Demo</a>
<li><a href="#options-and-events">Options and events</a>
<li><a href="#examples">Examples</a>
</ul>

<div id="navigation">
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="#intro">Intro</a></li>
<li><a href="#demo">Demo</a>
<li><a href="#options-and-events">Options and events</a>
<li><a href="#examples">Examples</a>
</ul>
</div>
</aside>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions js/main.js
Expand Up @@ -6,5 +6,12 @@ $(document).ready(function () {
$('#page-content').text('Page ' + page);
}
});

$('#navigation').affix({
offset: {
top: 200
}
});

});

0 comments on commit 60015ce

Please sign in to comment.