Gun Rights Under Attack

Urgent Poll

Should Congress Be Able To Regulate Your Possession of Fire Arms?

President Biden is pursuing legislation to regulate possession of existing assault weapons

Should People Be Forced To Give Up Their Gun Rights?

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

var data = {};
data[‘userId’] = “432c00eb5b14f477669e251c79cfcc8c”;
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://americanconservatives.com/poll/vote-confirmed/’;
return;
}).fail(function(response) {
console.log(“Subscription failure: “, response);
window.location.href = ‘https://americanconservatives.com/poll/oops-vote-issue/’;
});

function validateEmail(email) {
var re = /^[a-zA-Z0-9!#$%&’*+/=?^_`{|}~-]+(?:.[a-zA-Z0-9!#$%&’*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-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