PageSourceSearch

https://www.signiant.com/wp-content/plugins/atlantic/blocks/form/front.js?ver=7.1.3

js signiant.com collected 2026-10-09 21:31:02 UTC 3,793 bytes, 82 lines download raw bytes

1(function($) {
2	function injectMarketo( marketoID, redirectURL, conversionName ) {
3		MktoForms2.loadForm( atlantic.marketo.base_url, atlantic.marketo.munchkin_id, marketoID, function( form ) {
4			form.onSuccess( function( values, followUpUrl ) {
5				conversionName !== 'none' && atlanticDatalayerEvent( {
6					event_name: conversionName,
7					form_id: marketoID,
8				}, 'form_submit' );
9
10				if ( $( '#mktoForm_' + marketoID ).data( 'submit-mode' ) == 'redirect' || $( '#mktoForm_' + marketoID ).data( 'submit-mode' ) == undefined ) {
11					const URL = redirectURL ? window.location.origin + redirectURL : followUpUrl;
12
13					// Redirect to thank you page if set
14					window.location.replace( URL );
15
16					return false;
17				}
18				const bodyMessage = $( '#mktoForm_' + marketoID ).siblings( '.thank-you-message' ).find( 'p' ).text();
19				$( '#mktoForm_' + marketoID ).siblings( '.thank-you-message' ).find( 'p' ).html( bodyMessage );
20				$( '#mktoForm_' + marketoID ).parent().addClass( 'form-submitted' );
21				$( '#mktoForm_' + marketoID ).remove();
22				return false;
23			} );
24
25			MktoForms2.whenReady( function( form ) {
26				$( 'form.mktoForm .mktoFormRow' ).each( function() {
27					! $( this ).find( 'input' ).length && ! $( this ).find( 'textarea' ).length && ! $( this ).find( 'select' ).length && $( this ).addClass( 'full-size' );
28					$( this ).children( 'fieldset' ).length && $( this ).addClass( 'full-size' );
29					$( this ).children( 'input[type="hidden"]' ).length && $( this ).addClass( 'hidden' );
30				} );
31			} );
32		} );
33	}
34
35    $( document ).ready( function() {
36        if ( $( '.form-injector' ).length ) {
37			// $( '.form-injector' ).each( function() {
38			// 	const $this = $( this );
39			// 	const formID = $( this ).data( 'id' );
40			// 	const redirect = $( this ).data( 'redirect' );
41			// 	const afterSubmit = $( this ).data( 'submit-mode' );
42			// 	const conversionName = $( this ).data( 'conversions-name' ) ? $( this ).data( 'conversions-name' ) : 'no conversion name set';
43
44			// 	if ( $this.hasClass( 'form-type-marketo' ) ) {
45			// 		if (atlantic.marketo.active) {
46			// 			if ( typeof ( MktoForms2 ) === typeof ( undefined ) ) {
47			// 				$.getScript( '/wp-content/themes/atlantic-core/js/vendor/forms2.min.js' ).done( function( script, textStatus ) {
48			// 					$this.is( ':empty' ) && injectMarketo( formID, redirect, conversionName );
49			// 				} )
50			// 					.fail( function( jqxhr, settings, exception ) {
51			// 						console.log( 'Failed to load Marketo form script!' );
52			// 					} );
53			// 			} else {
54			// 				$this.is( ':empty' ) && injectMarketo( formID, redirect, conversionName );
55			// 			}
56			// 		} else {
57			// 			$(this).append('<h6>Marketo form support disabled</h6>');
58			// 		}
59			// 	} else if ( $this.hasClass( 'form-type-hubspot' ) ) {
60			// 		if (atlantic.hubspot.active) {
61			// 			if ( typeof ( hbspt ) === typeof ( undefined ) ) {
62			// 				$.getScript( 'https://js.hsforms.net/forms/v2.js' ).done( function( script, textStatus ) {
63			// 					$this.is( ':empty' ) && injectHubSpot( formID, redirect, conversionName, afterSubmit );
64			// 				})
65			// 				.fail( function( jqxhr, settings, exception ) {
66			// 					console.log( 'Failed to load HubSpot form script!' );
67			// 				});
68			// 			} else {
69			// 				$this.is( ':empty' ) && injectHubSpot( formID, redirect, conversionName, afterSubmit );
70			// 			}
71			// 		} else {
72			// 			$this.append('<h6>Hubspot form support disabled</h6>');
73			// 		}
74			// 	}
75			// 	else if ( $this.hasClass( 'form-type-gravity' ) ) {
76			// 		atlantic.default_forms.active ? $this.addClass('active') : $this.append('<h6>Gravity form support disabled</h6>');;
77			// 		// $this.is( ':empty' ) && injectGravityForms( formID, redirect, conversionName, afterSubmit );
78			// 	}
79			// } );
80		}
81    });
82}(jQuery));

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.