1 2var App = function () { 3 4 5 function initBootstrap() { 6 7 $('[data-toggle="tooltip"]').tooltip(); 8 9 10 //$('.nav-tabs').tabCollapse(); 11 12 } 13 14 function initLightbox() { 15 16 17 /* fix for missing title attribute in lightbox a tags */ 18 $(".lightbox").each(function () { 19 if (this.title == "") { 20 $(this).attr('title', $("img", $(this)).attr('title')); 21 } 22 }).fancybox(); 23 24 } 25 26 function initHeader() { 27 jQuery(window).scroll(function() { 28 if (jQuery(window).scrollTop() > 100) { 29 jQuery('.navbar-fixed-top').addClass('navbar-shrinked'); 30 } else { 31 jQuery('.navbar-fixed-top').removeClass('navbar-shrinked'); 32 } 33 }); 34 } 35 36 function initMmenu() { 37 38 39 $("#sidemenu").mmenu({ 40 extensions: ['effect-slide-menu', 'pageshadow'], 41 navbar: { 42 title: $('title').html() 43 }, 44 navbars: [{ 45 position: 'top' 46 }, { 47 position: 'bottom', 48 height: 2, 49 content: ['<div id="mobile-footer"></div>'] 50 }] 51 }, { 52 classNames: { 53 selected: 'current' 54 } 55 }); 56 57 $('#mobile-footer').html($('#nav-mobile-footer').html()); 58 59 60 } 61 62 function initFlexslider() { 63 64 /* flexslider im hero */ 65 $('.hero .flexslider').flexslider({ 66 'controlNav': false, 67 'selector': '.slides > div' 68 }); 69 70 } 71 72 return { 73 init: function () { 74 75 initBootstrap(); 76 initLightbox(); 77 initHeader(); 78 initMmenu(); 79 initFlexslider(); 80 81 } 82 } 83}(); 84 85jQuery(document).ready(function() { 86 App.init(); 87});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.