1(function($){ 2 3 $(document).ready(function() { 4 5 // Mobile nav toggle 6 7 $('.mobile-toggle').click(function() { 8 9 $('#mobile-navigation').addClass('visible'); 10 11 }); 12 13 $('.mobile-close').click(function() { 14 15 $('#mobile-navigation').removeClass('visible'); 16 17 }); 18 19 // Print funtion 20 21 if (window.location.hash === '#print-page') { 22 23 window.print(); 24 25 } else {} 26 27 $('.single #print').click(function() { 28 29 window.print(); 30 31 }); 32 33 // Responsive video 34 $('article, .video-container, .page-heading-video').fitVids(); 35 36 // Redirect Welcome Page 37 var welcomed = $.cookie('nt_welcomed'); 38 39 if ( welcome_page && !welcomed && is_front_page ) { // See init.php for defining of welcome_page variable 40 41 $.cookie('nt_welcomed', 1, { 'expires' : 30 } ); 42 window.location.href = welcome_page; 43 44 } 45 46 // Add widget body to standard widgets 47 /* $('.section-widget-area .widget_nav_menu, .global-builder-widgets .widget_nav_menu, .widgetized-page #content .widget_nav_menu').each(function() { 48 49 $(this).wrapInner('<div class="widget-body" />'); 50 51 }); */ 52 53 // AJAX Share Counts 54 /* $('.nt-sharebar').each(function() { 55 56 var permalink = encodeURIComponent($(this).attr('data-url')); 57 58 var current_set = $(this); 59 60 $.ajax({ 61 type: 'GET', 62 url: ajaxurl, 63 data: 'action=nt_social_share_counts&permalink=' + permalink, 64 success: function(results) { 65 66 var share_counts = JSON.parse(results); 67 68 current_set.find('li').each(function() { 69 70 if ($(this).find('a').attr('id') === 'facebook') { 71 72 $(this).find('span').html(share_counts.fb_count); 73 $(this).find('span').fadeIn(); 74 75 } else if ($(this).find('a').attr('id') === 'twitter') { 76 77 $(this).find('span').html(share_counts.tw_count); 78 $(this).find('span').fadeIn(); 79 80 } else if ($(this).find('a').attr('id') === 'linkedin') { 81 82 $(this).find('span').html(share_counts.li_count); 83 $(this).find('span').fadeIn(); 84 85 } else if ($(this).find('a').attr('id') === 'stumbleupon') { 86 87 $(this).find('span').html(share_counts.su_count); 88 $(this).find('span').fadeIn(); 89 90 } else if ($(this).find('a').attr('id') === 'google_plus') { 91 92 $(this).find('span').html(share_counts.gp_count); 93 $(this).find('span').fadeIn(); 94 95 } else if ($(this).find('a').attr('id') === 'pinterest') { 96 97 $(this).find('span').html(share_counts.pi_count); 98 $(this).find('span').fadeIn(); 99 100 } else {} 101 102 }); 103 104 } 105 106 }); 107 108 }); */ 109 110 }); 111 112 $(window).load(function() { 113 114 /* $('.post-list').imagesLoaded(function() { 115 116 // Product Masonry 117 $('.post-list').masonry({ 118 itemSelector: '.product' 119 }); 120 121 }); */ 122 123 }); 124 125})(window.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.