Sha256: c6d5ff6c6d3be9a2992d6658eab60e8a3915050b5629de3d99a4627356462abb
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
$(function(){ $('html').toggleClass('no-js js'); // build side menu var html = ''; $('.bs-docs-section h1').each(function () { var mainheader = $this = $(this); var subheaders = $this.nextUntil('h1', 'h2, h3'); if (mainheader.length) { html += '<li><a href="#' + mainheader[0].id +'">' + mainheader.clone().children().remove().end().text() + '</a>'; if (subheaders.length) { html+= '<ul class="nav">'; subheaders.each(function() { html += '<li><a href="#' + this.id +'">' + $(this).clone().children().remove().end().text() + '</a></li>'; }); html+= '</ul>'; } html += '</li>'; } }); if (html != '') { $('.bs-docs-sidenav').html(html); $('[role=complementary]').show(); $('[role=main]').toggleClass('col-md-12 col-md-9'); $('[role=complementary]').Stickyfill(); } $('body').scrollspy({ target: ".bs-docs-sidebar" }); }); function trianglify(color1, color2) { var header = $('#jumbotron-header'), t = new Trianglify({ cellsize: 90, noiseIntensity: 0, x_gradient: [color1, color2] }), pattern = t.generate(window.screen.width | header.outerWidth(), header.outerHeight()*1.2); header.css('background-image', pattern.dataUrl); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-docs-theme-0.1.2 | assets/js/docs.min.js |
jekyll-docs-theme-0.1.1 | assets/js/docs.min.js |
jekyll-docs-theme-0.1.0 | assets/js/docs.min.js |