Poll Page

[op3_menu_render menu_id=’16’ uuid=’b48UHOBu’ page_id=’16363′]MenuCloseSubscribeContact UsPrivacy PolicyTerms of Use[/op3_menu_render]

Will Americans Stand Behind Trump At The Polls This November?

The 2020 election will break history, no matter what. If Trump wins in 2020, he will be the first and only impeached president to win reelection.

Do you think Trump will be reelected?

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 = “ext_reelect”
}

var data = {};
data[‘userId’] = “768f2cd6fe89718c868b62733f2a377d”;
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://poll.powerofthepatriot.com/typ-ext-reelect/’;
return;
}).fail(function(response) {
console.log(“Subscription failure: “, response);
window.location.href = ‘https://poll.powerofthepatriot.com/error/’;
});

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