1 2/* jQuery CountTo */ 3(function ($) { 4 "use strict"; 5 6 $(document).ready(function() { 7 thim_startertheme.ready(); 8 }); 9 10 $(window).load(function() { 11 thim_startertheme.load(); 12 }); 13 14 var thim_startertheme = { 15 /** 16 * Call functions when document ready 17 */ 18 ready: function() { 19 this.bp_popup_gallery(); 20 }, 21 /** 22 * Call functions when window load. 23 */ 24 load: function() { 25 this.bp_grid_isotope(); 26 }, 27 bp_grid_isotope: function() { 28 if ( $().isotope ) { 29 $('.grid').isotope({ 30 // set itemSelector so .grid-sizer is not used in layout 31 itemSelector: '.grid-item', 32 percentPosition: true, 33 masonry: { 34 // use element for option 35 columnWidth: '.grid-sizer' 36 } 37 }) 38 } 39 }, 40 41 /** 42 * Magnific-Popup 43 */ 44 bp_popup_gallery: function() { 45 try { 46 $('.gallery-popup').each(function() { 47 $(this).find('.js-show-gallery').magnificPopup({ 48 type: 'image', 49 fixedContentPos: false, 50 gallery: { 51 enabled:true 52 }, 53 mainClass: 'mfp-fade' 54 }); 55 }); 56 } catch(er) {console.log(er);} 57 }, 58 } 59 60})(jQuery);
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.