democrats.org
Open in
urlscan Pro
2a04:fa87:fffd::c000:4269
Public Scan
URL:
https://democrats.org/
Submission: On November 06 via api from DE — Scanned from DE
Submission: On November 06 via api from DE — Scanned from DE
Form analysis
3 forms found in the DOMName: signup — https://ak.democrats.org/act/
<form id="actionkit-embed-form-footer" class="actionkit-widget" name="signup" action="https://ak.democrats.org/act/" onsubmit="this.submitted=1;return true">
<input type="hidden" name="source" id="id_source" value="">
<input type="hidden" name="page" value="signup_web_middle-site">
<div class="input-wrapper" style="padding-bottom: 10px;">
<label for="id_email" class="show-for-sr">Email address</label>
<input value="" id="id_email" class="input input--text" type="email" name="email" placeholder="Email address*" required="">
</div>
<div class="input-wrapper" style="padding-bottom: 10px;">
<label for="id_zipcode" class="show-for-sr">Zip Code</label>
<input value="" id="id_zipcode" class="input input--text" type="text" name="zip" placeholder="Zip*" required="">
</div>
<div class="input-wrapper" style="padding-bottom: 20px;">
<label for="id_footer_mobile_phone" class="show-for-sr">Mobile Phone</label>
<input value="" id="id_footer_mobile_phone" class="input input--text" type="tel" name="mobile_phone" placeholder="Mobile phone">
</div>
<input type="hidden" id="id_footer_action_sms_mobile_number" name="action_sms_mobile_number" value="">
<script>
document.getElementById('id_footer_mobile_phone').addEventListener('input', function() {
document.getElementById('id_footer_action_sms_mobile_number').value = this.value;
});
</script>
<script>
function gotFooterCaptcha() {
$('.site-footer #actionkit-embed-form-footer').trigger('submit');
}
</script>
<div>
<div class="grecaptcha-badge" data-style="bottomright" style="width: 256px; height: 60px; display: block; transition: right 0.3s; position: fixed; bottom: 14px; right: -186px; box-shadow: gray 0px 0px 5px; border-radius: 2px; overflow: hidden;">
<div class="grecaptcha-logo"><iframe title="reCAPTCHA" width="256" height="60" role="presentation" name="a-lig66onhuroo" frameborder="0" scrolling="no"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox allow-storage-access-by-user-activation"
src="https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LetQiEUAAAAAC5mkK_YsHGJjLE7vxjMTIaNn3MA&co=aHR0cHM6Ly9kZW1vY3JhdHMub3JnOjQ0Mw..&hl=de&v=-ZG7BC9TxCVEbzIO2m429usb&size=invisible&cb=eu82fz6z0jss"
data-gtm-yt-inspected-6="true"></iframe></div>
<div class="grecaptcha-error"></div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response"
style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
</div>
</div><button class="button button--primary g-recaptcha" data-callback="gotFooterCaptcha" data-sitekey="6LetQiEUAAAAAC5mkK_YsHGJjLE7vxjMTIaNn3MA">Submit</button>
<div style="padding-top: 20px;">
<label for="texts-agree-contact">
<input id="texts-agree-contact" name="custom[SMS Opt-In]" type="checkbox" class="hide sms-checkbox" value="1"><strong>Sign up to get texts.</strong> By entering your phone number, you are consenting to receive recurring automated text messages
& calls from the DNC with news & info about our work. For SMS, message & data rates may apply. Text STOP to end. Text HELP for help. <a href="https://democrats.org/privacy-policy/">Privacy policy</a> &
<a href="https://democrats.org/terms-of-service/">ToS</a>. </label>
</div>
</form>
Name: signup — https://ak.democrats.org/act/
<form id="actionkit-embed-form" class="actionkit-widget" name="signup" action="https://ak.democrats.org/act/" onsubmit="this.submitted=1;return true">
<input type="hidden" name="source" id="id_source" value="">
<input type="hidden" name="page" value="home_page_join_us">
<div class="form-field-wrapper">
<div class="input-wrapper">
<label for="id_email" class="show-for-sr">Email address*</label>
<input class="input input--text" id="id_email" type="email" placeholder="Email address*" name="email" required="">
</div> <!-- /.input-wrapper -->
<div class="input-wrapper">
<label for="id_mobile_phone" class="show-for-sr">Mobile phone*</label>
<input class="input input--phone" id="id_mobile_phone" type="tel" placeholder="Phone number" name="mobile_phone">
</div> <!-- /.input-wrapper -->
<div class="input-wrapper">
<label for="id_zipcode" class="show-for-sr">Zip code*</label>
<input class="input input--zip" id="id_zipcode" type="text" placeholder="Zip code*" name="zip" required="">
</div> <!-- /.input-wrapper -->
<script>
function gotCaptcha() {
$("#actionkit-embed-form").trigger('submit');
}
</script>
<div>
<div class="grecaptcha-badge" data-style="none" style="width: 256px; height: 60px; position: fixed; visibility: hidden;">
<div class="grecaptcha-logo"><iframe title="reCAPTCHA" width="256" height="60" role="presentation" name="a-r68f13o98l8l" frameborder="0" scrolling="no"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox allow-storage-access-by-user-activation"
src="https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LetQiEUAAAAAC5mkK_YsHGJjLE7vxjMTIaNn3MA&co=aHR0cHM6Ly9kZW1vY3JhdHMub3JnOjQ0Mw..&hl=de&v=-ZG7BC9TxCVEbzIO2m429usb&size=invisible&cb=v8r3wregws7q"
data-gtm-yt-inspected-6="true"></iframe></div>
<div class="grecaptcha-error"></div><textarea id="g-recaptcha-response-1" name="g-recaptcha-response" class="g-recaptcha-response"
style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
</div>
</div><button class="button button--primary g-recaptcha" data-callback="gotCaptcha" data-sitekey="6LetQiEUAAAAAC5mkK_YsHGJjLE7vxjMTIaNn3MA">Join</button>
</div> <!-- /.form-field-wrapper -->
<label for="texts-agree-cd">
<input id="texts-agree-cd" name="custom[SMS Opt-In]" type="checkbox" class="hide sms-checkbox" value="1"> <strong>Sign up to get texts.</strong> By entering your phone number, you are consenting to receive recurring automated text messages &
calls from the DNC with news & info about our work. For SMS, message & data rates may apply. Text STOP to end. Text HELP for help. <a href="https://democrats.org/privacy-policy/">Privacy policy</a> &
<a href="https://democrats.org/terms-of-service/">ToS</a>. </label>
</form>
Name: signup — https://ak.democrats.org/act/
<form id="actionkit-embed-form-footer" class="actionkit-widget" name="signup" action="https://ak.democrats.org/act/" onsubmit="this.submitted=1;return true">
<input type="hidden" name="source" id="id_source" value="">
<input type="hidden" name="page" value="signup_web_middle-site">
<div class="input-wrapper" style="padding-bottom: 10px;">
<label for="id_email" class="show-for-sr">Email address</label>
<input value="" id="id_email" class="input input--text" type="email" name="email" placeholder="Email address*" required="">
</div>
<div class="input-wrapper" style="padding-bottom: 10px;">
<label for="id_zipcode" class="show-for-sr">Zip Code</label>
<input value="" id="id_zipcode" class="input input--text" type="text" name="zip" placeholder="Zip*" required="">
</div>
<div class="input-wrapper" style="padding-bottom: 20px;">
<label for="id_footer_mobile_phone" class="show-for-sr">Mobile Phone</label>
<input value="" id="id_footer_mobile_phone" class="input input--text" type="tel" name="mobile_phone" placeholder="Mobile phone">
</div>
<input type="hidden" id="id_footer_action_sms_mobile_number" name="action_sms_mobile_number" value="">
<script>
document.getElementById('id_footer_mobile_phone').addEventListener('input', function() {
document.getElementById('id_footer_action_sms_mobile_number').value = this.value;
});
</script>
<script>
function gotFooterCaptcha() {
$('.site-footer #actionkit-embed-form-footer').trigger('submit');
}
</script>
<div>
<div class="grecaptcha-badge" data-style="none" style="width: 256px; height: 60px; position: fixed; visibility: hidden;">
<div class="grecaptcha-logo"><iframe title="reCAPTCHA" width="256" height="60" role="presentation" name="a-envvozhp0411" frameborder="0" scrolling="no"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox allow-storage-access-by-user-activation"
src="https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LetQiEUAAAAAC5mkK_YsHGJjLE7vxjMTIaNn3MA&co=aHR0cHM6Ly9kZW1vY3JhdHMub3JnOjQ0Mw..&hl=de&v=-ZG7BC9TxCVEbzIO2m429usb&size=invisible&cb=ytpazukguaqs"
data-gtm-yt-inspected-6="true"></iframe></div>
<div class="grecaptcha-error"></div><textarea id="g-recaptcha-response-2" name="g-recaptcha-response" class="g-recaptcha-response"
style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
</div><iframe style="display: none;" data-gtm-yt-inspected-6="true"></iframe>
</div><button class="button button--primary g-recaptcha" data-callback="gotFooterCaptcha" data-sitekey="6LetQiEUAAAAAC5mkK_YsHGJjLE7vxjMTIaNn3MA">Submit</button>
<div style="padding-top: 20px;">
<label for="texts-agree-contact">
<input id="texts-agree-contact" name="custom[SMS Opt-In]" type="checkbox" class="hide sms-checkbox" value="1"><strong>Sign up to get texts.</strong> By entering your phone number, you are consenting to receive recurring automated text messages
& calls from the DNC with news & info about our work. For SMS, message & data rates may apply. Text STOP to end. Text HELP for help. <a href="https://democrats.org/privacy-policy/">Privacy policy</a> &
<a href="https://democrats.org/terms-of-service/">ToS</a>. </label>
</div>
</form>
Text Content
" + "" + "" + //ENG-1082 "" + badgecount + "\"" + chatbtn_tooltip_text + "\""; /* " "; */ doc.getElementById("widgetlbtn").style.color = color; doc.getElementById("widgetlbtn").style.backgroundColor = msg.widgetcolor; doc.getElementById("widgetlbtn").style.display = 'block'; count = count != undefined ? count : 0; doc.getElementById("spnwidgetlbtn").setAttribute("aria-label", "Chat button , " + count + " unread messages"); //ENG-1082 doc.getElementById("widgetlbtn").addEventListener('click', function () { console.log("switchicon called"); if (parent.IMIChatInit != undefined) { parent.IMIChatInit.chatswitchicon(); } else { IMIChatInit.chatswitchicon(); } }); document.getElementById('imi-chatbutton').style.display = "block"; //console.log( doc.getElementById("widgetlbtn")); /*$('[data-toggle=\"tooltip\"]').tooltip();*/ // doc.close(); /* for test */ var doc1 = document.getElementById('chatunread-frame').contentWindow.document; // doc1.open(); doc1.head.innerHTML = "" + ""; doc1.body.innerHTML = "x "; // ""+ //"" + //""; //doc1.close(); doc1.getElementsByTagName('html')[0].classList.add('imichatmsgpreview'); doc1.getElementById("ancclearcards").addEventListener('click', function () { if (parent.IMIChatInit != undefined) { parent.IMIChatInit.clearmsgcards(); } else { IMIChatInit.clearmsgcards(); } }); document.getElementById('chatunread-frame').style.display = "block"; IMIGeneral.storeLocal("style_" + document.getElementById("divicw").getAttribute("data-bind") + "_" + window.location.hostname, msg); document.getElementById('chatbutton').style.display = "block"; } else { document.getElementById("divicw").innerHTML = ''; } } catch (e1) { } }, chatswitchicon: function (type) { console.log("Chatswitchicon::" + type); try { /*type=1-max and 0- min */ var isMobile = "0"; // if (window.innerWidth > 768) { // document.getElementById('divchatmain').className = 'main-chat-cont'; // } else { // document.getElementById('divchatmain').className = 'main-chat-cont chatmobile'; // isMobile="1"; // } if ((navigator.userAgent.indexOf("Mobile")) != -1) { isMobile = "1"; } sessionStorage.setItem("data-bind", document.getElementById("divicw").getAttribute("data-bind")); sessionStorage.setItem("data-org", document.getElementById("divicw").getAttribute("data-org")); var iframe = document.getElementById('imi-chatbutton'); if (iframe == null || iframe == undefined) return; var innerDoc = iframe.contentDocument || iframe.contentWindow.document; //Open Widget if (document.getElementById("divchatmain").style.display === 'none' && (type == 1 || type == 2 || type == undefined)) { document.getElementById("divchatmain").style.display = "block"; IMIGeneral.checkmobile(); var widgetmain = document.getElementById("iframechatwindow");//ENG-1034 widgetmain.contentWindow.focus();//ENG-1034 //if ((window.outerWidth < 497) && (document.documentElement.classList.contains('imichatmobile-active') == false) && document.getElementById("divchatmain").style.display == "block") { var className = " " + document.documentElement.className + " "; if ((window.outerWidth < 700) && (" " + className + " ").replace(/[\n\t]/g, " ").indexOf("imichatmobile-active") > -1 && document.getElementById("divchatmain").style.display == "block") { // if((document.documentElement.classList.value.split(/\s+|\./).filter(word => word === 'imichatmobile-active').length==1) == false){ document.documentElement.classList.remove("imichatmobile-active"); document.documentElement.className = document.documentElement.className + " imichatmobile-active"; // } } else { document.documentElement.className = document.documentElement.className.replace(' imichatmobile-active', ''); } document.getElementById('chatunread-frame').style.display = "none"; innerDoc.getElementById("widgetlbtn").setAttribute("class", "open-btn state1 " + buttonType + " close-btn"); // innerDoc.getElementById("widgetlbtn").setAttribute("aria-label", "Close web chat"); innerDoc.getElementById("widgetlbtn").setAttribute("aria-expanded", "true"); document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").style.display = "none"; document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").innerText = ""; localStorage.setItem(fingerprint + "_" + _skey + "_badgecount", 0); localStorage.setItem(fingerprint + "_" + _skey + "_cardcount", 0); IMIChatInit.clearmsgcards(); // if (IMIGeneral.getBrowserName() == "safari") { // if (IMIGeneral.detectIOS()) { // document.body.classList.add('chatnoscroll'); // } // } if (type === undefined) { var destination = document.getElementById('iframechatwindow').contentWindow; msg = { "action": "showiframe", "host": window.location.hostname, "chatmobile": isMobile }; destination.postMessage(msg, domainUrl); document.getElementById("iframechatwindow").setAttribute("aria-hidden", "false"); } return; } //Close Widget if (document.getElementById("divchatmain").style.display === 'block' && (type == 0 || type == 2 || type == undefined)) { document.documentElement.className = document.documentElement.className.replace(' imichatmobile-active', ''); //document.body.classList.remove('chatnoscroll'); document.getElementById("divchatmain").style.display = "none"; innerDoc.getElementById("widgetlbtn").setAttribute("class", "open-btn state " + buttonType); innerDoc.getElementById("widgetlbtn").setAttribute("aria-expanded", "false"); innerDoc.getElementById("widgetlbtn").focus(); document.getElementById('chatunread-frame').style.display = "block"; localStorage.setItem(fingerprint + "_" + _skey + "_cardcount", 0); document.getElementById("iframechatwindow").setAttribute("aria-hidden", "true"); return; } //var iframeEl = document.getElementById("iframechatwindow"); // Make sure you are sending a string, and to stringify JSON // iframeEl.contentWindow.postMessage("hello", '*'); return; } catch (e) { console.log("LaunchProactiveMsgManager:" + e.msg); } }, clearmsgcards: function () { document.getElementById('chatunread-frame').contentWindow.document.getElementById("msg-list").innerHTML = ""; document.getElementById('chatunread-frame').contentWindow.document.getElementById("ancclearcards").style.display = "none"; //document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").style.display = "none"; //document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").innerText == ""; localStorage.setItem(fingerprint + "_" + _skey + "_cardcount", 0); }, openchat: function (event) { document.getElementById('imichat-fullscreen-modal').className = 'imichat-fullscreen-modal'; document.getElementById('imichat-fullscreen-modal').removeAttribute('tabindex'); document.getElementById('imichat-fullscreen-modal').removeAttribute('aria-hidden'); var destination = document.getElementById('iframechatwindow').contentWindow; destination.postMessage({ action: 'openchat', threadid: event.data.threadid, proactive_id: event.data.proactive_id }, '*'); if (parent.IMIChatInit != undefined) { parent.IMIChatInit.chatswitchicon(2); } else { IMIChatInit.chatswitchicon(2); } }, extractContent: function (s) { var span = document.createElement('span'); span.innerHTML = s; return span.textContent || span.innerText; }, badgecount: function (event) { try { if (document.getElementById("divchatmain").style.display === 'none') { var count = document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").innerText; if (count == 0 || count == "") { count = 1; } else { count = parseInt(count) + 1; } var duplicate = 0; var innerDivs; var innerDivsCount = 0; var refChild; IMIChatInit.clearmsgcards(); var containerDiv = document.getElementById('chatunread-frame').contentWindow.document.getElementById("msg-list"); if (count > 1) { innerDivs = containerDiv.getElementsByClassName("msg"); if (innerDivs != undefined) { innerDivsCount = innerDivs.length; for (var i = 0; i < innerDivs.length; i++) { if ("msg_" + event.data.msgtransid == innerDivs[i].id) { duplicate = 1; } } refChild = innerDivs[0]; } } var cardcount; var checkbadgecount; if (innerDivs == undefined) { localStorage.setItem(event.data.fingerprint + "_" + _skey + "_cardcount", 1); } document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").style.display = "block"; if (duplicate == 0) { if (parseInt(innerDivsCount) == 5) { containerDiv.removeChild(document.getElementById('chatunread-frame').contentWindow.document.getElementsByClassName('msg')[4]); containerDiv.removeChild(document.getElementById('chatunread-frame').contentWindow.document.getElementsByClassName('msgclear')[4]); innerDivsCount = innerDivsCount - 1; } if ((parseInt(innerDivsCount) < 1 && event.data.badge_type === undefined) || event.data.badge_type === 2 || event.data.badge_type === 3) { var node = document.createElement("div"); var node1 = document.createElement("div"); var textnode = document.createTextNode(IMIChatInit.extractContent(event.data.msg)); if (textnode.data.length > 45) { if (event.data.badge_type === undefined || event.data.badge_type === 2) { textnode.data = textnode.data.substr(0, 45) + "..."; } else { textnode.data = textnode.data; } } node.className = "msg"; node.style = "cursor:pointer;"; node1.className = "msgclear"; node.id = "msg_" + event.data.msgtransid; // Create a text node node1.id = "msgclear_" + event.data.msgtransid; node1.style = "clear:both;"; node.addEventListener("click", function () { window.parent.postMessage({ action: 'openchat', threadid: event.data.threadid, proactive_id: event.data.proactive_id }, '*'); }); node1.addEventListener("click", function () { window.parent.postMessage({ action: 'openchat', threadid: event.data.threadid, proactive_id: event.data.proactive_id }, '*'); }); if (event.data.msg_from !== undefined && event.data.msg_from !== "") { var span = document.createElement("span"); //var span span.innerHTML = '' + event.data.msg_from + ':'; node.appendChild(span); } else if (event.data.msg_from === undefined || event.data.msg_from == "") { var span = document.createElement("span"); //var span span.innerHTML = 'New Conversation:'; node.appendChild(span); } node.appendChild(textnode); var height = document.getElementsByClassName('main-unreadchat-cont')[0].style.height; if (height == "") { height = 70; } if (innerDivsCount == 0) { height = document.getElementsByClassName('main-unreadchat-cont')[0].style.height = "150px"; } /* else if (innerDivsCount == 2) { height = document.getElementsByClassName('main-unreadchat-cont')[0].style.height = "150px"; } else if (innerDivsCount > 2) {*/ else { document.getElementsByClassName('main-unreadchat-cont')[0].style.height = parseInt(height) + 60 + "px"; } var referenceNode = document.getElementById('chatunread-frame').contentWindow.document.getElementById("msg-list"); // document.querySelector('#some-element'); if (innerDivsCount == 0) { referenceNode.appendChild(node); referenceNode.appendChild(node1); } else { referenceNode.insertBefore(node, refChild); referenceNode.insertBefore(node1, refChild); if ((window.innerHeight + 100) < (document.getElementsByClassName("main-unreadchat-cont")[0].style.height)) { var frame = document.getElementById('chatunread-frame'); var c = frame.contentDocument || frame.contentWindow.document; c.getElementsByTagName("body")[0].offsetHeight = '80%'; c.getElementsByTagName("body")[0].style.overflow = "auto"; } } if (event.data.badge_type === 3) { document.getElementsByClassName("main-unreadchat-cont")[0].style.height = "100%"; var frame = document.getElementById('chatunread-frame'); var c = frame.contentDocument || frame.contentWindow.document; c.getElementsByClassName("msg")[0].style.maxHeight = "unset"; var frameheight = c.getElementsByTagName("body")[0].offsetHeight; document.getElementsByClassName("main-unreadchat-cont")[0].style.height = frameheight + "px"; } } else if (event.data.badge_type === 4) { var fullscreen_modal = document.getElementById('imichat-fullscreen-modal'); fullscreen_modal.className = 'imichat-fullscreen-modal imichat-open'; fullscreen_modal.contentWindow.postMessage({ action: 'bind_data', proactive_id: event.data.proactive_id, threadid: event.data.threadid, msg_from: event.data.msg_from, msg: event.data.msg, btn_chat_now_open: IMILocalisation.getValue(_IMIchat_widget_lang, "proactive_poupup_chat_now_button", "Chat Now"), btn_chat_now_close: IMILocalisation.getValue(_IMIchat_widget_lang, "proactive_poupup_close_button", "Close") }, "*"); } cardcount = parseInt(localStorage.getItem(event.data.fingerprint + "_" + _skey + "_cardcount")) + 1; localStorage.setItem(event.data.fingerprint + "_" + _skey + "_cardcount", cardcount); localStorage.setItem("fingerprint", event.data.fingerprint); localStorage.setItem(event.data.fingerprint + "_" + _skey + "_badgecount", count); document.getElementById('imi-chatbutton').contentWindow.document.getElementById("chattotalbadge").innerText = count; if (count > 0) { //to do for ENG-1082 get localisation for chat button tooltip with count document.getElementById('imi-chatbutton').contentWindow.document.getElementById("spnwidgetlbtn").setAttribute("aria-label", "Chat button , " + count + " unread messages"); //ENG-1082 } else { document.getElementById('imi-chatbutton').contentWindow.document.getElementById("spnwidgetlbtn").setAttribute("aria-label", "Chat button , " + count + " unread messages"); //ENG-1082 } } document.getElementById('chatunread-frame').contentWindow.document.getElementById("ancclearcards").style.display = (event.data.badge_type === undefined || (event.data.badge_type === 2 || event.data.badge_type === 3)) ? "block" : "none"; } } catch (e) { console.log("badgecount:" + e.msg); } }, message: function (event) { try { if (event.data.action != null) { if (event.data.action == 'openchat') { IMIChatInit.openchat(event); } if (event.data.action == 'badgecount') { IMIChatInit.badgecount(event); } if (event.data.action == 'chatswitchicon') { IMIChatInit.chatswitchicon(); //event } if (event.data.action == 'imichat_custom_chat_fields') { if (event.data.type == 'add') { if (_IMIchat_callback_dic['imichat-widget:custom_chat_fields_init'] !== undefined) { _IMIchat_callback_dic['imichat-widget:custom_chat_fields_init'](event.data.response); } } else if (event.data.type == 'update') { if (_IMIchat_callback_dic['imichat-widget:custom_chat_fields_update'] !== undefined) { _IMIchat_callback_dic['imichat-widget:custom_chat_fields_update'](event.data.response); } }//event } if (event.data.action == 'loadstyles') { IMIChatInit.loadJQuery(_domain_name, function () { IMIChatInit.loadwidgetStyles(event.data.message); try { if (event.data.message != null) { if (_IMIchat_callback_dic['imichat-widget:ready'] !== undefined) { _IMIchat_callback_dic['imichat-widget:ready'](_attr_key); console.log("imichat-widget:ready fired"); } //eval('imichatWidgetLoaded();'); if (_IMIchat_callback_dic['imichat-widget:custom_chat_fields_init'] !== undefined) { _IMIchat_callback_dic['imichat-widget:custom_chat_fields_init'](); }// debugger; var widget_data = JSON.parse(event.data.message); hdr_bfp = widget_data.hdr_bfp; hdr_xtoken = widget_data.hdr_xtoken; hdr_tid = widget_data.hdr_tid; } } catch (e) { } IMIChatInit.LaunchProactiveMsgManager(_domain_name, function () { }); IMIChatInit.handleAbandonedChats(); }); } if (event.data.action == 'closemodelpopup') { document.getElementById('imichat-fullscreen-modal').className = 'imichat-fullscreen-modal'; document.getElementById('imichat-fullscreen-modal').setAttribute('tabindex', '-1'); document.getElementById('imichat-fullscreen-modal').setAttribute('aria-hidden', 'true'); } if (event.data.action == 'setsession') { sessionStorage.setItem(event.data.key, event.data.value); } if (event.data.action == 'setlocal') { localStorage.setItem(event.data.key, event.data.value); } if (event.data.action == 'browserstorage') { document.getElementById("divicw").innerHTML = " \n \n \nError: Cookies Disabled We use cookies to enable best chat experience. Follow these directions to re-enable cookies specific to your browser type or re-open this website in a cookie-enabled browser. "; console.log("Local storage not supported"); } } } catch (e) { } }, resize: function () { try { var destination = document.getElementById('iframechatwindow').contentWindow; destination.postMessage({ action: 'resize', width: window.outerWidth //window.innerWidth//screen.width // document.body.clientWidth }, "*"); IMIGeneral.checkmobile(); } catch (e) { } }, LaunchProactiveMsgManager: function (domainName, callback) { try { var widget_styles = localStorage.getItem("style_" + document.getElementById("divicw").getAttribute("data-bind") + "_" + window.location.hostname); if (widget_styles == null && !JSON.parse(widget_styles).enable_proactive) { callback(); return; } var body = document.getElementsByTagName('body')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = IMIChatInit.domainName() + '/js/proactive-msg-manager.js'; body.appendChild(script); script.addEventListener('load', function (event) { console.log('proactive manager loaded;'); var destination = document.getElementById('iframechatwindow').contentWindow; destination.postMessage({ action: 'proactive-manager-loaded', attrkey: document.getElementById("divicw").getAttribute("data-bind"), host: window.location.hostname }, "*"); callback(); }); } catch (e) { console.log("LaunchProactiveMsgManager:" + e.msg); } }, processAbandonedChats: function (type) { if (!imichatwidget.hasInitiatedChat()) { return; } var browser_fingerprint = localStorage.getItem("fingerprint"); var url = IMIGeneral.profileUrl() + "livechats/" + _attr_key + "/customers/" + browser_fingerprint + "/abandoned?host=" + window.document.URL; url = url + "&type=" + type; var body = JSON.stringify({ "is_reloaded": false, "is_closechat": true }); var headers = { 'type': 'application/json', 'fpid': hdr_bfp, 'Tid': hdr_tid, 'X-Token': hdr_xtoken }; var blob = new Blob([body], headers); navigator.sendBeacon(url); }, handleAbandonedChats: function () { // Attach the event keypress to exclude the F5 refresh //jQuery(window).on('keydown', function (e) { window.addEventListener('keydown', function (e) { if (e.keyCode == 116) { _IMIchat_IsValidNavigation = true; } }); window.addEventListener("beforeunload", function (e) { sessionStorage.setItem(_attr_key + "_imichat-reload-check", document.referrer); console.log(document.referrer); //sessionStorage.setItem("imi_tabid", Math.random().toString(16).slice(2)); if (_IMIchat_IsValidNavigation !== undefined && !_IMIchat_IsValidNavigation) { IMIChatInit.processAbandonedChats("unload"); } }); if (window.performance.navigation.type == 1) { IMIChatInit.processAbandonedChats("load"); } }, loadJQuery: function (domainName, callback) { if (typeof (jQuery) !== 'undefined') { callback(); return; } var body = document.getElementsByTagName('body')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = domainName + '/js/jquery.min.js'; body.appendChild(script); script.addEventListener('load', function (event) { callback(); }); return; }, on: function (func_name, callback) { if (typeof callback != 'function') { console.error('function was expected.'); return; } switch (func_name) { case 'imichat-widget:ready': _IMIchat_callback_dic['imichat-widget:ready'] = callback; break; } }, checklocalStorage: function () { var test = 'test'; try { localStorage.setItem(test, test); localStorage.removeItem(test); return true; } catch (e) { return false; } }, call_previous_chats: function () { try { var destination = document.getElementById('iframechatwindow').contentWindow; msg = { "action": "showiframe", "host": window.location.hostname, "chatmobile": ((navigator.userAgent.indexOf("Mobile")) != -1) ? "1" : "0" }; destination.postMessage(msg, domainUrl); } catch (e) { } }, check_clear_session_chats: function () { if (document.referrer == sessionStorage.getItem(_attr_key + "_imichat-reload-check")) { return false; } else if (sessionStorage.getItem(_attr_key + "_imichat-reload-check") == undefined) { return true; } else { console.log("Hey, Thanks for visiting again"); return false; } } }; }(); if (IMIChatInit.checklocalStorage()) { IMIChatInit.init(); } else { document.getElementById("divicw").innerHTML = " \n \n \nError: Cookies Disabled We use cookies to enable best chat experience. Follow these directions to re-enable cookies specific to your browser type or re-open this website in a cookie-enabled browser. "; console.log("Local storage not supported"); } var imichatwidget = { // get hasInitiatedConversation() { // if (sessionStorage.getItem("imichat_hasinitconvexist") == null) // return false; // if (sessionStorage.getItem("imichat_hasinitconvexist") == "1") { // return true; // } else { // return false; // } // }, hasInitiatedChat: function () { if (sessionStorage.getItem("imichat_hasinitconvexist") == null) return false; if (sessionStorage.getItem("imichat_hasinitconvexist") == "1") { return true; } else { return false; } }, show: function () { //$("#divicw").show();return; document.getElementById("divicw").style.display = 'block'; }, hide: function () { // $("#divicw").hide();return; document.getElementById("divicw").style.display = 'none'; }, /* test:function() { if(sessionStorage.getItem("imichat_hasinitconvexist")==null) return false; if(sessionStorage.getItem("imichat_hasinitconvexist")=="1") { return true; } else { return false; } },*/ maximizeWindow: function () { IMIChatInit.chatswitchicon(1); IMIChatInit.resize(); IMIChatInit.call_previous_chats(); return; }, minimizeWindow: function () { return IMIChatInit.chatswitchicon(0); }, init: function (jsondata, callback) { if (typeof callback != 'function') { console.error('function was expected.'); return; } var destination = document.getElementById('iframechatwindow').contentWindow; destination.postMessage({ action: 'imichat_custom_chat_fields', data: jsondata, type: 'add' }, '*'); _IMIchat_callback_dic['imichat-widget:custom_chat_fields_init'] = callback; }, update: function (jsondata, callback) { if (typeof callback != 'function') { console.error('function was expected.'); return; } var destination = document.getElementById('iframechatwindow').contentWindow; destination.postMessage({ action: 'imichat_custom_chat_fields', data: jsondata, type: 'update' }, '*'); _IMIchat_callback_dic['imichat-widget:custom_chat_fields_update'] = callback; }, on: function (func_name, callback) { if (typeof callback != 'function') { console.error('function was expected.'); return; } switch (func_name) { case 'imichat-widget:ready': _IMIchat_callback_dic['imichat-widget:ready'] = callback; break; } } }; /* function imichatWidgetLoaded(){imi imichatwidget.maximizeWindow(); }*/ * DNC * Who we are * Where we stand * Take action * Vote * Shop * Donate * en español Democratic National Committee JOIN US Email address Zip Code Mobile Phone Submit Sign up to get texts. By entering your phone number, you are consenting to receive recurring automated text messages & calls from the DNC with news & info about our work. For SMS, message & data rates may apply. Text STOP to end. Text HELP for help. Privacy policy & ToS. * Who we are * What we do * Who we serve * About the Democratic Party * Leadership * State Parties * Where we stand * Party platform * The issues * Take action * Events * Trainings * Work with us * Vote * Shop * Donate * Donate by Mail * FAQs * Contact us * Press releases * Privacy policy * Terms of service * Submission Terms Copyright © 2024 DNC Services Corporation All rights reserved. Paid for by the DEMOCRATIC NATIONAL COMMITTEE (202) 863-8000 This communication is not authorized by any candidate or candidate's committee. DEMOCRATIC NATIONAL COMMITTEE 430 South Capitol Street Southeast Washington, DC 20003 Proudly Powered by WordPress DEMOCRATS WE ARE THE DEMOCRATIC PARTY. Fight for a brighter, more equal future: roll up our sleeves and organize to build a better America for all. Together, we will elect Democrats up and down the ballot. Sign up to get the latest. Email address* Mobile phone* Zip code* Join Sign up to get texts. By entering your phone number, you are consenting to receive recurring automated text messages & calls from the DNC with news & info about our work. For SMS, message & data rates may apply. Text STOP to end. Text HELP for help. Privacy policy & ToS. Vote Arrow Get Out the Vote for Democrats and make a plan to vote in your state. Make Calls Arrow Have meaningful conversations with voters across the country. The Issues Arrow Read more about the critical issues at stake this election year. Volunteer Arrow Sign up to volunteer and help shape the future of our country. < > * Contact Us Arrow * Events Arrow * News Arrow CHECK OUT OUR MERCH! SHOP THESE FEATURED ITEMS AND OTHER FAVORITES AT OUR STORE. Shop online Play Button Democratic National Committee JOIN US Email address Zip Code Mobile Phone Submit Sign up to get texts. By entering your phone number, you are consenting to receive recurring automated text messages & calls from the DNC with news & info about our work. For SMS, message & data rates may apply. Text STOP to end. Text HELP for help. Privacy policy & ToS. * Who we are * What we do * Who we serve * About the Democratic Party * Leadership * State Parties * Where we stand * Party platform * The issues * Take action * Events * Trainings * Work with us * Vote * Shop * Donate * Donate by Mail * FAQs * Contact us * Press releases * Privacy policy * Terms of service * Submission Terms Copyright © 2024 DNC Services Corporation All rights reserved. Paid for by the DEMOCRATIC NATIONAL COMMITTEE (202) 863-8000 This communication is not authorized by any candidate or candidate's committee. DEMOCRATIC NATIONAL COMMITTEE 430 South Capitol Street Southeast Washington, DC 20003 Proudly Powered by WordPress