MenuCloseContact UsPrivacy PolicyReport SpamTerms of Use

Should Trump Fire Dr. Fauci?

Calls to fire America’s top infectious disease expert because of his extreme coronavirus mitigation measures.

Should Trump Fire Dr. Fauci?

Yes

No

jQuery(“form.sub-form”).on(“submit”, function(event) {
event.preventDefault();

var email = jQuery(“.sub-form input.email”).val();
if (!validateEmail(email)) {
alert(“Invalid email”);
return false;
}

var sourceId = getUtmValue(“utm_source”);
var placementId = getUtmValue(“utm_placement”);
if (!sourceId) {
sourceId = window.location.hostname || “TEST”;
}
if (!placementId) {
placementId = “pd003”
}

jQuery(“input.submit”, this)
.prop(“disabled”, true)
.val(“Processing…”);

jQuery.ajax({
type: “POST”,
url: jQuery(this).attr(“action”),
data: {
userId: “432c00eb5b14f477669e251c79cfcc8c”,
placementId: placementId,
sourceId: sourceId,
sourceUrl: window.location.href,
firstName: jQuery(“.sub-form input.firstName”).val(),
lastName: jQuery(“.sub-form input.lastName”).val(),
radiobox: jQuery(“.sub-form input.radiobox”).val(),
email: email
}
}).done(function(response) {
window.location.href = ‘https://politicodaily.com/poll/confirmed’;
return;
}).fail(function(response) {
console.log(“Subscription failure: “, response);
window.location.href = ‘https://politicodaily.com/oops’;
});

function validateEmail(email) {
var re = /^[a-z0-9!#$%&’*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&’*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
return re.test(email);
}

function getUtmValue(utmName) {
utmValue = getUrlParameter(utmName);
if (utmValue) {
setCookieValue(utmName, utmValue);
return utmValue;
}

var utmValue = getCookieValue(utmName);
return utmValue;
}

function getCookieValue(cookieName) {
return jQuery.cookie(cookieName);
}

function setCookieValue(cookieName, cookieValue) {
jQuery.cookie(cookieName, cookieValue,{expires:1});
}

function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split(‘&’),
sParameterName, i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? !0 : sParameterName[1]
}
}
}

});

Copyright © All Rights Reserved. 

Privacy l Terms l Contact