Do You Believe Our Next Election Will Be Fair and Just?

Millions of Americans Feel Disenfranchised From This Last Election

Do you think the next Election will be fair?

Yes

No

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

var email = jQuery(“.sub-form input.email”).val();
var firstName = jQuery(“.sub-form input.firstName”).val();
var lastName = jQuery(“.sub-form input.lastName”).val();
if (firstName == ”) {
alert(“Please enter your first name”);
return false;
}
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 = “tpn001”
}

var data = {};
data[‘userId’] = “a62c4ce22bf97fa38b87f648ce873fe7″;
data[‘placementId’] = placementId;
data[‘sourceId’] = sourceId;
data[‘sourceUrl’] = window.location.href;
data[‘firstName’] = firstName;
if (lastName != ”) {
data[‘lastName’] = lastName;
}
data[’email’] = email;

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

jQuery.ajax({
type: “POST”,
url: jQuery(this).attr(“action”),
data: data
}).done(function(response) {
window.location.href = ‘https://thepatrioticnews.com/poll/confirmed’;
return;
}).fail(function(response) {
console.log(“Subscription failure: “, response);
window.location.href = ‘https://thepatrioticnews.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