This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="main" class="nameof-page"> | |
<nav id="page-menu-wrapper"> | |
<ul id="page-menu"> | |
<li><a href="#"></a></li> | |
<li><a href="#" class="last"></a></li> | |
</ul> | |
</nav> | |
<div id="sectionname" class="page-section"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function() { | |
// The same for all waypoints | |
$('body').delegate('section > div.page-section', 'waypoint.reached', function(event, direction) { | |
var $active = $(this); | |
if (direction === "up") { | |
$active = $active.prev(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#menu { | |
float: right; | |
position: relative; | |
left: -50%; | |
} | |
#menu ul { | |
position: relative; | |
left: 50%; | |
} | |
#menu li { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="menu"> | |
<ul> | |
<li><a href="#">Link 1</a></li> | |
<li><a href="#">This is long...</a></li> | |
<li><a href="#">Link 3</a></li> | |
<li><a href="#">http://www.upshots.org/</a></li> | |
<li><a href="#">Link 5</a></li> | |
</ul> | |
</div> |
NewerOlder