1jQuery(document).ready(function($) { 2 "use strict"; 3 //SELECT 4 $('.ts-option-search').each(function(){ 5 $(this).wrap('<div class="ts-select-style"></div>'); 6 $(this).after("<span class='ts_selected'></span>"); 7 }); 8 $(".ts-option-search").change(function(){ 9 10 var selectedOption = $(this).find(":selected").text(); 11 12 $(this).next(".ts_selected").text(selectedOption); 13 14 }).trigger('change'); 15 16 //FUNFACT 17 18 $('.ts-funfact').appear(function() { 19 var count_element = $('.funfact-number', this).html(); 20 $(".funfact-number", this).countTo({ 21 from: 0, 22 to: count_element, 23 speed: 2500, 24 refreshInterval: 50, 25 }); 26 }); 27 28 var widthDev = $(window).width(); 29 if ((widthDev < 1200) && (widthDev >= 768)) { 30 $('.menu-nav li').click(function(){ 31 //$('.menu-nav li').removeClass('ts_hover') 32 //$(this).addClass('ts_hover'); 33 $(this).toggleClass('ts_hover'); 34 }); 35 36 }else if(widthDev<=767){ 37 $('.menu-nav li').click(function(){ 38 $(this).toggleClass('ts_hover'); 39 }); 40 }else{ 41 $('#menu-main-menu').addClass('ts-menu-destop'); 42 } 43 //PARALLAX 44 //$(".parallax-section").parallax(); 45 46 //TESTIMONIAL 47 if ($(".ts-list-testimonial").length > 0) { 48 var slide_speed = parseInt($(".ts-list-testimonial").attr("data-speed")); 49 $(".ts-list-testimonial").owlCarousel({ 50 autoPlay: slide_speed+'000', 51 slideSpeed: 1000, 52 navigation: false, 53 pagination: true, 54 singleItem: true, 55 }); 56 } 57 58 59 //TAB 60 61 $('.ts-horizontalTab').easyResponsiveTabs({ 62 type: 'default', 63 width: 'auto', 64 fit: true, 65 animation: 'slide' 66 }); 67 if($(window).width()>767){ 68 $('.ts-horizontalTab').each(function(){ 69 var _this = $(this); 70 var numberTab = _this.find(".resp-tabs-list li").size(); 71 var wTab = 100/numberTab; 72 _this.find(".resp-tabs-list li").css("width",wTab+"%") 73 }) 74 } 75 $('.ts-verticalTab').easyResponsiveTabs({ 76 type: 'vertical', 77 fit: true 78 }); 79 if($(window).width()>=768){ 80 $('.ts-verticalTab').each(function(){ 81 var _thisV = $(this); 82 var heightTab = _thisV.find('.resp-tabs-list li[aria-controls="tab_item-0"]').outerHeight(); 83 var numberTabV = _thisV.find(".resp-tabs-list li").size(); 84 var hTab = heightTab*numberTabV - 1; 85 _thisV.find(".resp-tabs-container").css("min-height",hTab+"px") 86 }) 87 } 88 //TWITTER SLIDER 89 if ($("#owl-twitter").length > 0) { 90 91 $(".twitter-slide").owlCarousel({ 92 autoPlay: 4000, 93 slideSpeed: 1000, 94 navigation: false, 95 pagination: true, 96 singleItem: true 97 }); 98 } 99 100 //MENU MOBILE 101 $('.mobile-navigation').click(function(){ 102 $('.ts-mainmenu').slideToggle(500); 103 }) 104 105 //CLIENT SLIDER 106 if ($(".ts-client-list ul").length > 0) { 107 108 $(".ts-client-list ul").owlCarousel({ 109 items: 3, 110 autoPlay: 4000, 111 slideSpeed: 1000, 112 navigation: false, 113 pagination: false, 114 singleItem: false, 115 navigationText: ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"], 116 itemsCustom: [[0, 1],[320,2], [480, 2], [768, 4], [992, 4], [1200, 5]] 117 }); 118 } 119 // Skill bar 120 $('.skillbar').each(function(){ 121 $(this).find('.skillbar-bar').animate({ 122 width:$(this).attr('data-percent') 123 },6000); 124 }); 125 126 $(window).load(function(){ 127 if ($('#wpadminbar').length){ 128 var heightB = $('#wpadminbar').outerHeight(); 129 $(".main-header").sticky({ topSpacing: heightB }); 130 }else{ 131 $(".main-header").sticky({ topSpacing: 0 }); 132 } 133 }); 134 135 // Portfolio slider 136 if ($(".ts-portfolio-slider").length > 0) { 137 $(".ts-portfolio-slider").owlCarousel({ 138 autoPlay: 4000, 139 slideSpeed: 1000, 140 navigation: true, 141 pagination: false, 142 singleItem: true, 143 navigationText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"], 144 }); 145 } 146 147 //Gallery blog 148 if ($(".blog-grallery").length > 0) { 149 150 $(".blog-grallery").owlCarousel({ 151 autoPlay: 4000, 152 slideSpeed: 3000, 153 navigation: true, 154 pagination: false, 155 singleItem: true, 156 navigationText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"], 157 }); 158 } 159 //SELECT SHOP 160 if(jQuery().chosen) { 161 $(".woocommerce-ordering .orderby").chosen(); 162 } 163 //SIDER BAR 164 if($(window).width()>991){ 165 $('.ts-menu-sidebar li a').hover(function(){ 166 var _parent = $(this).parent(); 167 if ((!_parent.hasClass('current_page_item')) && (!_parent.hasClass('current-menu-parent'))) { 168 _parent.addClass('ts-active-menusiderbar'); 169 _parent.find('.dropdown-menu').slideDown(); 170 _parent.mouseleave(function(){ 171 $(this).removeClass('ts-active-menusiderbar'); 172 $(this).find('.dropdown-menu').slideUp(); 173 }) 174 } 175 }) 176 } 177 178 179 //Menu header 2 180 var height1 = $('.ts-header-1').outerHeight(); 181 var height2 = $('.top-header').outerHeight(); 182 var resultH = height1 + height2; 183 $(window).scroll(function(){ 184 var scrollTop = $(document).scrollTop(); 185 if(scrollTop > resultH){ 186 $('.main-menu-2').addClass('fixed'); 187 }else{ 188 $('.main-menu-2').removeClass('fixed'); 189 } 190 }) 191}); 192 193(function(e) { 194 "use strict"; 195 e(document).ready(function() { 196 e("#toggle-bar-wrap").click(function(e) { 197 e.stopPropagation() 198 }); 199 e(document).click(function() { 200 e("#toggle-bar-wrap").removeClass("active-bar");
201 e("a.toggle-bar-btn.fade-toggle").children(".ts-infobar").removeClass("infobar-up").addClass("infobar-down") 202 203 }); 204 e("a.toggle-bar-btn.fade-toggle").on(false ? "touchstart" : "click", function(t) { 205 e(this).find(".ts-infobar").toggleClass("infobar-up infobar-down"); 206 e("#toggle-bar-wrap").toggleClass("active-bar"); 207 return false 208 }); 209 }) 210})(jQuery); 211jQuery( function( $ ) { 212 213 // Quantity buttons 214 $( 'div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)' ).addClass( 'buttons_added' ).append( '<input type="button" value="+" class="plus" />' ).prepend( '<input type="button" value="-" class="minus" />' ); 215 216 // Target quantity inputs on product pages 217 $( 'input.qty:not(.product-quantity input.qty)' ).each( function() { 218 var min = parseFloat( $( this ).attr( 'min' ) ); 219 220 if ( min && min > 0 && parseFloat( $( this ).val() ) < min ) { 221 $( this ).val( min ); 222 } 223 }); 224 225 $( document ).on( 'click', '.plus, .minus', function() { 226 227 // Get values 228 var $qty = $( this ).closest( '.quantity' ).find( '.qty' ), 229 currentVal = parseFloat( $qty.val() ), 230 max = parseFloat( $qty.attr( 'max' ) ), 231 min = parseFloat( $qty.attr( 'min' ) ), 232 step = $qty.attr( 'step' ); 233 234 // Format values 235 if ( ! currentVal || currentVal === '' || currentVal === 'NaN' ) currentVal = 0; 236 if ( max === '' || max === 'NaN' ) max = ''; 237 if ( min === '' || min === 'NaN' ) min = 0; 238 if ( step === 'any' || step === '' || step === undefined || parseFloat( step ) === 'NaN' ) step = 1; 239 240 // Change the value 241 if ( $( this ).is( '.plus' ) ) { 242 243 if ( max && ( max == currentVal || currentVal > max ) ) { 244 $qty.val( max ); 245 } else { 246 $qty.val( currentVal + parseFloat( step ) ); 247 } 248 249 } else { 250 251 if ( min && ( min == currentVal || currentVal < min ) ) { 252 $qty.val( min ); 253 } else if ( currentVal > 0 ) { 254 $qty.val( currentVal - parseFloat( step ) ); 255 } 256 257 } 258 259 // Trigger change event 260 $qty.trigger( 'change' ); 261 }); 262 263 $('.navbar-collapse .nav .dropdown').hover(function(e){ 264 $(this).find('.dropdown-menu').stop( true, false ).slideDown(300); 265 }, function(e){ 266 $(this).find('.dropdown-menu').stop( true, false ).slideUp(300); 267 }); 268 269 270}); 271 272function TS_Check_Domain() 273{ 274 jQuery.ajax({ 275 type: 'POST', 276 url: jQuery('#whois').attr('action'), 277 data: jQuery('#whois').serialize() 278 }).done( function( data ) { 279 jQuery('#log_res').html( data ); 280 } ); 281 282 return false; 283}
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.