1/** 2 * SFL Blaze entry point. 3 * 4 * @package sflBlaze\JS 5 * @author Web Dev Team 6 * @license GPL-2.0-or-later 7 */ 8 9! function($) { 10 "use strict"; 11 12 var txtBox = $('.textarea'); 13 var currentSite = window.location.host.match(/[^\.]*\.[^.]*$/)[0]; 14 console.log(currentSite); 15 var blackList = [currentSite, 'SEO', 'href', 'https', 'design','xxx','pill', 'calendly','engine','domain', 'click', 'поÑле','<a','copyright','agency','errors','error','meet women', 'extra inches', 'screenshot', 'unsubscribe','и']; 16 17 function checkBlackList(str) { 18 $.each(blackList, function(i, n) { 19 if(new RegExp(n, "i").test(str)) { 20 $('input[type=submit]').attr("disabled","disabled"); 21 // txtBox.val(txtBox.val().replace(new RegExp(n, "gi"), "")) 22 } else { 23 // $('input[type=submit]').removeAttr("disabled"); 24 console.log('valid form'); 25 } 26 }) 27 } 28 29 txtBox.on('keydown', function(e) { 30 $('input[type=submit]').removeAttr("disabled"); 31 checkBlackList(this.value); 32 }) 33 34 console.log($(window).width()); 35 36 function mobile_header_button_toggle() { 37 $(".header-mobile-nav").click(function(){ 38 $(".header-mobile-nav-description").slideToggle(); 39 }); 40 } 41 42 function scrolled_body() { 43 $(window).on('load scroll', function(){ 44 $(this).scrollTop() > 15 ? $("body").addClass("is-scrolled") : $("body").removeClass("is-scrolled"); 45 }); 46 } 47 48 function scrolled_modal_phone() { 49 $(window).scroll(function(){ 50 $(this).scrollTop() > 15 ? $(".phone-column").fadeIn() : $(".phone-column").fadeOut(); 51 }); 52 } 53 54 function scroll_to_top() { 55 $(window).scroll(function(){ 56 $(this).scrollTop() > 15 ? $(".scroll-to-top").fadeIn() : $(".scroll-to-top").fadeOut(); 57 }); 58 59 $('.scroll-to-top').click(function(){ 60 $('html, body').animate({scrollTop : 0},600); 61 return false; 62 }); 63 } 64 65 function el_height() { 66 $(".article-content.hpblog-article-content").matchHeight(); 67 //$(".article-container article .article-content-header").matchHeight(); 68 } 69 70 $(window).ready(function(){ 71 lazyload(); 72 73 $(".togglebtn").click(function(){ 74 $(".toggle-content").slideToggle(); 75 76 if ( jQuery(this).text() == "read more" ) { 77 console.log(true); 78 jQuery(this).text("read less"); 79 jQuery(this).addClass("less"); 80 } else if ( jQuery(this).text() == "read less" ) { 81 jQuery(this).text("read more"); 82 jQuery(this).removeClass("less"); 83 console.log(false); 84 } 85 }); 86 87 scrolled_modal_phone(); 88 scroll_to_top(); 89 }); 90 91 /* 92 $(".wpcf7-submit").click(function(){ 93 setTimeout(function(){ 94 $(".wpcf7-response-output").fadeOut(); 95 }, 5000); 96 }); 97 */ 98 99 $(".modal-form .modal-close").click(function(){ 100 $(".modal-container").fadeOut(); 101 }); 102 103 $(".modal-floating-btn-col.modal-open").click(function(){ 104 $(".modal-container").fadeIn(); 105 }); 106 107 $(".topheader-modal-button").click(function(){ 108 $(".modal-container").fadeIn(); 109 }); 110 111 $(".is-modal-btn").click(function(){ 112 $(".modal-container").fadeIn(); 113 }); 114 115 $(".mobile-leftnav-btn").click(function(){ 116 $(".mobile-leftnav-content").slideToggle(); 117 }); 118 119 $(".bestchoose-wrapper").slick({ 120 infinite: true, 121 slidesToShow: 3, 122 slidesToScroll: 1, 123 responsive: [ 124 { 125 breakpoint: 1024, 126 settings: { 127 infinite: true, 128 slidesToShow: 1, 129 slidesToScroll: 1, 130 } 131 132 } 133 ] 134 }); 135 136 $(".company-services-grid-child").slick({ 137 infinite: true, 138 slidesToShow: 3, 139 slidesToScroll: 1, 140 arrows: false, 141 autoplay: true, 142 asNavFor: '.service-tiles-nav-wrapper', 143 responsive: [ 144 { 145 breakpoint: 1024, 146 settings: { 147 infinite: true, 148 arrows: false, 149 slidesToShow: 1, 150 slidesToScroll: 1, 151 } 152 153 } 154 ] 155 }); 156 157 $(".service-tiles-nav-wrapper").slick({ 158 infinite: true, 159 slidesToShow: 3, 160 slidesToScroll: 1, 161 arrows: false, 162 autoplay: true, 163 asNavFor: '.company-services-grid-child', 164 responsive: [ 165 { 166 breakpoint: 1024, 167 settings: { 168 infinite: true, 169 arrows: false, 170 slidesToShow: 2, 171 slidesToScroll: 1, 172 } 173 174 } 175 ] 176 }); 177 178 $(".company-services-grid").slick({ 179 infinite: true, 180 slidesToShow: 3, 181 slidesToScroll: 1, 182 dots: false, 183 arrows: false, 184 responsive: [ 185 { 186 breakpoint: 1024, 187 settings: { 188 infinite: true, 189 slidesToShow: 1, 190 slidesToScroll: 1, 191 dots: false, 192 arrows: true 193 } 194 195 } 196 ] 197 }); 198 199 $(".section-reviews-wrapper").slick({ 200 infinite: true, 201 slidesToShow: 3, 202 dots: true,
203 arrows: false, 204 centerMode: true, 205 centerPadding: '0px', 206 responsive: [ 207 { 208 breakpoint: 1024, 209 settings: { 210 infinite: true, 211 slidesToShow: 1, 212 slidesToScroll: 1, 213 dots: true, 214 centerMode: false, 215 arrows: false, 216 fade: true, 217 cssEase: 'linear' 218 } 219 220 } 221 ] 222 }); 223 224 $(".banner-slider-wrapper").slick({ 225 infinite: true, 226 slidesToShow: 1, 227 slidesToScroll: 1, 228 arrows: false, 229 dots: false, 230 autoplay: true, 231 autoplaySpeed: 5000, 232 fade: true, 233 cssEase: 'linear', 234 asNavFor: '.banner-slider-content-box-wrapper' 235 }); 236 237 238 $(".banner-slider-content-box-wrapper").slick({ 239 slidesToShow: 1, 240 slidesToScroll: 1, 241 arrows: false, 242 autoplay: true, 243 autoplaySpeed: 5000, 244 fade: true, 245 cssEase: 'linear', 246 asNavFor: '.banner-slider-wrapper' 247 }); 248 249 function tabby_toggle() { 250 $(".tab-box-header").click(function(){ 251 $(this).toggleClass("active"); 252 $(this).next().slideToggle("fast"); 253 }); 254 } 255 256 $(window).on('load resize orientationchange', function() { 257 el_height(); 258 259 $('.company-services-grid').each(function(){ 260 var $carousel = $(this); 261 /* Initializes a slick carousel only on mobile screens */ 262 // slick on mobile 263 if ($(window).width() > 1023) { 264 if ($carousel.hasClass('slick-initialized')) { 265 $carousel.slick('unslick'); 266 } 267 } 268 else{ 269 if (!$carousel.hasClass('slick-initialized')) { 270 $carousel.slick({ 271 infinite: true, 272 slidesToShow: 1, 273 slidesToScroll: 1, 274 dots: false, 275 arrows: true, 276 }); 277 } 278 } 279 }); 280 281 $('.porfotlio-showcase-wrapper').each(function(){ 282 var $a = $(this); 283 284 if ( $(window).width() > 1023 ) { 285 if ( $a.hasClass('slick-initialized') ) { 286 $a.slick('unslick'); 287 } 288 } 289 else { 290 if(!$a.hasClass('slick-initialized')) { 291 $a.slick({ 292 infinite: true, 293 slidesToShow: 2, 294 slidesToScroll: 2, 295 arrows: false, 296 autoplay: true, 297 autoplaySpeed: 4000, 298 }); 299 } 300 } 301 }); 302 }); 303 304 $(window).scroll(function(){ 305 if ( $(window).width() > 1023 ) { 306 $(this).scrollTop() > 30 ? $(".modal-floating-button.desktop-only").fadeIn() : $(".modal-floating-button.desktop-only").fadeOut(); 307 } 308 }); 309 scrolled_body(); 310 mobile_header_button_toggle(); 311 tabby_toggle(); 312}(jQuery); 313 314var acc = document.getElementsByClassName("faq"); 315var i; 316 317for (i = 0; i < acc.length; i++) { 318 acc[i].addEventListener("click", function() { 319 /* Toggle between adding and removing the "active" class, 320 to highlight the button that controls the panel */ 321 this.classList.toggle("active"); 322 323 /* Toggle between hiding and showing the active panel */ 324 var panel = this.nextElementSibling; 325 if (panel.style.display === "block") { 326 panel.style.display = "none"; 327 } else { 328 panel.style.display = "block"; 329 } 330 }); 331} 332 333 334 /**************************** Advanced deferred recaptcha js ******************************/ 335 var captchaLoaded = false; 336 337jQuery( document ).ready(function() { 338 339 //Load reCAPTCHA script when CF7 form field is focused 340 jQuery('.wpcf7-form input').on('focus', function() { 341 // If we have loaded script once already, exit. 342 if (captchaLoaded) 343 { 344 return; 345 } 346 347 // Variable Intialization 348 console.log('reCAPTCHA script loading.'); 349 var head = document.getElementsByTagName('head')[0]; 350 var recaptchaScript = document.createElement('script'); 351 var cf7script = document.createElement('script'); 352 353 // Add the recaptcha site key here. 354 var recaptchaKey = '6LdYRIoaAAAAAKSLhRRjuGMEvb-lKtizrBx8Rq23'; 355 356 // Dynamically add Recaptcha Script 357 recaptchaScript.type = 'text/javascript'; 358 recaptchaScript.src = 'https://www.google.com/recaptcha/api.js?render=' + recaptchaKey + '&ver=3.0'; 359 360 // Dynamically add CF7 script 361 cf7script.type = 'text/javascript'; 362 cf7script.text = "!function(t,e){var n={execute:function(e){t.execute(\"" + recaptchaKey +"\",{action:e}).then(function(e){for(var t=document.getElementsByTagName(\"form\"),n=0;n<t.length;n++)for(var c=t[n].getElementsByTagName(\"input\"),a=0;a<c.length;a++){var o=c[a];if(\"_wpcf7_recaptcha_response\"===o.getAttribute(\"name\")){o.setAttribute(\"value\",e);break}}})},executeOnHomepage:function(){n.execute(e.homepage)},executeOnContactform:function(){n.execute(e.contactform)}};t.ready(n.executeOnHomepage),document.addEventListener(\"change\",n.executeOnContactform,!1),document.addEventListener(\"wpcf7submit\",n.executeOnHomepage,!1)}(grecaptcha,{homepage:\"homepage\",contactform:\"contactform\"});"; 363 364 // Add Recaptcha Script 365 head.appendChild(recaptchaScript); 366 367 // Add CF7 Script AFTER Recaptcha. Timeout ensures the loading sequence. 368 setTimeout(function() { 369 head.appendChild(cf7script); 370 }, 200); 371 372 //Set flag to only load once 373 captchaLoaded = true; 374 }); 375}); 376 /**************************** END - Advanced deferred recaptcha js ******************************/
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.