//
var current_date = new Date(); var cdt = current_date.toString(); $('#hf_ClientTime').val(cdt.split("(")[1].replace(')', '')); $('#hf_ClientTimeOffset').val(get_time_zone_offset()); Cookies.set('420A3_CLIENT_TZ', $('#hf_ClientTime').val(), { expires: 7 }); Cookies.set('420A3_CLIENT_TZ_OFFSET', $('#hf_ClientTimeOffset').val(), { expires: 7 }); function get_time_zone_offset() { return -current_date.getTimezoneOffset() / 60; } function getClientTZO() { return $('#hf_ClientTimeOffset').val(); }
Sign Up
We'll never share your credentials with anyone.
---------------
or 420A3
---------------
Passwords are required to be a minimum of 6 characters in length.
Show
Show
Remember me
Agree with the terms and conditions
You must agree to terms and conditions
420A3.Com Cannabis Search Redefined.
//hide or show password $('.hide-password').on('click', function () { if ($(this).hasClass('hide-password-signin') == true) { var $this = $(this), $password_field = $('.login-user-password'); ('password' == $password_field.attr('type')) ? $password_field.attr('type', 'text') : $password_field.attr('type', 'password'); ('Hide' == $this.text()) ? $this.text('Show') : $this.text('Hide'); //focus and move cursor to the end of input field $password_field.putCursorAtEnd(); } else { var $this = $(this), $change_password_field = $('.signup-user-password-confirm'); ('password' == $change_password_field.attr('type')) ? $change_password_field.attr('type', 'text') : $change_password_field.attr('type', 'password'); ('Hide' == $this.text()) ? $this.text('Show') : $this.text('Hide'); //focus and move cursor to the end of input field $change_password_field.putCursorAtEnd(); } }); $('body').on('click', '.create-account', function (e) { if ($('.tc-display').hasClass('fa-check') == true) { $('.mytchelp').fadeOut(); } else { e.preventDefault(); $('.mytchelp').fadeIn(); } }); $('body').on('click', '.btn-cancel', function (e) { e.preventDefault(); // showBackground(); window.location.assign("/ads/sales?ReturnUrl=/home"); }); function setReminder(ctl) { var chk = $(ctl).is(':checked'); if (chk == true) { setRememberMeSignUp("yes"); } else { setRememberMeSignUp("no"); } } function getToken() { return $('#ContentPlaceHolder1_hfToken').val(); } function getRememberMeLogin() { return $('#ContentPlaceHolder1_hf_UserLoginRememberMe').val(); } function getRememberMeSignUp() { return $('#ContentPlaceHolder1_hf_UserSignupRememberMe').val(); } function setRememberMeSignUp(inval) { $('#ContentPlaceHolder1_hf_UserSignupRememberMe').val(inval); } function getAgreeToTerms() { return $('#ContentPlaceHolder1_hf_UserAgreeToTerms').val(); } function setAgreeToTerms(inval) { $('#ContentPlaceHolder1_hf_UserAgreeToTerms').val(inval); $('[name="agree"]').val(inval); } function getReturnUrl() { return '/ads/sales?ReturnUrl=/home'; } $(document).ready(function () { $(document.body).tooltip({ selector: "[title]", trigger: 'hover', container: 'body', html: true }); setRememberMeSignUp("yes"); setTimeout(function () { //alert($('.cd-signin').length); //alert($('#ContentPlaceHolder1_hf_WhichOne').val()); }, 100); ////$('body').on('click', '.register-link', function (e) { //// e.preventDefault(); //// signup_selectedx(); ////}); //registerme //reset-password $('body').on('click', '.reset-password', function (e) { e.preventDefault(); e.stopPropagation(); var response = grecaptcha.getResponse(); if (response.length == 0) { //reCaptcha not verified } else { //reCaptch verified if ($('.password-reset-error').css('display') == 'inline-block') { $('.password-reset-error').find('.delete-me').remove(); $('.password-reset-error').fadeOut(); setTimeout(function () { }, 300); } var email = $('.reset-password-email').val(); var emailRegExp = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; if (emailRegExp.test(email) == false) { $('.password-reset-error').append("
Missing or Invalid Email Address.
").slideDown(); } else { //SendPasswordReset(string token, string username) try { $.ajax({ type: 'POST', url: '/MailWebService.aspx/SendPasswordReset', data: '{"token":"' + getToken() + '","username":"' + email + '"}', contentType: 'application/json; charset=utf-8', dataType: 'json', async: false, cache: false, success: function (response) { var obj = $.parseJSON(response.d)[0]; var fn = ''; if (obj.success) { showMessagePrompt("success", "Password Reset", "Password Reset Link Sent to:
'" + email + "'
", "password-reset"); //showResetMessagePromptExit("success", "Password Reset", "
Password Reset Link Sent to:
'" + email + "'
"); } else { var lf = $('body').find('div.validation-summary-errors.login-summary-errors'); $(lf).html(''); $(lf).append("
" + obj.error + " Please contact support@420A3.com
"); $(lf).slideDown('slow'); $('.login-user-name').focus(); } }, failure: function (response) { showMessagePrompt("danger", "Password Reset", "Unexpected Failure Occured"); }, error: function (response) { showMessagePrompt("danger", "Password Reset", "Unexpected Error Occured"); } }); } catch (err) { showMessagePrompt("danger", "Password Reset", "Unexpected Error Occured: " + err.message); } } } }); function sendHeight() { var actual_height = document.getElementById('420A3').scrollHeight; var pass_data = { 'contentheight': actual_height } //alert(parent); parent.postMessage(JSON.stringify(pass_data), "*"); } $('body').on('click', '.terms-conditions', function (e) { e.preventDefault(); getModalTermsPrompt(); }); //////// $('#420A3').formValidation({ //////// framework: 'bootstrap', //////// excluded: [':disabled', ':hidden', ':not(:visible)', '.register-email'], //////// icon: { //////// valid: 'glyphicon glyphicon-ok', //////// invalid: 'glyphicon glyphicon-remove', //////// validating: 'glyphicon glyphicon-refresh' //////// }, //////// fields: { //////// agree: { //////// excluded: false, //////// validators: { //////// callback: { //////// message: 'You must agree with the terms and conditions', //////// callback: function (value, validator, $field) { //////// //alert(value); //////// if (value == 'yes') { //////// $('.tc-display').removeClass('fa-remove').addClass('fa-check'); //////// $('.tc-display').fadeIn(); //////// } //////// else { //////// $('.tc-display').removeClass('fa-check').addClass('fa-remove') //////// $('.tc-display').fadeIn(); //////// } //////// return value === 'yes'; //////// } //////// } //////// } //////// } //////// } //////// }).on('err.field.fv', function (e, data) { //////// e.preventDefault(); //////// }) //////// .on('success.field.fv', function (e, data) { //////// }); setTimeout(function () { //alert('and then?'); sendHeight(); }, 300); // showMessagePrompt("danger:startup", "420A3 Support", "
Sorry, We are currently in Pre-Release Testing and Not Open for New Registrations..Come Back Soon!
", "password-reset"); }); // end doc.ready function showResetMessagePromptExit(classname, title, msg) { var dw = 'smallBootboxWidth'; var box = bootbox.dialog({ closeButton: false, message: msg, title: title, buttons: { ok: { label: "Done", className: "btn btn-" + classname, callback: function () { bootbox.hideAll(); window.location.assign("/home"); } } } }) .on('shown.bs.modal', function (e) { }) .on('hide.bs.modal', function (e) { }) .find("div.modal-dialog").addClass(dw); } function getModalTermsPrompt() { var output = ''; var template_path = "/assets/templates/volta/a3/modal/template_terms_conditions.html?v=1.2"; $.ajax({ url: template_path, dataType: "text", success: function (data) { display = data; // do replacements... display = display.replace('$$modal_icon$$', "fa fa-info-circle"); display = display.replace('$$modal_icon_message$$', "Terms and Conditions"); var box = bootbox.dialog({ closeButton: false, size: 'large', className: "-info", message: display, buttons: { cancel: { label: "No, I Disagree", className: "-danger _margin-right-1x disagreeButton", callback: function () { setAgreeToTerms('no'); $('.tc-display').removeClass('fa-check').addClass('fa-remove') $('.tc-display').fadeIn(); $('.mytchelp').fadeIn(); box.modal('hide'); } }, ok: { label: "Yes, I Agree", className: '-info agreeButton', callback: function () { setAgreeToTerms('yes'); $('.tc-display').removeClass('fa-remove').addClass('fa-check'); $('.tc-display').fadeIn(); $('.mytchelp').fadeOut(); bootbox.hideAll(); } } } }) .on('shown.bs.modal', function (e) { //alignModal(); $('button[data-bb-handler="ok"]').focus(); }) .on('hide.bs.modal', function (e) { //$('#420A3').formValidation('revalidateField', 'agree'); }) .find("div.modal-dialog"); } }); return output; } //fa fa-exclamation-circle function showMessagePrompt(classname, title, msg, target) { var message_icon = ''; switch (classname) { case "danger": { message_icon = "fa fa-exclamation-circle"; message_icon = "fa fa-exclamation-circle fa-2x"; getModalContentPromptEx2("danger", message_icon, title, msg, target, 'OK'); break; } case "info": { message_icon = "fa fa-information"; getModalContentPromptEx2("danger", message_icon, title, msg, target, 'OK'); break; } case "success": { message_icon = "pe pe-check"; getModalContentPromptEx2("success", message_icon, title, msg, target, 'OK'); break; } } } function getModalContentPromptEx2(classname, icon, icon_message, body, target, btncaption) { //alert(target) var output = ''; var template_path = "/assets/templates/volta/a3/modal/template_prompt_default.html?v=" + getTicks(); $.ajax({ url: template_path, dataType: "text", success: function (data) { display = data; // do replacements... display = display.replace('$$modal_icon$$', icon); display = display.replace('$$modal_icon_message$$', icon_message); display = display.replace('$$modal_body$$', body); //var dw = 'smallBootboxWidth'; var box = bootbox.dialog({ closeButton: false, className: "-" + classname, message: display, buttons: { ok: { label: btncaption, className: '-light ' + classname, callback: function () { bootbox.hideAll(); //alert('wtf?'); window.location.assign("/home"); //alert('wtf2?'); } } } }).on('shown.bs.modal', function (e) { $('button[data-bb-handler="ok"]').focus(); }).on('hide.bs.modal', function (e) { }).find("div.modal-dialog"); } }); return output; }
function getOnlineTotal() { return $('#hf_CurrentOnlineCount').val() * 1; } function setOnlineTotal(inval) { $('#hf_CurrentOnlineCount').val(inval); $('.total_online').text(inval); $('.total_online_super').text(inval); } jQuery(document).ready(function () { ////$('.date').datetimepicker({ //// format: 'LT' ////}); //$('.counter').counterUp({ // delay: 10, // time: 1000 //}); //////////setCompanyLayoutHeight(); }); // - End doc.ready function showQuickNotification(classname, title, text, time, target) { $.gritter.add({ class_name: "-" + classname, title: title, text: text, time: time, before_open: function (e, manual_close) { } }); } $('body').on('click', '.a3-signout', function (e) { e.preventDefault(); $('body').find('a').addClass('disabled'); $('body').find('a').prop('disabled', 'disabled'); $('body').find('button').addClass('disabled'); $('body').find('input[type="button"]').addClass('disabled'); var $spinner = $(this).find('.a3-spin-text'); $spinner.html(''); $spinner.addClass('fa fa-spin fa-repeat'); setTimeout(function () { SignMeOut(getToken()); }, 100); }); //var delay = (function () { // var timer = 0; // return function (callback, ms) { // clearTimeout(timer); // timer = setTimeout(callback, ms); // }; //})(); //$(window).resize(function () { // delay(function () { // setCompanyLayoutHeight(); // }, 300); //}).trigger('resize'); //function setCompanyLayoutHeight() { // var winH = $(window).height(); // if (winH < 300) { // winH = 500; // } // //$('.content').css('margin-top', $('.navbar.-fixed-top').height() - ($('.content').css('padding-top').replace('px', '') * 1)); // //$('.company-container').css('min-height',winH); //} function getTicks() { var d = new Date(); return d.getTime(); } //// //function initSR() { // // $(function () { // // Declare a proxy to reference the hub. // var notifications = $.connection.a3notify; // // Create a function that the hub can call to broadcast messages. // notifications.client.growl = function (classname, name, message, time) { // showQuickNotification(classname, $('
').text(name).html(), $('
').text(message).html(), time, ""); // } // notifications.client.online = function (usercount) { // // Add the message to the page. // setOnlineTotal(usercount); // setTimeout(function () { // $('.total_online_super').text(usercount); // }, 1000); // }; // // Start the connection. // $.connection.hub.qs = 'a3system=true'; // $.connection.hub.start({ xdomain: true }).done(function () { // notifications.invoke('a3Api', getToken(), window.location.href, screen.width, screen.height); // }); // }); //}