Type: js
Vertically center Instagram caption on hover
jQuery(window).on(‘sbiafterimagesloaded’, function (event) { $ = jQuery; $(‘.sbi_hover_top’).each(function(){ var $self = $(this); $self.css({ ‘position’ : ‘absolute’, ‘top’ : ( $self.parent().height() – $self.height() ) / 2 }); }); })Continue reading
Chatbot
Untitled Snippet
alert(‘Xss’);Continue reading
Add Visitor Type to the dataLayer
window.dataLayer = window.dataLayer || []; var email = ‘{email}’; dataLayer.push({ ‘visitorType’ : email.length > 0 ? ‘existingCustomer’ : ‘newCustomer’ });Continue reading
Robertson
Clerk
Clerk
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