Search our Listings Nationwide or By LocationChoose a Category from the Menu or a State from the Map to Start
×
Welcome to 420A3.com
We are the newest B2B, B2C to search engine for anything Cannabis, Marijuana, or 420 related.
To align with $$whichstate$$ States Laws on cannabis you need to be at least 21 years old, or a valid medical marijuana patient to continue.
420A3 Uses Cookies to verify you have agreed these terms, and enhance your experience on this site. By clicking "Yes" you agree to these terms.
ageok = Cookies.get('420A3_AGE_VERIFY');
var tpj = jQuery;
var homeSlider;
var mystates = [
{ "state": "AK", "description": "Alaska" },
{ "state": "AR", "description": "Arkansas" },
{ "state": "AZ", "description": "Arizona" },
{ "state": "CA", "description": "California" },
{ "state": "CO", "description": "Colorodo" },
{ "state": "CT", "description": "Connecticut" },
{ "state": "DC", "description": "Dist. Of Columbia" },
{ "state": "DE", "description": "Delaware" },
{ "state": "FL", "description": "Florida" },
{ "state": "HI", "description": "Hawaii" },
{ "state": "IA", "description": "Iowa" },
{ "state": "IL", "description": "Illinois" },
{ "state": "LA", "description": "Louisiana" },
{ "state": "MA", "description": "Massachusets" },
{ "state": "MD", "description": "Maryland" },
{ "state": "ME", "description": "Maine" },
{ "state": "MI", "description": "Michigan" },
{ "state": "MN", "description": "Minnesota" },
{ "state": "MT", "description": "Montana" },
{ "state": "ND", "description": "North Dakota" },
{ "state": "NH", "description": "New Hampshire" },
{ "state": "NJ", "description": "New Jersey" },
{ "state": "NM", "description": "New Mexico" },
{ "state": "NV", "description": "Nevada" },
{ "state": "NY", "description": "New York" },
{ "state": "OH", "description": "Ohio" },
{ "state": "OK", "description": "Oklahoma" },
{ "state": "OR", "description": "Oregon" },
{ "state": "PA", "description": "Pennsylvania" },
{ "state": "RI", "description": "Rhode Island" },
{ "state": "TX", "description": "Texas" },
{ "state": "VT", "description": "Vermont" },
{ "state": "WA", "description": "Washington" }]
var tagMap = {};
var i = null;
for (i = 0; mystates.length > i; i += 1) {
tagMap[mystates[i].state] = mystates[i];
}
var hasTag = function (tagName) {
if (tagMap[tagName]) {
return true;
}
else {
return false;
}
};
var getTag = function (tagName) {
if (tagMap[tagName]) {
var i = null;
for (i = 0; mystates.length > i; i += 1) {
if (mystates[i].state == tagName) {
return mystates[i];
break;
}
}
}
};
//map-help
$('body').on('click', '.map-help', function (e) {
e.preventDefault();
$(this).fadeOut();
$('.spec-close').fadeIn(function () {
$('.temp-legend').fadeIn();
});
});
$('body').on('click', '.spec-close', function (e) {
e.preventDefault();
$('.spec-close').fadeOut(function () {
$(".map-help").fadeIn();
$('.temp-legend').fadeOut();
});
});
$('body').on('click', 'text', function (e) {
$('button').prop('disabled', 'disabled');
$('a').addClass('disabled');
$('a').prop('disabled', 'disabled');
e.preventDefault();
if ($(this).attr('class') != undefined) {
selstate = $(this).attr('class').split('_')[2];
$('button').addClass('disabled');
if (hasTag(selstate)) {
//var tg = getTag(selstate);
//setSelectedUSAStateDisplay(tg.description);
//alert($('.btn-toolbarz-item-slide.-active').data('target'));
if ($('.btn-toolbarz-item.-active').data('target') !== 'home' && $('.btn-toolbarz-item.-active').data('target') !== undefined) {
window.location.assign("/search/united-states/" + selstate + "/" + $('.btn-toolbarz-item.-active').data('target') + '/map');
}
else {
window.location.assign("/united-states/" + selstate + "/home");
}
}
else {
window.location.href = window.location.href;
}
}
else {
window.location.href = window.location.href;
}
});
$('body').on('click', 'path', function (e) {
e.preventDefault();
$('button').prop('disabled', 'disabled');
$('a').addClass('disabled');
$('a').prop('disabled', 'disabled');
if ($(this).attr('class') != undefined) {
selstate = $(this).attr('class').split('_')[2];
if (hasTag(selstate)) {
if ($('.btn-toolbarz-item.-active').data('target') !== 'home' && $('.btn-toolbarz-item.-active').data('target') !== undefined) {
window.location.assign("/search/united-states/" + selstate + "/" + $('.btn-toolbarz-item-slide.-active').data('target') + '/map');
}
else {
window.location.assign("/united-states/" + selstate + "/home");
}
}
else {
window.location.href = window.location.href;
}
}
else {
window.location.href = window.location.href;
}
});
$('body').on('click', 'pathx', function (e) {
e.preventDefault();
e.stopImmediatePropagation();
e.stopPropagation();
if ($(this).attr('class') == undefined) {
setTimeout(function () {
simplemaps_usmap.refresh();
}, 100);
}
});
function ageVerifyYDELETEME(inval, whichone) {
var value = inval;
var st1 = whichone;
if (value == false) {
ageok = false;
Cookies.set('420A3_AGE_VERIFY', "false", { expires: -1 });
bootbox.hideAll();
$('body').append('
');
}
else {
ageok = true;
if (whichone == '') {
Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
} else {
Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
if ($('.btn-toolbarz-item-slide.-active').data('target') !== 'home') {
window.location.assign("/search/united-states/" + st1 + "/" + $('.btn-toolbarz-item-slide.-active').data('target') + '/map');
}
else {
window.location.assign("/united-states/" + st1 + "/home");
}
}
bootbox.hideAll();
}
}
function ageVerifyYEx(inval, whichone) {
var value = inval;
var st1 = whichone;
if (value == false) {
ageok = false;
if (whichone == '') {
Cookies.set('420A3_AGE_VERIFY', "false", { expires: -1 });
}
else {
Cookies.set('420A3_AGE_VERIFY', "false", { expires: -1 });
}
bootbox.hideAll();
$('body').append('
');
}
else {
ageok = true;
if (whichone == '') {
Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
} else {
Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
if ($('.btn-toolbarz-item-slide.-active').data('target') !== 'home') {
window.location.assign("/united-states/" + selstate + "/" + $('.btn-toolbarz-item-slide.-active').data('target'));
}
else {
window.location.assign("/united-states/" + selstate + "/home");
}
}
bootbox.hideAll();
}
}
//////////$('body').on('click', '.btn-age-verify-y', function (e) {
////////// e.preventDefault();
////////// var value = $(this).data('value');
////////// if (value == false) {
////////// ageok = false;
////////// Cookies.set('420A3_AGE_VERIFY', "false", { expires: -1 });
////////// window.location.href = "/home";
////////// }
////////// else {
////////// ageok = true;
////////// Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
////////// bootbox.hideAll();
////////// }
//////////});
//////////$('body').on('click', '.btn-age-verify', function (e) {
////////// e.preventDefault();
////////// var value = $(this).data('value');
////////// if (value == false) {
////////// ageok = false;
////////// Cookies.set('420A3_AGE_VERIFY', "false", { expires: -1 });
////////// bootbox.hideAll();
////////// simplemaps_usmap.load();
////////// }
////////// else {
////////// ageok = true;
////////// Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
////////// bootbox.hideAll();
////////// if ($('.btn-toolbarz-item-slide.-active').data('target') !== 'home') {
////////// window.location.assign("/united-states/" + selstate + "/" + $('.btn-toolbarz-item-slide.-active').data('target'));
////////// }
////////// else {
////////// window.location.assign("/united-states/" + selstate + "/home");
////////// }
////////// }
//////////});
$('body').on('click', '.state-abbr', function (e) {
e.preventDefault();
var target = $(this).data('target');
var state_count = $(this).find('.state-counter').text();
var state_display = $(this).find('.state-display').text();
//alert('click .state-abbr:=' + target);
setSelectedUSAState(target);
setSelectedUSAStateDisplay(state_display);
setSelectedUSAStateCount(state_count);
selstate = target;
//alert(selstate);
if (hasTag(selstate)) {
if ($('.btn-toolbarz-item.-active').data('target') !== 'home') {
window.location.assign("/united-states/" + selstate + "/" + $('.btn-toolbarz-item.-active').data('target'));
}
else {
window.location.assign("/united-states/" + selstate + "/home");
}
}
});
$('body').on('click', '.join-now', function (e) {
e.preventDefault();
$(this).html('
');
setTimeout(function () {
window.location.assign("/account/user/register?ReturnUrl=join-now");
}, 100);
});
$('video').click(function () {
this[this.paused ? 'play' : 'pause']();
});
$(document).ready(function () {
$(".super-leader-board").hover(function () {
var timer = $find('ContentPlaceHolder1_Timer1');
timer._stopTimer();
if (g_bgtype !== 'image') {
$('video').click();
}
//$('.slide-1-img').css("-webkit-animation-play-state", "paused");
//$('.slide-1-img').css('animation-play-state', 'paused');
}, function () {
var timer = $find('ContentPlaceHolder1_Timer1');
timer._startTimer();
if (g_bgtype !== 'image') {
$('video').click();
}
//$('.slide-1-img').css("-webkit-animation-play-state", "running");
// $('.slide-1-img').css('animation-play-state', 'running');
});
$(".featured-ad").hover(function () {
var timer = $find('ContentPlaceHolder1_Timer1');
timer._stopTimer();
if (g_bgtype !== 'image') {
$('video').click();
}
//$('.slide-1-img').css("-webkit-animation-play-state", "paused");
//$('.slide-1-img').css('animation-play-state', 'paused');
}, function () {
var timer = $find('ContentPlaceHolder1_Timer1');
timer._startTimer();
if (g_bgtype !== 'image') {
$('video').click();
}
// $('.slide-1-img').css("-webkit-animation-play-state", "running");
// $('.slide-1-img').css('animation-play-state', 'running');
});
var data = stateslist;
var tout = '';
tout += '
'
var debugctr = 1;
for (var i in data) {
if ((i % 5) === 0) {
tout += '
'
debugctr++;
}
var id = data[i].name;
var name = data[i].alpha2;
var count = data[i].count;
tout += '
toe) && (tos < boe)) {
// // The element is visible, do something
// if (donce === 0) {
// donce = 1;
// $(".a3-wait-display").show(function () {
// (function () { var n = document; s = n.createElement("script"); s.type = "text/javascript"; s.async = !0; s.src = "/a3comments/embed.v1.min.js"; s.setAttribute("data-timestamp", +new Date); (n.getElementsByTagName("head")[0] || n.getElementsByTagName("body")[0]).appendChild(s) })()
// });
// }
// }
//});
setTimeout(function () {
$('.spec-close').fadeOut(function () {
$(".map-help").fadeIn();
$('.temp-legend').fadeOut();
});
}, 6000);
homeSlider = tpj("#rev_slider_1052_1").show().revolution({
sliderType: "standard",
sliderLayout: "auto",
jsFileLocation: "revolution/js/",
sliderLayout: "auto",
dottedOverlay: "none",
delay: 9000,
navigation: {
keyboardNavigation: "off",
keyboard_direction: "horizontal",
mouseScrollNavigation: "off",
mouseScrollReverse: "default",
onHoverStop: "on",
touch: {
touchenabled: "on",
swipe_threshold: 75,
swipe_min_touches: 1,
swipe_direction: "horizontal",
drag_block_vertical: false
}
},
viewPort: {
enable: true,
outof: "pause",
visible_area: "80%",
presize: false
},
gridwidth: [1230],
gridheight: [600],
lazyType: "none",
shadow: 0,
spinner: "off",
stopLoop: "on",
stopAfterLoops: 0,
stopAtSlide: 1,
shuffle: "off",
autoHeight: "off",
hideThumbsOnMobile: "off",
hideSliderAtLimit: 0,
hideCaptionAtLimit: 0,
hideAllCaptionAtLilmit: 0,
debugMode: false,
fallbacks: {
simplifyAll: "off",
nextSlideOnWindowFocus: "off",
disableFocusListener: false,
}
});
//////setTimeout(function () {
////// //
////// //
////// if ($('input.a3_search').attr('style').indexOf('text-align: inherit') > 0) {
////// var newstyle = $('input.a3_search').attr('style');
////// newstyle = newstyle.replace('text-align: inherit', 'text-align:left');
////// newstyle = newstyle.replace('padding: 14px 13px', 'padding: 14px 13px;padding-left:65px;');
////// //
////// $('input.a3_search').attr('style',newstyle);
////// }
////// //$('input.a3_search').attr('style', 'border-width: 1px 1px 2px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255, 0.5);transition: none 0s ease 0s;text-align: inherit;line-height: 53px;margin: 0px;padding: 14px 13px;letter-spacing: 0px;font-weight: 100;font-size: 43px;)');
////// //$('small.kill-style').removeAttr('style');
//////}, 1000);
////alert('b4');
////gASL();
////alert('atr');
//
//slide-1-img-slider
$('body').on('click', '.btn-toolbarz-item-slide.kill-style', function (e) {
var target = $(this).data('target');
$('.slide-1-img-slider').slideUp();
$('a.btn-toolbarz-item[data-target="' + target + '"]').click();
});
//a3-slide-goto-landing
//a3-nationwide-slider-block
$('body').on('click', '.a3-slide-goto-landingx', function (e) {
e.preventDefault();
$('#ContentPlaceHolder1_voiceico').show();
homeSlider.revshowslide(1);
});
$('body').on('click', '.a3-slide-goto-landing', function (e) {
e.preventDefault();
$('#ContentPlaceHolder1_voiceico').show();
homeSlider.revshowslide(1);
});
$('body').on('click', '.a3-slider-choose', function (e) {
e.preventDefault();
var target = $(this).data('target');
switch (target) {
case "quick-search": {
window.location.assign("/quick-search?ReturnUrl=home");
break;
}
case "join-now": {
window.location.assign("/join-now?ReturnUrl=home");
break;
}
case "nationwide": {
$("#ContentPlaceHolder1_voiceico").hide();
homeSlider.revshowslide(2);
//$('.a3-resource-button-block').fadeOut(function () {
// $('.a3-nationwide-slider-block').fadeIn(function () {
// $('.kill-style').removeAttr('style');
// });
//});
break;
}
case "by-state": {
$("#ContentPlaceHolder1_voiceico").hide();
$('#map').hide();
homeSlider.revshowslide(3);
$('.new-map-wrapper').fadeIn(600);
$('#map').fadeIn(800);
break;
}
case "by-location": {
window.location.href = "/search/united-states/" + $('.btn-toolbarz-item.-active').data('target') + '/location'; //, "_blank";
break;
}
}
});
//a3-nationwide-slider-block
//a3-resource-button-block
}); //end ready
//
showVerifyAge();
$('body').on('click', '.btn-age-verify-y', function (e) {
e.preventDefault();
var value = $(this).data('value');
switch (value) {
case false: {
ageok = false;
Cookies.set('420A3_AGE_VERIFY', "false", { expires: -1 });
window.location.href = "/quick-search";
break;
}
case true: {
ageok = true;
Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
window.location.href = window.location.href;
break;
}
case "cookie": {
window.location.assign("/cookie-policy");
break;
}
}
});
function getTicks() {
var d = new Date();
return d.getTime();
}
////////
////////function initSR() {
////////
////////}
$(document).ready(function () {
var videos = [
{
poster: '/Assets/plugins/backvision/demo1/videos/office.png',
webm: '/Assets/plugins/backvision/demo1/videos/office.webm',
mp4: '/Assets/plugins/backvision/demo1/videos/office.mp4'
},
{
poster: '/Assets/plugins/backvision/demo1/videos/working.png',
webm: '/Assets/plugins/backvision/demo1/videos/working.webm',
mp4: '/Assets/plugins/backvision/demo1/videos/working.mp4'
}
];
//$('#video-header').backvision({
// videos: videos,
// background: '#000',
// iconsColor: '#fff',
// preloaderColor: '#a5c4b8',
// banners: true,
// progress: false,
// offsetMethod: 'quad',
// navigation: false, // show navigation next/prev arrows
//});
});
$('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);
});
$('body').on('click', '.view-toolbar-item', function (e) {
e.preventDefault();
var dtarget = $(this).data('target');
switch (dtarget) {
case "pick-state-default": {
$('.clearing-container').fadeOut(function () {
$('.map-container').fadeIn(function () {
});
});
break;
}
case "pick-view-national": {
setClearingView(CV_NATIONAL_RESULTS);
break;
}
case "pick-view-footer": {
setClearingView(CV_BYSTATE_LIST)
break;
}
case "by-state": {
setClearingView(CV_BYSTATE_LIST);
break;
}
case "by-map": {
window.location.href = "/search/united-states/" + $('.btn-toolbarz-item.-active').data('target') + '/map'; //, "_blank";
break;
}
case "by-location": {
window.location.href = "/search/united-states/" + $('.btn-toolbarz-item.-active').data('target') + '/location'; //, "_blank";
break;
}
case "by-list": {
window.location.href = "/search/united-states/" + $('.btn-toolbarz-item.-active').data('target') + '/list'; //, "_blank";
break;
}
case "by-map-state": {
window.location.href = "/search/united-states/" + getSelectedUSAState() + "/" + $('.btn-toolbarz-item.-active').data('target') + '/map';
break;
}
case "by-list-state": {
window.location.href = "/search/united-states/" + getSelectedUSAState() + "/" + $('.btn-toolbarz-item.-active').data('target') + '/list';
break;
}
default: {
skipthiscode = true;
showMessagePrompt("danger", "WHOOPS", "Mispelled or Missing Data Target:=" + dtarget);
break;
}
}
});
function hideMorphDropdown() {
// morphdropdown bug fix..need to apply to all links...
//var $list = $('div.morph-dropdown-list');
//$list.css({
// '-moz-transform': 'translateX(' + 0 + 'px)',
// '-webkit-transform': 'translateX(' + 0 + 'px)',
// '-ms-transform': 'translateX(' + 0 + 'px)',
// '-o-transform': 'translateX(' + 0 + 'px)',
// 'transform': 'translateX(' + 0 + 'px)',
// 'width': 0 + 'px',
// 'height': 0 + 'px'
//});
setTimeout(function () {
$("body").trigger("click");
}, 600);
//alert('and then3?');
}
jQuery("body").click(function () {
var $list = $('div.morph-dropdown-list');
$list.css({
'-moz-transform': 'translateX(' + 0 + 'px)',
'-webkit-transform': 'translateX(' + 0 + 'px)',
'-ms-transform': 'translateX(' + 0 + 'px)',
'-o-transform': 'translateX(' + 0 + 'px)',
'transform': 'translateX(' + 0 + 'px)',
'width': 0 + 'px',
'height': 0 + 'px'
});
});
//- stay in touch..not sure if Ken will keep paying for us on slack.
// a3-go-nav
$('body').on('click', '.a3-go-nav', function (e) {
e.preventDefault();
var skipthiscode = false;
$('.goup-arrow')[0].click();
//$(this).addClass('-active');
var dtarget = $(this).data('target');
gWhichOne = dtarget;
$('.btn-toolbarz-item').removeClass('-active');
$('.btn-toolbarz-tbl').find('.btn-toolbarz-item[data-target="home"]').addClass('-active');
setClearingView(CV_DEFAULT);
//alert(gWhichOne);
});
$('body').on('click', '.btn-toolbarz-item', function (e) {
e.preventDefault();
var skipthiscode = false;
$('.goup-arrow')[0].click();
//alert('and here we go');
if (($(this).data('target') === 'home') && (IsHome() === 'true')) {
gWhichOne = 'home';
$('.btn-toolbarz-item').removeClass('-active');
$('.btn-toolbarz-tbl').find('.btn-toolbarz-item[data-target="home"]').addClass('-active');
setClearingView(CV_DEFAULT);
}
else {
if ($('.slide-1-img-slider').css('display') !== 'none') {
$('.slide-1-img-slider').slideUp();
}
//$('a.btn-toolbarz-item[data-target="' + target + '"]').click();
$('.btn-toolbarz-item').removeClass('-active');
$('.btn-toolbarz-item[data-target="' + $(this).data('target') + '"]').addClass('-active');
//$(this).addClass('-active');
var dtarget = $(this).data('target');
gWhichOne = dtarget;
switch (dtarget) {
case "home": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/home");
}, 600);
break;
}
case "medical": {
setCompanyCountAll(dtarget);
break;
}
case "retail": {
setCompanyCountAll(dtarget);
break;
}
case "delivery": {
setCompanyCountAll(dtarget);
break;
}
case "transport": {
setCompanyCountAll(dtarget);
break;
}
case "cbd": {
setCompanyCountAll(dtarget);
break;
}
case "lab": {
setCompanyCountAll(dtarget);
break;
}
case "processor": {
setCompanyCountAll(dtarget);
break;
}
case "producer": {
setCompanyCountAll(dtarget);
break;
}
case "other": {
setCompanyCountAll(dtarget);
break;
}
case "product": {
setCompanyCountAll(dtarget);
break;
}
case "wholesale": {
setCompanyCountAll(dtarget);
break;
}
case "hardware": {
setCompanyCountAll(dtarget);
break;
}
case "software": {
setCompanyCountAll(dtarget);
break;
}
case "consultant": {
setCompanyCountAll(dtarget);
break;
}
case "service": {
setCompanyCountAll(dtarget);
break;
}
case "media": {
setCompanyCountAll(dtarget);
break;
}
case "artist": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/artists-photographers-videographers?ReturnUrl=home");
}, 100);
break;
}
case "blog": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/blog");
}, 100);
break;
}
case "advertise": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/ads/sales?ReturnUrl=home");
}, 100);
break;
}
case "by-map": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/search/united-states/" + $('.btn-toolbarz-item.-active').data('target') + '/map');
}, 100);
break;
}
case "by-location": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/search/united-states/" + $('.btn-toolbarz-item.-active').data('target') + '/location');
}, 100);
break;
}
default: {
skipthiscode = true;
showMessagePrompt("danger", "WHOOPS", "Mispelled or Missing Data Target:=" + dtarget);
break;
}
}
if (skipthiscode === false) {
$('.map-container').hide(function () {
$('.clearing-container').fadeIn();
});
}
}
//hideMorphDropdown();
//setTimeout(function () {
// $("body").trigger("click");
//}, 100);
});
//$('body').on('click', '#sidebarCollapse-left', function (e) {
// e.preventDefault();
// $('#sidebar-left').toggleClass('active');
// if ($('#sidebar-left').hasClass('active') == true) {
// if ($('#fancy-comments-footer').hasClass('active') == false) {
// $('#fancy-comments-footer').addClass('active');
// }
// }
// else {
// if ($('#fancy-comments-footer').hasClass('active') == true) {
// $('#fancy-comments-footer').removeClass('active');
// }
// }
// setTimeout(function () {
// $('.sidebar-left-display').toggleClass('active');
// $(this).toggleClass('active');
// }, 100);
//});
//$('body').on('click', '.sidebar-left-display', function (e) {
// e.preventDefault();
// $('#sidebar-left').toggleClass('active');
// if ($('#sidebar-left').hasClass('active') == true) {
// if ($('#fancy-comments-footer').hasClass('active') == false) {
// $('#fancy-comments-footer').addClass('active');
// }
// }
// else {
// if ($('#fancy-comments-footer').hasClass('active') == true) {
// $('#fancy-comments-footer').removeClass('active');
// }
// }
// $(this).toggleClass('active');
//});
//$('body').on('click', '#sidebarCollapse-right', function (e) {
// e.preventDefault();
// $('#sidebar-right').toggleClass('active');
// if ($('#sidebar-right').hasClass('active') == true) {
// if ($('#fancy-links-footer').hasClass('active') == false) {
// $('#fancy-links-footer').addClass('active');
// }
// }
// else {
// if ($('#fancy-links-footer').hasClass('active') == true) {
// $('#fancy-links-footer').removeClass('active');
// }
// }
// setTimeout(function () {
// $('.sidebar-right-display').toggleClass('active');
// $(this).toggleClass('active');
// }, 400);
//});
//$('body').on('click', '.sidebar-right-display', function (e) {
// e.preventDefault();
// $('#sidebar-right').toggleClass('active');
// if ($('#sidebar-right').hasClass('active') == true) {
// if ($('#fancy-links-footer').hasClass('active') == false) {
// $('#fancy-links-footer').addClass('active');
// }
// }
// else {
// if ($('#fancy-links-footer').hasClass('active') == true) {
// $('#fancy-links-footer').removeClass('active');
// }
// }
// $(this).toggleClass('active');
//});
$('body').on('click', 'a.admin-theme-change', function (e) {
e.preventDefault();
var newtheme = $(this).data('change-theme');
$('#theme_style').attr('href', '/assets/templates/volta/assets/css/application/themes/' + newtheme + '.css');
});
$('body').on('click', '.alert-icon', function (e) {
e.preventDefault();
var target = $(this).data('target');
if (target === undefined) {
// do nothing
}
else {
window.location.assign("/artists?ReturnUrl=/home");
}
});
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 showVerifyAge() {
var wh = $(window).height();
var calcx = wh;
var bdy = '';
if (getAllowed() === false) {
$.get("/assets/templates/ageprompttemplate.html", function (data) {
bdy = data.replace('$$calcx$$', calcx);
$('body').prepend(bdy);
});
}
}