var pages = ["Home", "Calibration", "Troubleshooting", "Upgrade Guides", "Diagonal Z Hop", "Review Policy", "Sponsors", "Contact"] var urls = ["index.html", "calibration.html", "troubleshooting.html", "upgrades.html", "diagonalZhop.html", "reviewpolicy.html", "sponsors.html", "contact.html"] var menu = ''; var tab; for(var i = 0; i < pages.length; i++){ menu += ''; } menu += ''; $('#menu').html(menu); function sizeBody(){ var menuClearance = $('#menu').outerHeight()+30; $('body').css("margin-top",menuClearance); } $('head').append(''+pageTitle+''); var header ='

'+pageTitle+'

'; $('#header').html(header); var up = '^ TOP ^'; $('#up').html(up); $( "#up" ).bind( "click", function() { $('html, body').animate({scrollTop: '0px'}, 500); }); var footer = `

This page is fully open source. If you find a bug or have a feature request, please post in the issues section. Make sure to read the pinned readme.

This page was created using:

`; $('#footer').html(footer); $(document).ready(function(){ $('#tabs').responsiveTabs({ startCollapsed: 'accordion' }); $(".videoThumb").videoBox({ width: '480', height: '360', loop: false, autoplay: false, byline: false, color: "00adef", maxheight: '', maxwidth: '', portrait: true, title: '', controls: 1 }); sizeBody(); $(window).resize(function(){ sizeBody(); }); tab = $(location).attr('hash'); });