!function ($) { // Convenience vars for accessing elements var _html = '
', $body = $('#main-wrap'), $bottomNav = $('.bottomnav'), $pageslide = $(_html).css('display', 'none').appendTo( $body ), $element; var _sliding = false, // Mutex to assist closing only once _lastCaller; // Used to keep track of last element to trigger pageslide // $(window).resize(function(event) { // if($pageslide.is(':visible')) { // console.log("ddd") // $pageslide.find('.nano').height($('body').height() - $('#orbit-bar').height() - $pageslide.find('.page-title').outerHeight(true)); // } // }); function _load(settings) { // Are we loading an element from the page or a URL? if ( settings.href.indexOf("#") === 0 ) { // Load a page element $(settings.href).clone(true).appendTo($pageslide.find('.content')).show(); if(settings.loadComplete)settings.loadComplete.call(this, $pageslide, $element); $pageslide.find('.nano').nanoScroller({ scrollTop: 0, iOSNativeScrolling: true }); } else { // Load a URL. Into an iframe? if(settings.iframe) { var iframe = $("