Type: js
Animacja Formularza (copy)
jQuery(“input , textarea”).focus(function(){ jQuery(this).parents(‘.elementor-field-group’).addClass(‘focused’); }); jQuery(“input , textarea”).blur(function(){ var inputValue = jQuery(this).val(); if ( inputValue == “” ) { jQuery(this).parents(‘.elementor-field-group’).removeClass(‘focused’); } });Continue reading
quiz
// setup console.log(“running”); let q = 1; const submit = document.getElementById(“next-button”); const question = document.getElementById(“question”); // next button document.getElementById(“next-button”).addEventListener(“click”, function () { // split by q value let radioButtons = document.querySelectorAll(“input[name=’yes-no’]”); if (q == 4) { radioButtons = document.querySelectorAll(“input[name=’time-choice’]”); }…Continue reading
Add Body Class if WPBakery is Active
(function ($) { $(document).ready(function ($) { if ($(“.main-content .entry-content div”).hasClass(“vc_row”)) { $(“body”).addClass(“wpb-js-composer-active”); } }); })(window.jQuery);Continue reading
Google ads Storage tracking tag
/public/checkout/hide-000-line-items-including-order-received-my-account.js
/******************************* CHECKOUT – ORDER RECEIVED – MY ACCOUNT – CHANGE BILLING FIELDS FUNCTIONS *******************************/ var bdiElems = Array.from(document.querySelectorAll(‘bdi’)); bdiElems.forEach(function(elem) { if (elem.textContent.includes(‘0.00’)) { elem.style.display = “none” } });Continue reading
ModalJS
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&”object”==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,”default”,{enumerable:!0,value:e}),2&t&&”string”!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,”a”,t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p=””,o(o.s=1)}([function(e,t,o){“use strict”;function n(){return(n=Object.assign||function(e){for(var t=1;tContinue reading
paypal
Chaty Tidio
(function() { function onTidioChatApiReady() { window.tidioChatApi.hide(); window.tidioChatApi.on(“close”, function() { window.tidioChatApi.hide(); }); } if (window.tidioChatApi) { window.tidioChatApi.on(“ready”, onTidioChatApiReady); } else { document.addEventListener(“tidioChat-ready”, onTidioChatApiReady); } document.querySelector(“.chat-button”).addEventListener(“click”, function() { window.tidioChatApi.show(); window.tidioChatApi.open(); }); })();Continue reading
Add target=”_blank” to links
const links = document.querySelectorAll(‘.target-blank a’); links.forEach((link) => link.setAttribute(‘target’, ‘_blank’));Continue reading