mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-10 15:29:22 +08:00
26 lines
645 B
HTML
26 lines
645 B
HTML
</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> |