1 ///////// 2 ///////// 3 //load 4 //////// 5 ///////// 6 jQuery(window).on('load', function () 7 { 8 preloader(); 9 function preloader(){ 10 jQuery(".preloaderimg").fadeOut(); 11 jQuery(".preloader").delay(200).fadeOut("slow").delay(200, function(){ 12 jQuery(this).remove(); 13 }); 14 } 15 16 $(".mobile-menu").click( 17 function() 18 { 19 $('body').css({'overflow-y':'hidden'}); 20 $("body").addClass('block'); 21 $('.mobile-menuBox').show(); 22 $("header .menu").appendTo(".mobile-menuBox .srodek"); 23 }); 24 25 var w = $(window).width(); 26 27 jQuery(".menu a").click(function() 28 { 29 if(w < 880) 30 { 31 $('.mobile-menuBox').hide(); 32 $(".mobile-menuBox .srodek .menu").appendTo("header nav"); 33 $("body").removeClass('block'); 34 $('body').css({'overflow-y':'visible'}); 35 } 36 }); 37 38 39 $(".mobile-menuClose").click( 40 function() 41 { 42 $('.mobile-menuBox').hide(); 43 $(".mobile-menuBox .srodek .menu").appendTo("header nav"); 44 $("body").removeClass('block'); 45 $('body').css({'overflow-y':'visible'}); 46 47 }); 48 49 $(".back-top").click( 50 function() 51 { 52 $('body,html').animate({scrollTop:0},800); 53 }); 54 55 jQuery(".goBottom").click(function() 56 { 57 58 $('html, body').animate({ scrollTop: $('main').offset().top -100}, 800); 59 60 }); 61 62 63 jQuery(".closeInfoFixed").click(function() 64 { 65 $(".infoFixed").hide(); 66 }); 67 68 $.validator.addMethod( "phone", function( phone_number, element ) { 69 phone_number = phone_number.replace( /\s+/g, "" ); 70 var regexp = /^(?:(?:(?:\+|00)?48)|(?:\(\+?48\)))?(?:1[2-8]|2[2-69]|3[2-49]|4[1-68]|5[0-9]|6[0-35-9]|[7-8][1-9]|9[145])\d{7}$/; 71 return this.optional( element ) || regexp.test( phone_number ); 72 }, "Numer telefonu jest niepoprawny" ); 73 74 $.validator.addMethod("strong_password", function (value, element) { 75 let password = value; 76 //if (!(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%&!])(.{8,20}$)/.test(password))) { 77 if (!(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(.{8,25}$)/.test(password))) { 78 return false; 79 } 80 return true; 81 }, function (value, element) { 82 let password = $(element).val(); 83 if (!(/^(.{8,25}$)/.test(password))) { 84 return 'HasÅo powinno skÅadaÄ siÄ z minimum 7 znaków, maksymalnie 25 znaków'; 85 } 86 else if (!(/^(?=.*[A-Z])/.test(password))) { 87 return 'HasÅo powinno zawieraÄ jednÄ duża literÄ'; 88 } 89 else if (!(/^(?=.*[a-z])/.test(password))) { 90 return 'HasÅo powinno zawieraÄ jednÄ maÅÄ literÄ'; 91 } 92 else if (!(/^(?=.*[0-9])/.test(password))) { 93 return 'HasÅo powinno zawieraÄ jednÄ liczbÄ'; 94 } 95 /* 96 else if (!(/^(?=.*[@#$%&!])/.test(password))) { 97 return "HasÅo powinno zawieraÄ jeden znak specjalny .@#$%&!"; 98 } 99 */ 100 return false; 101 }); 102 103 104 105 /* Password strength indicator */ 106 function passwordStrength(password) { 107 108 var desc = [{'width':'0px'}, {'width':'20%'}, {'width':'40%'}, {'width':'60%'}, {'width':'80%'}, {'width':'100%'}]; 109 110 var descClass = ['', 'progress-bar-danger', 'progress-bar-danger', 'progress-bar-warning', 'progress-bar-success', 'progress-bar-success']; 111 112 var score = 0; 113 114 //if password bigger than 6 give 1 point 115 if (password.length > 8) score++; 116 117 //if password has both lower and uppercase characters give 1 point 118 if ((password.match(/[a-z]/)) && (password.match(/[A-Z]/))) score++; 119 120 //if password has at least one number give 1 point 121 if (password.match(/\d+/)) score++; 122 123 //if password has at least one special caracther give 1 point 124 if ( password.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/) ) score++; 125 126 //if password bigger than 12 give another 1 point 127 if (password.length > 10) score++; 128 129 // display indicator 130 $("#strong_password_show").removeClass(descClass[score-1]).addClass(descClass[score]).css(desc[score]); 131 } 132 133 134 jQuery(document).ready(function(){ 135 jQuery("#password").keyup(function() { 136 passwordStrength(jQuery(this).val()); 137 }); 138 }); 139 140 $('.show').click(function() { 141 $(this).next("ul").slideToggle(400).siblings("ul").slideUp(400); 142 }); 143 144 jQuery(".globalInfoBox").click(function() 145 { 146 jQuery('.globalInfoBox').fadeOut(); 147 }); 148 149 if ($(".globalInfoBox")[0]) 150 { 151 152 setTimeout(function() { $(".globalInfoBox").fadeOut() }, 5000); 153 } 154 155 156 jQuery("#showPassword").click(function () 157 { 158 $(this).toggleClass("show hidden"); 159 var type = $(this).hasClass("hidden") ? "text" : "password"; 160 $("#password").attr("type", type); 161 }); 162 163 164 $(".validate").validate(); 165 $('.formValidPassword').validate({ 166 rules: { 167 password: { 168 minlength: 7 169 }, 170 password_confirm: { 171 minlength: 7, 172 equalTo: "#password" 173 } 174 } 175 }); 176 177 $( ".tabs" ).tabs(); 178 $(".tooltip").tooltip(); 179 180 $(".divHideBox").hide(); 181 $(".divHide .divHideMenu").click(function() 182 { 183 $(this).parent().find('.divHideMenu.active').removeClass('active'); 184 $(this).addClass('active'); 185 $(this).next(".divHideBox").slideToggle(700).siblings(".divHideBox").slide
185Up("slow"); 186 }); 187 188 //scrolling 189 190 191 192 193 194 $(".menuScroll a[href^='#']").on('click', function(e) { 195 196 // prevent default anchor click behavior 197 e.preventDefault(); 198 199 // animate 200 $('html, body').animate({ 201 scrollTop: $(this.hash).offset().top - 110 202 }, 700, function(){ 203 }); 204 }); 205 206 207 // The function actually applying the offset 208 function offsetAnchor() { 209 if (location.hash.length !== 0) { 210 window.scrollTo(window.scrollX, window.scrollY - 110); 211 } 212 } 213 214 // Captures click events of all <a> elements with href starting with # 215 $(document).on('click', 'a[href^="#"]', function(event) { 216 // Click events are captured before hashchanges. Timeout 217 // causes offsetAnchor to be called after the page jump. 218 window.setTimeout(function() { 219 offsetAnchor(); 220 }, 0); 221 }); 222 223 // Set the offset when entering page with hash present in the url 224 window.setTimeout(offsetAnchor, 0); 225 226 227 228 //scrolling end 229 230 231 var w = $(window).width(); 232 if(w > 950) { 233 jQuery(".bxSlider").bxSlider({ 234 controls: false, 235 pager: true, 236 auto: true, 237 mode: 'fade', 238 minSlides: 1, 239 maxSlides: 1, 240 speed: 2000, 241 touchEnabled: false, 242 oneToOneTouch: false, 243 shrinkItems: true 244 245 }); 246 } 247 if(w < 950) 248 { 249 jQuery(".bxSlider").bxSlider({ 250 controls: false, 251 pager: false, 252 auto: true, 253 minSlides: 1, 254 maxSlides: 1, 255 speed: 3000, 256 pause: 15000, 257 slideWidth: 800, 258 touchEnabled: false, 259 oneToOneTouch: false, 260 shrinkItems: true 261 262 }); 263 } 264 265 266 267 268 269 }) 270 ///////// 271 ///////// 272 ///////// 273 //ready 274 //////// 275 ///////// 276 ///////// 277 jQuery(document).on('ready', function () 278 { 279 280 $('.fancybox-buttons').fancybox(); 281 282 }) 283 ///////// 284 ///////// 285 ///////// 286 //scroll 287 //////// 288 ///////// 289 ///////// 290 jQuery(window).on('scroll', function() 291 { 292 var w = $(window).width(); 293 294 295 // header scroll desktop 296 if(w > 950) 297 { 298 if(jQuery(this).scrollTop() > 400) 299 { 300 jQuery("header").addClass("navigationScroll"); 301 } 302 else 303 { 304 jQuery("header").removeClass("navigationScroll"); 305 } 306 } 307 if(w < 950) 308 { 309 if(jQuery(this).scrollTop() > 200) 310 { 311 jQuery(".mobile-menu").addClass("mobile-menuFixed"); 312 } 313 else 314 { 315 jQuery(".mobile-menu").removeClass("mobile-menuFixed"); 316 } 317 } 318 // header scroll desktop 319 320 321 // Back to top 322 if(jQuery(this).scrollTop()>200) 323 { 324 jQuery('.back-top').fadeIn(); 325 jQuery('.addBasketLeft').fadeIn(); 326 } 327 else 328 { 329 jQuery('.back-top').fadeOut(); 330 jQuery('.addBasketLeft').fadeOut(); 331 } 332 333 334 335 336 337 338 339 340 341 342 343 }); 344 345 346 347function CookiesAccept() 348{ 349 var exdate = new Date(); 350 exdate.setDate(exdate.getDate() + 365); 351 document.cookie='CookiesAccepted=1; expires='+exdate.toUTCString(); 352 document.getElementById("cookie").style.display='none'; 353} 354 355var wow = new WOW( 356 { 357 boxClass: 'wow', // animated element css class (default is wow) 358 animateClass: 'animated', // animation css class (default is animated) 359 offset: 0, // distance to the element when triggering the animation (default is 0) 360 mobile: true, // trigger animations on mobile devices (default is true) 361 live: true, // act on asynchronously loaded content (default is true) 362 callback: function(box) { 363 // the callback is fired every time an animation is started 364 // the argument that is passed in is the DOM node being animated 365 }, 366 scrollContainer: null, // optional scroll container selector, otherwise use window, 367 resetAnimation: true, // reset animation on end (default is true) 368 } 369); 370wow.init();
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.