1(function ($) { 2 "use strict"; 3 $(document).ready(function () { 4 5 if( jQuery().select2 ) { 6 $('select:not(.none-select2)').select2({ 7 width: '100%' 8 }); 9 } 10 11 if( $('body').hasClass('membership-edit_profile') ) { 12 $('.menu-item-home').removeClass('current-menu-item'); 13 } 14 15 /* [ Move position of register button ] 16 - - - - - - - - - - - - - - - - - - - - */ 17 if ($(window).width() > 991) { 18 $('.login-group-btn').appendTo('.site-header .header-content'); 19 } else { 20 $('.login-group-btn').appendTo('.right-header'); 21 }; 22 23 $(window).resize(function () { 24 if ($(window).width() > 991) { 25 $('.login-group-btn').appendTo('.site-header .header-content'); 26 } else { 27 $('.login-group-btn').appendTo('.right-header'); 28 }; 29 }); 30 31 /* [ Active main menu ] 32 - - - - - - - - - - - - - - - - - - - - */ 33 $(".main-menu li a").each(function() { 34 if (this.href == window.location.href) { 35 $(this).parent('li').addClass("current-menu-item"); 36 } 37 }); 38 /* [ Main Menu On/Off menu mobile ] 39 - - - - - - - - - - - - - - - - - - - - */ 40 $('.menu-button').on('click', function (event) { 41 event.preventDefault(); 42 $('body').addClass('menu-open'); 43 }); 44 $('.menu-mobile-close').on('click', function (event) { 45 event.preventDefault(); 46 $('body').removeClass('menu-open'); 47 }); 48 49 /* [ Everyones Slider ] 50 - - - - - - - - - - - - - - - - - - - - */ 51 // $('.p-blog-slider.owl-carousel').each(function( index ) { 52 // console.log($(this).find('.p-blog-archive__item').length); 53 // $(this).owlCarousel({ 54 // items: 4, 55 // loop: $(this).find('.p-blog-archive__item').length >= 4, // loop: true, or // loop:false, rewind: true, 56 // nav: false, 57 // dots: true, 58 // margin: 30, 59 // responsive: { 60 // 0: { 61 // items: 1 62 // }, 63 // 600: { 64 // items: 1 65 // }, 66 // 767: { 67 // items: 2 68 // }, 69 // 1024: { 70 // items: 4 71 // } 72 // } 73 // }); 74 // }); 75 76 /* [ Everyones Slider ] 77 - - - - - - - - - - - - - - - - - - - - */ 78 $('.video-slider .owl-carousel').owlCarousel({ 79 items: 4, 80 loop: false, // loop: true, 81 rewind: true, 82 nav: false, 83 dots: true, 84 margin: 30, 85 responsive: { 86 0: { 87 items: 1 88 }, 89 414: { 90 items: 2 91 }, 92 767: { 93 items: 3 94 }, 95 1024: { 96 items: 4 97 } 98 } 99 100 }); 101 102 /* [ Single Photo Slider ] 103 - - - - - - - - - - - - - - - - - - - - */ 104 $('.photo-review .owl-carousel').owlCarousel({ 105 loop: false, 106 margin: 0, 107 nav: true, 108 navText: ['<i class="icofont-thin-left"></i>', '<i class="icofont-thin-right"></i>'], 109 dots: false, 110 items: 1, 111 autoplay: false, 112 center: true, 113 URLhashListener: true, 114 autoplayHoverPause: true, 115 startPosition: 'URLHash' 116 }); 117 118 window.onhashchange = function() { 119 $('.photo-content .item .active').removeClass('active'); 120 var hash = window.location.hash; 121 $( ".photo-content .item a[href='"+hash+"']" ).addClass('active'); 122 } 123 124 // $('.photo-control .owl-carousel').owlCarousel({ 125 // loop: false, 126 // margin: 15, 127 // nav: false, 128 // items: 5, 129 // nav: false, 130 // dots: false, 131 // autoplay: false, 132 // responsive: { 133 // 415: { 134 // margin: 10, 135 // }, 136 // 990: { 137 // margin: 15, 138 // } 139 // } 140 // }); 141 142 // var btn = $('.back-to-top'), 143 // header = $('#header'); 144 145 // var stickyOffset = btn.offset().top; 146 147 // $(window).scroll(function () { 148 // if ($(window).scrollTop() > 300) { 149 // btn.addClass('show'); 150 // } else { 151 // btn.removeClass('show'); 152 // } 153 // if ($(window).scrollTop() > 100) { 154 // header.addClass('fixed'); 155 // } else { 156 // header.removeClass('fixed'); 157 // } 158 // if ($(window).scrollTop() < stickyOffset) { 159 // btn.addClass("sticky"); 160 // } else { 161 // btn.removeClass("sticky"); 162 // } 163 // }); 164 165 // btn.on('click', function (e) { 166 // e.preventDefault(); 167 // $('html, body').animate({ 168 // scrollTop: 0 169 // }, '300'); 170 // }); 171 172 $('.meta-button .share-btn').on('click', function (event) { 173 event.preventDefault(); 174 $(this).parents('.entry-meta').find('.p-entry__share').slideToggle('fast').addClass('open'); 175 }); 176 177 $('.p-entry__share .sns-btn-link').on('click', function (event) { 178 console.log("sns button click"); 179 180 // call ajax 181 $.ajax({ 182 url: TCD_MEMBERSHIP.ajax_url, 183 type: 'POST', 184 data: { 185 action: 'sns_button_click', 186 type: "" 187 }, 188 success: function(data, textStatus, XMLHttpRequest) { 189 console.log(data); 190 }, 191 error: function(XMLHttpRequest, textStatus, errorThrown) { 192 193 } 194 }); 195 }); 196 197 AOS.init(); 198 199 }); 200})(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.