-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
115 changes: 115 additions & 0 deletions
115
dist/widgets/contact_form_iframe_sfdc/contact_form_iframe_sfdc__tmpl.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="https://arcanus55.github.io/neodigm55/dist/neodigm55__v3_5.css"></link> | ||
<script src="https://arcanus55.github.io/neodigm55/dist/neodigm55__v3_5.js"></script> | ||
<link rel="stylesheet" href="https://arcanus55.github.io/neodigm55/dist/neodigm55_v1_0_launchComplete.css"></link> | ||
</head> | ||
<body data-n55-ampm-theme="light"> | ||
|
||
<!-- | ||
The host calls contact_form_iframe_sfdc.openCTA() which then calls neodigmSodaPop.autoOpen("contact_templ_wdgt_CTA__id") | ||
--> | ||
|
||
|
||
<!-- || TEMPLATE MU & CSS WDG BEGIN --> | ||
<template id="contact_templ_wdgt_CTA__id" data-n55-sodapop-modal="false" | ||
data-n55-sodapop-size="small"> | ||
<div> | ||
|
||
<section class="readampm"> | ||
<article style="padding: 12px 12px;"> | ||
|
||
<form autocomplete="off" novalidate | ||
onsubmit="return false"> | ||
<br> | ||
<input id="contact_CTA_email" name="email" class="n55-lc__input" type="email" | ||
placeholder="Email Address"> | ||
|
||
<textarea id="contact_CTA_message" name="message" class="n55-lc__input" type="text" rows="3" | ||
placeholder="Message"></textarea> | ||
|
||
<div class="h-center"> | ||
<br> | ||
<a id="contact_CTA_submit" data-n55-enchanted-cta | ||
QQQQonclick="valForm('tsk_contact_us', this )" | ||
data-n55-enchanted-cta-size="small" data-n55-enchanted-cta-dont-touch="true" | ||
data-n55-theme="brand" data-n55-flash-theme="marcom" | ||
data-n55-wired4sound-click="7"> | ||
<span data-n55-wired4sound-hover="3">Lets Talk <neodigm-icon class="material-symbols-outlined">chat</neodigm-icon></span><span>Contact <neodigm-icon class="material-symbols-outlined">send</neodigm-icon></span> | ||
</a> | ||
</div> | ||
</form> | ||
</article> | ||
</section> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
|
||
</style> | ||
<!-- || TEMPLATE MU & CSS WDG END --> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- || JAVASCRIPT WDG BEGIN --> | ||
|
||
|
||
<script> | ||
const contact_form_iframe_sfdcOpt = {"sfdc_id": "123456", "theme": "info", "is_user_exit": true} | ||
if( typeof contact_form_iframe_sfdcCustom != 'undefined' ){ // wdgt host script | ||
for( cnfgProp in contact_form_iframe_sfdcCustom ){ // Import Custom Objects props if exists | ||
contact_form_iframe_sfdcOpt[ cnfgProp ] = contact_form_iframe_sfdcCustom[ cnfgProp ] | ||
} | ||
} | ||
|
||
class Contact_form_iframe_sfdc { | ||
constructor(_d, _sQ) { | ||
this._d = _d; this._sQ = _sQ; | ||
this.isInit = false; | ||
this.theme = contact_form_iframe_sfdcOpt.theme || "brand" | ||
this.elCTA = null; | ||
} | ||
init() { | ||
if( !this.isInit ){ | ||
if( contact_form_iframe_sfdcOpt.is_user_exit ) neodigmSodaPop.setOnBeforeUserExit( function(){ // Conditionally open when mouse leaves viewport | ||
neodigmToast.q("Got Questions?|Start a Conversation!", "brand") | ||
if( neodigmSodaPop && ( !neodigmSodaPop.isOpen() )) neodigmSodaPop.autoOpen("contact_templ_wdgt_CTA__id") | ||
} ) | ||
neodigmSodaPop.setOnAfterOpen( function(){ | ||
this.elCTA = document.querySelector("#contact_CTA_submit") | ||
if( this.elCTA ) this.elCTA.dataset.n55Theme = contact_form_iframe_sfdcOpt.theme | ||
if( NeodigmClaire ) NeodigmClaire.showCanv('neodigm-sodapop', .6).setTheme( contact_form_iframe_sfdcOpt.theme ).initCanvOn('neodigm-sodapop').waxOn('neodigm-sodapop') | ||
return true | ||
}, "contact_templ_wdgt_CTA__id"); | ||
neodigmSodaPop.setOnClose( function(){ | ||
if( NeodigmClaire ) NeodigmClaire.showCanv('neodigm-sodapop').initCanvOff('neodigm-sodapop').waxOff('neodigm-sodapop'); | ||
return true | ||
}, "contact_templ_wdgt_CTA__id") | ||
} | ||
this.isInit = true; | ||
return this; | ||
} | ||
openCTA() { | ||
neodigmSodaPop.autoOpen("contact_templ_wdgt_CTA__id") | ||
} | ||
} | ||
let contact_form_iframe_sfdc = new Contact_form_iframe_sfdc( document, "contact_form_iframe_sfdc" ) | ||
setTimeout( ()=>{ contact_form_iframe_sfdc.init() }, 2e3 ) | ||
|
||
|
||
</script> | ||
<!-- || JAVASCRIPT WDG BEGIN --> | ||
|
||
</body> | ||
</html> |
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
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
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
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