This commit is contained in:
Ritchie Martori
2012-04-11 19:12:32 -07:00
parent 46482aa162
commit 0ebe964aa2
9 changed files with 792 additions and 782 deletions

View File

@@ -1,4 +1,26 @@
</div>
</div> <!-- /span9 -->
</div> <!-- /row -->
</div> <!-- /container -->
</body>
<script>
var nav = $('.nav').empty();
// build out navigation
$('h1, h2').each(function () {
var key = $(this).text().replace(/ /g, '-');
$(this).prepend('<a name="'+ key + '"></a>');
console.log(this);
nav.append('<li class="'+ (this.nodeName === 'H1' ? 'nav-header' : '') +'"><a href="#' + key + '">' + $(this).text() + '</a></li>');
})
function fill() {
$('#side .well').height($(window).height() - 100);
}
$(window).resize(fill)
fill();
</script>
</html>

View File

@@ -5,28 +5,18 @@
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Bitter:400,700,400italic' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<span class="brand">
<a href="index.html"><img src="img/logo-text.png" alt="Deployd"></a>
</span>
<ul class="nav">
<li><a href="collection.html">Collection</a></li>
<li><a href="usercollection.html">User Collection</a></li>
<li><a href="files.html">Files</a></li>
</ul>
<script>
$('.nav a').each(function () {
var url = window.location.toString();
if(url.indexOf($(this).attr('href')) === (url.lastIndexOf('/') + 1))
$(this).parent().addClass('active');
});
</script>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3" style="height: 1px;">
</div><!--/span-->
<div id="side">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<div class="container">
</ul>
</div><!--/.well -->
</div><!-- /#side -->
<div class="span9" style="max-width: 1000px;">