@@ -792,14 +792,9 @@ <h2 style="color:#7c3aed; margin:0 0 15px; font-size:24px;">Thank You!</h2>
792792 </ div >
793793</ div >
794794
795- < a href ="# " class ="ch-floating-register "> Register</ a >
796795
797796< script >
798797 document . addEventListener ( "DOMContentLoaded" , function ( ) {
799- var registerBtn = document . querySelector ( ".ch-floating-register" ) ;
800- var formWrapper = document . getElementById ( "formWrapper" ) ;
801- var closeFormBtn = document . getElementById ( "closeFormBtn" ) ;
802- var thankYouPopup = document . getElementById ( "thankYouPopup" ) ;
803798
804799 // FAQ Popup handlers
805800 var faqCard = document . getElementById ( "faqCard" ) ;
@@ -825,68 +820,5 @@ <h2 style="color:#7c3aed; margin:0 0 15px; font-size:24px;">Thank You!</h2>
825820 }
826821 } ) ;
827822 }
828-
829- if ( registerBtn ) {
830- registerBtn . addEventListener ( "click" , function ( e ) {
831- e . preventDefault ( ) ;
832- formWrapper . style . display = "flex" ;
833-
834- if ( ! window . mktoLoaded ) {
835- MktoForms2 . loadForm (
836- "//engaged.arm.com" ,
837- "479-ZYW-907" ,
838- 4309 ,
839- function ( form ) {
840- // Add form submission handler
841- form . onSuccess ( function ( values , followUpUrl ) {
842- // Hide the form wrapper
843- formWrapper . style . display = "none" ;
844-
845- // Show thank you popup
846- thankYouPopup . style . display = "flex" ;
847-
848- // Countdown and redirect
849- var countdown = 5 ;
850- var countdownTimer = document . getElementById ( "countdownTimer" ) ;
851-
852- var countdownInterval = setInterval ( function ( ) {
853- countdown -- ;
854- countdownTimer . textContent = countdown ;
855-
856- if ( countdown <= 0 ) {
857- clearInterval ( countdownInterval ) ;
858- // Redirect to the follow-up URL from Marketo
859- if ( followUpUrl ) {
860- window . location . href = followUpUrl ;
861- } else {
862- // If no follow-up URL, just hide the popup
863- thankYouPopup . style . display = "none" ;
864- }
865- }
866- } , 1000 ) ;
867-
868- // Return false to prevent the default form submission behavior
869- return false ;
870- } ) ;
871- }
872- ) ;
873- window . mktoLoaded = true ;
874- }
875- } ) ;
876- }
877-
878- if ( closeFormBtn ) {
879- closeFormBtn . addEventListener ( "click" , function ( ) {
880- formWrapper . style . display = "none" ;
881- } ) ;
882- }
883-
884- if ( formWrapper ) {
885- formWrapper . addEventListener ( "click" , function ( e ) {
886- if ( e . target === this ) {
887- this . style . display = "none" ;
888- }
889- } ) ;
890- }
891823 } ) ;
892824</ script >
0 commit comments