Created
November 30, 2022 08:17
-
-
Save unwiredtech/66af625c6d7c3ec75d220fc963c753a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function() { | |
// console.log('jQuery initialize') | |
jQuery.initialize('.elementor-message.elementor-message-success', function() { | |
//hide the section of the notification | |
jQuery('#grow-aba-lp-form').hide(); | |
//When changes happened, show the notification | |
jQuery('#thankyou-notification').show(500).fadeIn( 1000 ); | |
},{ target: document.getElementById('section-survey') }); | |
// Change Separator Line | |
jQuery.initialize('.e-form__indicators__indicator--state-completed', function(){ | |
jQuery(this).next('.e-form__indicators__indicator__separator').addClass('red'); | |
//console.log('step completed1'); | |
},{ target: document.getElementById('grow-aba-lp-form') }) | |
// Change Separator Line | |
jQuery.initialize('.e-form__indicators__indicator--state-active', function(){ | |
jQuery(this).prev('.e-form__indicators__indicator__separator').addClass('red'); | |
//console.log('step completed1'); | |
},{ target: document.getElementById('grow-aba-lp-form') }) | |
jQuery.initialize('.e-form__indicators__indicator.e-form__indicators__indicator--state-inactive', function(){ | |
jQuery(this).prev().removeClass('red'); | |
console.log('red found'); | |
},{ target: document.getElementById('grow-aba-lp-form') }) | |
});//end initialize | |
jQuery('a#refresh_page').click(function(event){ | |
event.preventDefault(); | |
jQuery('#thankyou-notification').hide(500).fadeOut(1000); | |
jQuery('#grow-aba-lp-form').show(500).fadeIn(1000); | |
}); | |
.elementor-message.elementor-message-success{ | |
display:none; | |
} | |
.e-form__indicators__indicator__separator{ | |
background-color: #FEEBCF; | |
} | |
.red{ | |
background-color: #C23250; | |
} | |
.sand{ | |
background-color: #FEEBCF; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment