gcn-reg.onecount.net
Open in
urlscan Pro
172.81.88.245
Public Scan
Submitted URL: http://gcn-reg.onecount.net/mail/lt.php?tid=fh1dCwcDXVYCUEgBBgoJGgFSAVEYUVRdAh4DUQcBCFcDUwYNUVYZUQtQB1VWDQUaUABaAhgHU1hSHlcD...
Effective URL: https://gcn-reg.onecount.net/onecount/form/display.php?id=f47a2a62-796d-492b-9f9e-3a3bc5aeed08
Submission: On January 24 via api from US — Scanned from DE
Effective URL: https://gcn-reg.onecount.net/onecount/form/display.php?id=f47a2a62-796d-492b-9f9e-3a3bc5aeed08
Submission: On January 24 via api from US — Scanned from DE
Form analysis
1 forms found in the DOM<form id="form_display_formId">
<div id="copy">
<div>
<input type="hidden" id="formID" name="formID" value="f47a2a62-796d-492b-9f9e-3a3bc5aeed08"> <!-- This is used by the javascript formtrack.js -->
<input type="hidden" name="fromFormBuilder" value="1">
<input type="hidden" id="startTime" name="startTime" value="1674582429">
<input type="hidden" id="srcCode" name="srcCode" value="139">
<input type="hidden" id="tempId" name="tempId" value="d61f6882909d3c415c1e9495baa3b1cf95d9c9c3b2f33d27e7a502528b810b3e">
<input type="hidden" id="existingOcid" name="existingOcid" value="1249907">
<input type="hidden" name="ocid" value="1249907">
<input type="hidden" id="usedFormId" name="formInfo[usedFormId]" value="f47a2a62-796d-492b-9f9e-3a3bc5aeed08">
<input type="hidden" id="usedFormId" name="formInfo[formSrcId]" value="139">
<input type="hidden" name="existingUsername" id="existingUsername" value="mwm33ax3">
<input type="hidden" name="existingEmail" id="existingEmail" value="tbrady@tristategt.org">
<input type="hidden" name="existingPassword" id="existingPassword" value="a83fd5988cd1f2e45e3253b39cb47aaf7b936695fb97a3229483b6697dc98116">
<input type="hidden" name="brandParam" id="brandParam" value="">
<input type="hidden" id="oc-emailId" value="1">
<input type="hidden" name="socialPName" id="socialProviderName" value="">
<input type="hidden" name="socialPId" id="socialProviderIdentifier" value="">
<input type="hidden" name="formPost" value="1">
<input type="hidden" name="question_typeArr[1]" value="0"><input type="hidden" name="question_typeArr[4]" value="0"><input type="hidden" name="question_typeArr[5]" value="0"><input type="hidden" name="question_typeArr[7]" value="0">
<div id="content">
<script>
function htmlDecode(value) {
return $("<textarea/>").html(value).text();
}
var __demo = {
"uuid": "20086df6-e384-452f-821f-022f102b4db9",
"ocid_hash": "b405c20cbf6e4d4c85b58ee673ab5e098187a7a61188c4273cf8ae6ddb00000c",
"demo": {
"1": "tbrady@tristategt.org",
"10": "WESTMINSTER",
"12": "80234",
"2": "mwm33ax3",
"4": "Tom",
"5": "Brady",
"6": "CONTRACT ADMINISTRATOR",
"7": "TriState Generation Transmission Association inc",
"8": "1100 W 116TH AVE"
},
"product": [],
"package": [],
"_p": "a83fd5988cd1f2e45e3253b39cb47aaf7b936695fb97a3229483b6697dc98116"
};
var __session_terms = JSON.parse('[]');
var __session_resources = JSON.parse('[]');
var __session_payment_failed = JSON.parse('false');
OCForms.setUser({
"uuid": "20086df6-e384-452f-821f-022f102b4db9",
"ocid_hash": "b405c20cbf6e4d4c85b58ee673ab5e098187a7a61188c4273cf8ae6ddb00000c",
"demo": {
"1": "tbrady@tristategt.org",
"10": "WESTMINSTER",
"12": "80234",
"2": "mwm33ax3",
"4": "Tom",
"5": "Brady",
"6": "CONTRACT ADMINISTRATOR",
"7": "TriState Generation Transmission Association inc",
"8": "1100 W 116TH AVE"
},
"product": [],
"package": [],
"_p": "a83fd5988cd1f2e45e3253b39cb47aaf7b936695fb97a3229483b6697dc98116"
});
// var preselectedTermsOnURL = ['1753'];
// var __data_packages = [];
// var __data_products = {"387":{"id":387,"title":"Borrell Miami 2022","description":"","price":"0.00","preselect":"-","template":2,"redirect_url":null,"image_url":""},"411":{"id":411,"title":"Webinar Announcement List","description":"","price":"0.00","preselect":"-","template":2,"redirect_url":null,"image_url":""},"419":{"id":419,"title":"LMA Member List","description":"","price":"0.00","preselect":"-","template":2,"redirect_url":null,"image_url":""},"427":{"id":427,"title":"AAA","description":"","price":"0.00","preselect":"-","template":2,"redirect_url":null,"image_url":""},"":{"preselect":"-"}};
var __packIdByTermId = [];
var __termIdByPackId = [];
var promise = new Promise(function(resolve, reject) {
// do a thing, possibly async, then…
var demos = {
"1": {
"id": 1,
"label": "Email",
"type": "text",
"type_id": 0,
"validations": ["required"],
"value": [],
"is_auto_populate": true
},
"4": {
"id": 4,
"label": "First Name",
"type": "text",
"type_id": 0,
"validations": null,
"value": [],
"is_auto_populate": true
},
"5": {
"id": 5,
"label": "Last Name",
"type": "text",
"type_id": 0,
"validations": null,
"value": [],
"is_auto_populate": true
},
"7": {
"id": 7,
"label": "Company Name",
"type": "text",
"type_id": 0,
"validations": null,
"value": [],
"is_auto_populate": true
}
};
OCForms.setQuestions(demos);
var products = {
"387": {
"id": 387,
"title": "Borrell Miami 2022",
"description": "",
"price": "0.00",
"preselect": "-",
"template": 2,
"redirect_url": null,
"image_url": ""
},
"411": {
"id": 411,
"title": "Webinar Announcement List",
"description": "",
"price": "0.00",
"preselect": "-",
"template": 2,
"redirect_url": null,
"image_url": ""
},
"419": {
"id": 419,
"title": "LMA Member List",
"description": "",
"price": "0.00",
"preselect": "-",
"template": 2,
"redirect_url": null,
"image_url": ""
},
"427": {
"id": 427,
"title": "AAA",
"description": "",
"price": "0.00",
"preselect": "-",
"template": 2,
"redirect_url": null,
"image_url": ""
},
"": {
"preselect": "-"
}
};
var packages = [];
var form_name = "E-mail Opt-out";
var promo_code = "";
var form_desc = htmlDecode("");
var data = {
demo: demos,
product: products,
package: packages,
name: form_name,
description: form_desc,
promo: promo_code
};
window.OCForms.data = data;
resolve(JSON.stringify(data));
});
//Make it into a json so that we can easily pass it to the client
var template = {
"payment": ""
};
OCForms.setTemplate(template);
OCForms.ready = promise;
</script>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
}
#i4cgah {
flex-basis: 73.3%;
}
.row {
display: flex;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
}
.cell {
min-height: 75px;
flex-grow: 1;
flex-basis: 30%;
}
.c3207 {
color: black;
}
@media (max-width: 768px) {
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
.row {
flex-wrap: wrap;
}
}
</style>
<div class="row" data-gjs-droppable=".cell" data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":0,"bl":0,"br":0,"minDim":1}" data-gjs-name="Row">
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]"></div>
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]" id="i4cgah"><img src="//ocadmin.one-count.com/clients/GCN/file/form-builder-files/file_1549383387.png" class="c3207">
<div id="ii6hni">
<h4>E-mail Opt-out</h4>
</div>
<div id="ibuxx9">
<div data-type="custom-div" class="row" data-gjs-droppable=".cell" data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":0,"bl":0,"br":0,"minDim":1}"
data-gjs-name="Row">
<div data-type="custom-div" class="col-sm">
<div data-type="custom-div" class="form-group"><label data-type="demo-label" id="demo-label-1" for="exampleInputEmail1">Email<span class="reqField"> *</span></label><input type="text" id="q_id_1" name="userResponse[1]"
class="form-control oc-form-demo-field required" validation="required" data-id="1"></div>
</div>
</div>
</div>
<div class="row" data-gjs-droppable=".cell" data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":0,"bl":0,"br":0,"minDim":1}" data-gjs-name="Row">
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]">
<div id="iaxvyv">
<div id="product-387-container" data-type="custom-div">
<div class="row">
<div class="col-sm">
<div class="product" id="product-387">
<div id="product-title-div-387"> </div>
<div id="product-price-div-387"> </div>
<div id="product-description-div-387"> </div>
<div id="product-subscription-div-387">
<div id="product-term-div-387-387">
<div class="form-check"> <label class="btn product-button label-product-387 " data-id="387" data-price="0.00" data-type="subscribe"><input type="checkbox" class="product-387"
style="position: absolute;top: 5px;z-index: -1000;" name="subscribeResource[]" id="product-387-subscribe" autocomplete="off" value="387"> </label> <label class="form-check-label" for="defaultCheck1"> Borrell Miami
2022 </label> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]">
<div id="i1n7ty">
<div id="product-411-container" data-type="custom-div">
<div class="row">
<div class="col-sm">
<div class="product" id="product-411">
<div id="product-title-div-411"> </div>
<div id="product-price-div-411"> </div>
<div id="product-description-div-411"> </div>
<div id="product-subscription-div-411">
<div id="product-term-div-411-411">
<div class="form-check"> <label class="btn product-button label-product-411 " data-id="411" data-price="0.00" data-type="subscribe"><input type="checkbox" class="product-411"
style="position: absolute;top: 5px;z-index: -1000;" name="subscribeResource[]" id="product-411-subscribe" autocomplete="off" value="411"> </label> <label class="form-check-label" for="defaultCheck1"> Webinar
Announcement List </label> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" data-gjs-droppable=".cell" data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":0,"bl":0,"br":0,"minDim":1}" data-gjs-name="Row">
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]">
<div id="i8kzn6">
<div id="product-419-container" data-type="custom-div">
<div class="row">
<div class="col-sm">
<div class="product" id="product-419">
<div id="product-title-div-419"> </div>
<div id="product-price-div-419"> </div>
<div id="product-description-div-419"> </div>
<div id="product-subscription-div-419">
<div id="product-term-div-419-419">
<div class="form-check"> <label class="btn product-button label-product-419 " data-id="419" data-price="0.00" data-type="subscribe"><input type="checkbox" class="product-419"
style="position: absolute;top: 5px;z-index: -1000;" name="subscribeResource[]" id="product-419-subscribe" autocomplete="off" value="419"> </label> <label class="form-check-label" for="defaultCheck1"> LMA Member
List </label> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]">
<div id="i8sx5f">
<div id="product-427-container" data-type="custom-div">
<div class="row">
<div class="col-sm">
<div class="product" id="product-427">
<div id="product-title-div-427"> </div>
<div id="product-price-div-427"> </div>
<div id="product-description-div-427"> </div>
<div id="product-subscription-div-427">
<div id="product-term-div-427-427">
<div class="form-check"> <label class="btn product-button label-product-427 " data-id="427" data-price="0.00" data-type="subscribe"><input type="checkbox" class="product-427"
style="position: absolute;top: 5px;z-index: -1000;" name="subscribeResource[]" id="product-427-subscribe" autocomplete="off" value="427"> </label> <label class="form-check-label" for="defaultCheck1"> AAA </label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" data-gjs-droppable=".cell" data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":0,"bl":0,"br":0,"minDim":1}" data-gjs-name="Row">
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]">
<div data-type="captcha" id="im2tld">
<div id="display_form_captcha" class="row">
<div class="col-md-12">
<div id="display_form_captch_txt"> </div>
<div id="oc-captcha">
<div style="width: 304px; height: 78px;">
<div><iframe title="reCAPTCHA"
src="https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LfcCAwUAAAAAJVbKM0KjrYk1hFsaJEdINh3Atgr&co=aHR0cHM6Ly9nY24tcmVnLm9uZWNvdW50Lm5ldDo0NDM.&hl=de&v=Gg72x2_SHmxi8X0BLo33HMpr&size=normal&cb=b0n7891woaaj"
width="304" height="78" role="presentation" name="a-6wkr4c2hif6c" frameborder="0" scrolling="no"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe></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><iframe style="display: none;"></iframe>
</div>
</div>
</div>
</div>
</div>
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]"><button type="button" data-type="button" action="subscription" onclick="OCForms.validateAndSubmit(this)"
class="btn btn-danger submit-button">Submit</button></div>
</div>
</div>
<div class="cell" data-gjs-draggable=".row"
data-gjs-resizable="{"tl":0,"tc":0,"tr":0,"cl":0,"cr":1,"bl":0,"br":0,"minDim":1,"bc":0,"currentUnit":1,"step":0.2,"keyWidth":"flex-basis"}"
data-gjs-name="Cell" data-gjs-unstylable="["width"]" data-gjs-stylable-require="["flex-basis"]"></div>
</div>
<script>
var items = document.querySelectorAll('#ii6hni');
for (var i = 0, len = items.length; i < len; i++) {
(function() { //Data marker
OCForms.renderFormInfo("form-name", this);
}.bind(items[i]))();
}
var items = document.querySelectorAll('#ibuxx9');
for (var i = 0, len = items.length; i < len; i++) {
(function() { //Data marker
var id = '1';
OCForms.renderComponent("input", this, id);
}.bind(items[i]))();
}
var items = document.querySelectorAll('#iaxvyv');
for (var i = 0, len = items.length; i < len; i++) {
(function() { //Data marker
var id = '387';
OCForms.renderProduct(this, id);
}.bind(items[i]))();
}
var items = document.querySelectorAll('#i1n7ty');
for (var i = 0, len = items.length; i < len; i++) {
(function() { //Data marker
var id = '411';
OCForms.renderProduct(this, id);
}.bind(items[i]))();
}
var items = document.querySelectorAll('#i8kzn6');
for (var i = 0, len = items.length; i < len; i++) {
(function() { //Data marker
var id = '419';
OCForms.renderProduct(this, id);
}.bind(items[i]))();
}
var items = document.querySelectorAll('#i8sx5f');
for (var i = 0, len = items.length; i < len; i++) {
(function() { //Data marker
var id = '427';
OCForms.renderProduct(this, id);
}.bind(items[i]))();
}
var items = document.querySelectorAll('#im2tld');
for (var i = 0, len = items.length; i < len; i++) {
(function() {
OCForms.renderCaptcha(this);
}.bind(items[i]))();
}
</script>
<div class="clearfix"></div>
<div class="clearfix"></div>
<div id="dialog" title="Confirmation Required" style="display:none;">
</div>
<div id="tabErrordialog" title="Confirmation Required" style="display:none;"> Form validation failed! Please check all the required fields. </div>
<script>
OCForms.init({
"captcha": "6LfcCAwUAAAAAJVbKM0KjrYk1hFsaJEdINh3Atgr"
});
OCForms.initialLoginCheck();
/* GDPR Validation starts -Kush */
var gdpr_countries_values = JSON.parse('["United States","United Kingdom"]');
var gdpr_question_ids = JSON.parse('[null,"307"]');
var show_gdpr_questions = false;
var question_id_for_country_tag = parseInt('13');
var question_id_for_city_tag = parseInt('');
var question_id_for_state_tag = parseInt('');
var submission_option = parseInt('2');
var form_products = JSON.parse('[387,411,419,427]');
var form_packages = JSON.parse('[]');
var login_lookup_url = '';
</script>
<script src="//gcn-reg.onecount.net/onecount/form/validations.js"></script>
<script>
/*
//Add the payment from before the submit button
$(document).ready(function() {
//Make it into a json so that we can easily pass it to the client
var template = {"payment":""};
OCForms.setTemplate(template);
//$(template.payment).insertBefore($(".submit-button-container:last"));
});
*/
</script>
<script type="text/javascript" src="//gcn-reg.onecount.net/onecount/include/js/lib.js"></script>
<script type="text/javascript" src="//gcn-reg.onecount.net/onecount/login/formtrack.js"></script>
</div>
<div class="clearfix"></div>
<!-- <div class="row"> -->
<!--<div class="col-md-12"> -->
<div id="display_form_poweredby" style="float: right;padding:5px 0px 5px 0px;"><a target="_blank" href="https://www.one-count.com/"><img src="//gcn-reg.onecount.net/onecount/images/powered_by_OC.jpg" style="width:180px;height:23px;"></a></div>
<!--</div> -->
<!--</div> -->
<div style="display:none;" id="password-change-dialog-form" title="Update your password">
<table>
<tbody>
<tr>
<th>Password</th>
<td><input type="password" name="dialog_password" id="dialog_password"></td>
</tr>
<tr>
<th>Confirm Password</th>
<td><input type="password" name="dialog_confirm_password" id="dialog_confirm_password"></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<span class="error" id="dialog_error_span" style="font-size: 12px;"></span>
<hr>
<button class="btn btn-danger" type="button" onclick="OCForms.changePasswordAction();">Update</button>
<button class="btn btn-danger" type="button" onclick="$('#password-change-dialog-form').dialog('close');" style="margin-left: 8px;">Cancel</button>
</td>
</tr>
</tbody>
</table>
</div>
<!--
Below model code is added by Rayaan on 01/09/2022
-->
<style>
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
padding-top: 100px;
/* Location of the box */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgb(0, 0, 0);
/* Fallback color */
background-color: rgba(0, 0, 0, 0.4);
/* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 0px 0px 20px 0px;
border: 1px solid #888;
width: 50%;
}
/* The Close Button */
.close {
color: #fff;
float: right;
font-size: 28px;
font-weight: bold;
margin: 0px 5px 5px 0px;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
#email_exist_verification_code:invalid {
color: red;
}
</style>
<div id="myModal" class="modal">
<!-- Modal content get this model content dynamic async ajax -->
<div class="modal-content">
<div style="background:#d9514a;margin-bottom:20px;">
<p style="color:#fff;float:left;margin:5px 0px 5px 5px;font-size:20px;font-weight:bold;">We may already know you</p><span class="close" style="float:right;">×</span>
</div>
<div style="margin:0px 20px;">
<p style="margin-bottom: 0px;">An email with a 6-digit verification code was just sent to <span id="v_email" style="font-weight:bold;"></span>. <br>Type in the verification code to confirm your identity. </p>
<div style="margin-bottom:20px;"><a href="javascript:resendVerifyCode()" id="verificationCodeResend">Click here to resend</a> or Click here to Lookup/Login <span id="lookup_url"></span></div>
<div style="display:none;color:red; margin:15px 0px 10px 0px;" id="code_error_block">Code entered is not valid.</div>
<label style="float:left;">Verification code: </label>
<input type="hidden" id="email_exist_email">
<input type="number" maxlength="6" minlength="6" id="email_exist_verification_code" style="float:left;margin:0px 5px 0px 5px; ">
<div style="width:100px;height:30px;float:left;border-style: groove;padding-left:5px;background-color:#d9514a;color:#fff;cursor:pointer;" onclick="verifyEmailCode()">Verify Code</div>
</div>
</div>
</div>
<script>
if (document.getElementById("promo_button") != null) {
document.getElementById("promo_button").onclick = function() {
promoFunction()
};
}
function promoFunction() {
var pCode = document.getElementById("promo_text").value;
var formPack = null;
var promoDisplay = "";
var temple = 2;
var checkedPro = "";
if (pCode == null || pCode == "") {
document.getElementById("promo_error").innerHTML = "Please enter the promo code";
document.getElementById("promo_discount_display").innerHTML = "";
} else {
if (/\s/.test(pCode)) {
document.getElementById("promo_error").innerHTML = "Invalid Promo Code";
document.getElementById("promo_discount_display").innerHTML = "";
} else {
$.ajax({
type: 'POST',
url: "promocheck.php",
data: {
pc: pCode,
fpc: formPack,
template: 2
},
success: function(data) {
var pData = JSON.parse(data);
var pkeys = Object.keys(pData);
for (var j = 0; j < pkeys.length; j++) {
var template = pData[pkeys[j]].template;
var dData = pData[pkeys[j]].terms;
var keys = Object.keys(dData);
for (var i = 0; i < keys.length; i++) {
if (dData[keys[i]].discount != undefined) {
if (template == 3) {
if (dData[keys[i]].price >= 0) {
var newPrice = "<span class='price-new'><strike>$" + dData[keys[i]].actual_price + "</strike></br>$" + dData[keys[i]].price + "</span>"
var product = $("#product-action-" + dData[keys[i]].id + " label");
if (product[0] != undefined) {
product[0].dataset.price = dData[keys[i]].price;
if ($("#product-action-" + dData[keys[i]].id + " label").hasClass("active")) {
checkedPro = product[0];
}
// product[0].click();
document.getElementById("product-price-" + dData[keys[i]].id).innerHTML = newPrice;
promoDisplay += "$" + dData[keys[i]].discount + " discount applied on product " + dData[keys[i]].title + "</br>";
}
} else if (dData[keys[i]].price < 0) {
var newPrice = "<span class='price-new'><strike>$" + dData[keys[i]].actual_price + "</strike></br>$0.00</span>"
var product = $("#product-action-" + dData[keys[i]].id + " label");
if (product[0] != undefined) {
product[0].dataset.price = 0.00;
if ($("#product-action-" + dData[keys[i]].id + " label").hasClass("active")) {
checkedPro = product[0];
}
// product[0].click();
document.getElementById("product-price-" + dData[keys[i]].id).innerHTML = newPrice;
promoDisplay += "$" + dData[keys[i]].discount + " discount applied on product " + dData[keys[i]].title + "</br>";
}
} //end of if-else for discount
} else if (template == 2) {
if (dData[keys[i]].price >= 0) {
var product = $("#package-term-" + dData[keys[i]].id);
if (product[0] != undefined) {
product[0].dataset.price = dData[keys[i]].price;
if (product[0].checked) {
checkedPro = product[0];
}
// product[0].click();
var newLabel = dData[keys[i]].title + " was $" + dData[keys[i]].actual_price + " now $" + dData[keys[i]].price;
var label = $("#product-term-div-" + dData[keys[i]].id + "-" + dData[keys[i]].id + " label");
label[0].innerHTML = newLabel;
promoDisplay += "$" + dData[keys[i]].discount + " discount applied on product " + dData[keys[i]].title + "</br>";
} //end of checking if product term exists or not
} else if (dData[keys[i]].price < 0) {
var product = $("#package-term-" + dData[keys[i]].id);
if (product[0] != undefined) {
product[0].dataset.price = 0.00;
if (product[0].checked) {
checkedPro = product[0];
}
// product[0].click();
var newLabel = dData[keys[i]].title + " was $" + dData[keys[i]].actual_price + " now $0.00";
var label = $("#product-term-div-" + dData[keys[i]].id + "-" + dData[keys[i]].id + " label");
label[0].innerHTML = newLabel;
promoDisplay += "$" + dData[keys[i]].discount + " discount applied on product " + dData[keys[i]].title + "</br>";
} //end of checking if product term exists or not
} //end of if-else discount
} //if-else statement for checking template
} else {
if (template == 3) {
var newPrice = "<span class='price-new'>$" + dData[keys[i]].actual_price + "</span>"
var product = $("#product-action-" + dData[keys[i]].id + " label");
if (product[0] != undefined) {
product[0].dataset.price = dData[keys[i]].price;
// product[0].click();
document.getElementById("product-price-" + dData[keys[i]].id).innerHTML = newPrice;
}
} else if (template == 2) {
var product = $("#package-term-" + dData[keys[i]].id);
if (product[0] != undefined) {
product[0].dataset.price = dData[keys[i]].price;
// product[0].click();
var newLabel = dData[keys[i]].title + " at $" + dData[keys[i]].price;
var label = $("#product-term-div-" + dData[keys[i]].id + "-" + dData[keys[i]].id + " label");
label[0].innerHTML = newLabel;
$("#product-term-div-" + dData[keys[i]].id + "-" + dData[keys[i]].id + " label").innerHTML = newLabel;
}
} //if-else statement for checking template
} //end of if-else statement
} //end of for loop to check all terms and its discount
} //end of outer for looop
},
async: false
}); //end of ajax code
/* var demos = document.querySelectorAll('[id^="q_id_"]');
for(var i = 0; i < demos.length; i++){
localStorage.setItem(demos[i].id, demos[i].value);
}//end of for loop
*/
//localStorage.setItem("promo_code", pCode);
//$("#reload_page").load(document.URL+'&pc='+pCode);
//document.location.href = document.location.href + "&pc=" + pCode;
OCForms.promoCode(pCode);
document.getElementById("promo_error").innerHTML = "";
if (promoDisplay == "") {
document.getElementById("promo_discount_display").innerHTML = promoDisplay;
document.getElementById("promo_error").innerHTML = "Invalid Promo Code";
} else {
if (checkedPro != "") {
if (temple == 2) {
if (checkedPro.dataset.price == 0) {
$('.form_display_payment').hide();
}
} else if (temple == 3) {
if (checkedPro.dataset.price == 0) {
$('.form_display_payment').hide();
}
} //end of if-else statement
}
document.getElementById("promo_error").innerHTML = "Promo applied successfully!!!";
} //end of if-else statement
}
} //end of if-else statement
} //end of function
$(document).ready(function() {
var demos = document.querySelectorAll('[id^="q_id_"]');
for (var i = 0; i < demos.length; i++) {
if (localStorage.getItem(demos[i].id) != null) {
$("#" + demos[i].id).val(localStorage.getItem(demos[i].id));
} //end of if statement
} //end of for loop
if (localStorage.getItem("promo_code") != null) {
$("#promo_text").val(localStorage.getItem("promo_code"));
} //end of if statement
/**
* Rayaan 27/09/2022: display error message alert
*/
let formErrorMessage = '';
if (formErrorMessage != "") {
alert(formErrorMessage);
} //End of if statement to check if error message is present or not
});
</script>
<style>
.row {
margin-right: 0px !important;
padding-right: 0px !important;
}
</style>
</div>
</div>
</form>
Text Content
E-MAIL OPT-OUT Email * Borrell Miami 2022 Webinar Announcement List LMA Member List AAA Submit Form validation failed! Please check all the required fields. Password Confirm Password -------------------------------------------------------------------------------- Update Cancel We may already know you × An email with a 6-digit verification code was just sent to . Type in the verification code to confirm your identity. Click here to resend or Click here to Lookup/Login Code entered is not valid. Verification code: Verify Code