!function($){ $(document).ready(function(){ //inherit from bootstrap (http://www.modernizr.com/) if ($.support.transition) { var $btn = $('.btn-navbar'), $nav = null, $fixeditems = null; if (!$btn.length){ return; } //mark that we have off-canvas menu $(document.documentElement).addClass('off-canvas-ready'); $nav = $('
').appendTo($('
').appendTo(document.body)); $($btn.data('target')).clone().appendTo($nav); $btn.click (function(e){ if ($(this).data('off-canvas') == 'show') { hideNav(); } else { showNav(); $('body').append(' '); } return false; }); var posNav = function () { var t = $(window).scrollTop(); if (t < $nav.position().top) $nav.css('top', t); }, bdHideNav = function (e) { e.preventDefault(); hideNav(); return false; }, showNav = function () { $('html').addClass ('off-canvas'); $nav.css('top', $(window).scrollTop()); wpfix(1); setTimeout (function(){ $btn.data('off-canvas', 'show'); $('html').addClass ('off-canvas-enabled'); $(window).bind('scroll touchmove', posNav); // hide when click on off-canvas-nav $('#off-canvas-nav').bind ('click', function (e) { e.stopPropagation(); }); $('#off-canvas-nav a').bind ('click', hideNav); $('html').bind ('click', bdHideNav); }, 50); setTimeout (function(){ wpfix(2); }, 1000); }, hideNav = function () { $(window).unbind('scroll touchmove', posNav); $('#off-canvas-nav').unbind ('click'); $('#off-canvas-nav a').unbind ('click', hideNav); $('html').unbind ('click', bdHideNav); $('html').removeClass ('off-canvas-enabled'); $btn.data('off-canvas', 'hide'); setTimeout (function(){ $('html').removeClass ('off-canvas'); }, 600); $('.exit-cavas').remove(); }, wpfix = function (step) { // check if need fixed if ($fixeditems == -1){ return;// no need to fix } if (!$fixeditems) { $fixeditems = $('body').children().filter(function(){ return $(this).css('position') === 'fixed' }); if (!$fixeditems.length) { $fixeditems = -1; return; } } if (step==1) { $fixeditems.css({'position': 'absolute', 'top': $(window).scrollTop() + 'px'}); } else { $fixeditems.css({'position': '', 'top': ''}); } }; } }) }(jQuery); /* FILE ARCHIVED ON 11:16:15 Mar 12, 2020 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:16:45 Mar 12, 2020. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): exclusion.robots: 0.211 load_resource: 58.402 RedisCDXSource: 239.466 exclusion.robots.policy: 0.196 esindex: 0.018 LoadShardBlock: 106.608 (3) captures_list: 361.66 PetaboxLoader3.datanode: 104.823 (3) CDXLines.iter: 11.803 (3) */