var ageok = Cookies.get('420A3_AGE_VERIFY');
var state_timelines = [{"id":25,"state_code":"NV","country_code":"US","img":"\/assets\/img\/maps\/debug\/US_NV.png","companies":52,"locations":83, "points":[{"id":37,"heading":"November 2016 Ballot Question 2","body":"Legalized Recreational Marijuana use (21 )","link":"http:\/\/marijuana.nv.gov\/Legal\/SafetyInformation\/"}]
}]
;
var tagMap = {};
var i = null;
for (i = 0; state_timelines.length > i; i += 1) {
tagMap[state_timelines[i].state_code] = state_timelines[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; state_timelines.length > i; i += 1) {
if (state_timelines[i].state_code == tagName) {
return state_timelines[i];
break;
}
}
}
};
function setSelectedCountryPart(inval) {
$('#ContentPlaceHolder1_hf_SelectedCountry').val(inval);
}
function getSelectedCountryPart() {
return $('#ContentPlaceHolder1_hf_SelectedCountry').val() == '' ? null : $('#ContentPlaceHolder1_hf_SelectedCountry').val();
}
var gisdonefb = false;
// ------------------------------------------------------------------//
// 420A3© Setup Configuation
// ------------------------------------------------------------------//
// REQUIRED: url: your web page's unique url
// REQUIRED: theme: options - light or dark
// REQUIRED: id: unique 420A3© connector id
// ------------------------------------------------------------------//
var a3setup = { "url": "/" + getSelectedCountryPart() + "/" + getSelectedState() + "/home", "theme": "dark", "id": "420a3com-1" };
var stateslist;
////////////var stateslist = [
//////////// { "count": 0, "name": "West Virginia", "alpha2": "WV" },
//////////// { "count": 0, "name": "Wisconsin", "alpha2": "WI" },
//////////// { "count": 0, "name": "Wyoming", "alpha2": "WY" }
////////////]
function getSelectedState() {
return $('#ContentPlaceHolder1_hf_State').val();
}
function setSelectedState(inval) {
selstate = inval;
$('#ContentPlaceHolder1_hf_State').val(inval);
}
function getSelectedUSAStateDisplay() {
return selstatedisplay;
}
function setSelectedUSAStateDisplay(inval) {
selstatefull = inval;
selstatedisplay = inval;
}
function getSelectedUSAStateCount() {
return selstatecount;
}
function setSelectedUSAStateCount(inval) {
selstatecount = inval;
}
function f(inval) {
selstate = inval;
}
$('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();
}
else {
ageok = true;
Cookies.set('420A3_AGE_VERIFY', "true", { expires: 365 });
bootbox.hideAll();
//alert('?????');
window.location.assign("/united-states/" + getSelectedState() + "/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();
setSelectedState(target);
setSelectedUSAStateDisplay(state_display);
setSelectedUSAStateCount(state_count);
if (state_count != "0") {
setClearingView(CV_BYSTATE_RESULTS);
}
});
//////////$('body').on('click', 'text', function (e) {
////////// //alert("here1text");
////////// if ($(this).attr('class') != undefined) {
////////// alert("here2text");
////////// selstate = $(this).attr('class').split('_')[2];
////////// setSelectedState(selstate);
////////// //////switch (selstate) {
////////// ////// case "WA": {
////////// ////// setSelectedUSAStateDisplay("Washington");
////////// ////// break;
////////// ////// }
////////// ////// case "CO": {
////////// ////// setSelectedUSAStateDisplay("Colorodo");
////////// ////// break;
////////// ////// }
////////// ////// case "OR": {
////////// ////// setSelectedUSAStateDisplay("Oregon");
////////// ////// break;
////////// ////// }
////////// ////// case "CA": {
////////// ////// setSelectedUSAStateDisplay("California");
////////// ////// break;
////////// ////// }
////////// ////// case "NV": {
////////// ////// setSelectedUSAStateDisplay("Nevada");
////////// ////// break;
////////// ////// }
////////// //////}
////////// //////// TEMP TEMP TEMP TEMP TEMP..this "if" test block will come out..
////////// //////// to leaf only the message to show.
////////// //////if (hasTag(selstate)) {
////////// ////// ageok = Cookies.get('420A3_AGE_VERIFY');
////////// ////// if (ageok == undefined || ageok == false) {
////////// ////// e.preventDefault();
////////// ////// setTimeout(function () {
////////// ////// window.location.assign("/verify-age")
////////// ////// }, 600);
////////// ////// }
////////// //////}
////////// }
//////////});
//////////$('body').on('click', 'path', function (e) {
////////// alert("here1path");
////////// if ($(this).attr('class') != undefined) {
////////// alert("here2path");
////////// selstate = $(this).attr('class').split('_')[2];
////////// setSelectedState(selstate);
////////// //switch (selstate) {
////////// // case "WA": {
////////// // setSelectedUSAStateDisplay("Washington");
////////// // break;
////////// // }
////////// // case "CO": {
////////// // setSelectedUSAStateDisplay("Colorodo");
////////// // break;
////////// // }
////////// // case "OR": {
////////// // setSelectedUSAStateDisplay("Oregon");
////////// // break;
////////// // }
////////// // case "CA": {
////////// // setSelectedUSAStateDisplay("California");
////////// // break;
////////// // }
////////// // case "NV": {
////////// // setSelectedUSAStateDisplay("Nevada");
////////// // break;
////////// // }
////////// //}
////////// if (hasTag(selstate)) {
////////// //ageok = Cookies.get('420A3_AGE_VERIFY');
////////// //if (ageok == undefined || ageok == false) {
////////// // e.preventDefault();
////////// // window.location.assign('/verify-age');
////////// //}
////////// }
////////// }
//////////});
var userCancel = false;
function showAgeVerifyZZDELETEME(whichstate) {
var output = '';
var template_path = "/assets/templates/volta/a3/modal/_template_age_verify_state.html?v=1.2";
$.ajax({
url: template_path,
dataType: "text",
success: function (data) {
var display = data;
// do replacements...
display = display.replace('$$modal_icon$$', "fa fa-info-circle");
display = display.replace('$$modal_icon_message$$', "Terms and Conditions");
display = display.replace('$$whichstate$$', whichstate);
var box = bootbox.dialog({
size: 'large',
closeButton: false,
className: '-info',
message: display,
buttons: {
cookie: {
label: "Learn about the cookies we use",
className: "-info _margin-right-1x cookieButton",
callback: function () {
window.location.assign("/cookie-policy");
}
},
cancel: {
label: "No, I Cannot See This",
className: "-danger _margin-right-1x disagreeButton",
callback: function () {
ageVerifyY(false, whichstate);
}
},
ok: {
label: "Yes, Let me In",
className: '-success agreeButton',
callback: function () {
ageVerifyY(true, whichstate);
}
}
}
}).on('shown.bs.modal', function (e) {
//setTimeout(function () {
// alignModal();
$('button[data-bb-handler="ok"]').focus();
//}, 0);
}).on('hide.bs.modal', function (e) {
});
}
});
}
$('body').on('click', '.join-now', function (e) {
// showBackground();
e.preventDefault();
window.location.assign("/account/user/register?ReturnUrl=join-now");
});
function hideLegend() {
$('.legend-col').addClass('animated slideLeft').fadeOut(function () {
});
$('.map-close').fadeIn(function () {
$('.map-col').addClass('-md-12');
});
}
function showLegend() {
$('.map-close').fadeOut(1210);
$('.map-col').removeClass('-md-12');
$('.legend-col').addClass('-md-3').fadeIn(1000, function () {
});
}
function getRootPath() {
return $('#ContentPlaceHolder1_hf_RootPath').val();
}
function setRootPath(inval) {
$('#ContentPlaceHolder1_hf_RootPath').val(inval);
}
function getRootDisplay() {
return $('#ContentPlaceHolder1_hf_RootDisplay').val();
}
function setRootDisplay(inval) {
$('#ContentPlaceHolder1_hf_RootDisplay').val(inval);
}
$(document).ready(function () {
$('.whichone-display').text(getRootDisplay());
//super-leader-board
//////////var data = stateslist;
//////////var tout = '
';
//////////tout += '
'
//////////var debugctr = 1;
//////////for (var i in data) {
////////// if ((i % 5) == 0) {
////////// tout += '
'
////////// console.log(debugctr + 'r ' + getTicks());
////////// 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) })()
// });
// }
// }
//});
if (getRootPath() !== 'home') {
// do I need this????
//setTimeout(function () {
// $('.btn-toolbarz-item[data-target="' + getRootPath() + '"]').click();
//}, 0)
}
//setTimeout(function () {
// initFauxButton2();
//}, 600);
var tagme = getTag(getSelectedState());
//alert('and then?');
// {
// "state": "WA",
// "id": "timeline_WA",
// "img": "/assets/img/maps/WA.png",
// "legend": [{
// "companies": 1674,
// "locations": 1832,
// "categories": 11
// }],
// "points": [
// { "heading": "November 1998 I-692", "body": "Washington voters legalized Medical Marijuana use for qualified patients only.", "link": "" },
// { "heading": "November 2012 I-502", "body": "Washington voters legalized marijuana for retail purchase (21+)", "link": "" }
// ]
//},
var build_tl = '';
var build_lg = '';
build_tl += '
';
//alert(build_tl);
var leg = tagme.legend;
var l
var pts = tagme.points;
var p;
var pctr = 1;
for (p in pts) {
if (pts.length == 1) {
build_tl += '
';
build_tl += '
' + pts[p].heading + '
';
build_tl += '
' + pts[p].body + '
';
if (pts[p].link !== '') {
build_tl += '';
}
build_tl += "";
}
else {
if (pctr == 1) {
build_tl += '
';
build_tl += '
' + pts[p].heading + '
';
build_tl += '
' + pts[p].body + '
';
if (pts[p].link !== '') {
build_tl += '';
}
build_tl += "";
}
else {
build_tl += '
';
build_tl += '
' + pts[p].heading + '
';
build_tl += '
' + pts[p].body + '
';
if (pts[p].link !== '') {
build_tl += '';
}
build_tl += "";
}
}
pctr++;
}
build_tl += "
";
$('.timeline-template').append(build_tl);
var build_lg_i = '';
//build_lg_i = '

';
//build_lg += '
';
build_lg += '
';
build_lg += '
';
build_lg += '- ' + tagme.companies + ' Companies
';
build_lg += '- ' + tagme.locations + ' Locations
';
// commented out 12/20/2020 to streamline build, may add back later..
//build_lg += '- ' + leg[l].categories + ' Categories
';
build_lg += '
'
//$('.main_panel_wrapper').attr('style', "background: url("+ tagme.img +") no-repeat;background-size: cover;opacity: 1;z-index: 0;");
//for (l in leg) {
// build_lg_i = '

';
// build_lg += '
';
// build_lg += '
';
// build_lg += '- ' + leg[l].companies + ' Companies
';
// build_lg += '- ' + leg[l].locations + ' Locations
';
// // commented out 12/20/2020 to streamline build, may add back later..
// //build_lg += '- ' + leg[l].categories + ' Categories
';
// build_lg += '
'
//}
//$('.legend-template-wrap').append(build_lg_i);
$('.legend-template').append(build_lg);
$('#simple_state').attr('src', $('#simple_state').data('original'));
//showDefaultAds();
}); //end ready
$('video').click(function () {
this[this.paused ? 'play' : 'pause']();
});
//$.fn.typerfb = function (text, options) {
// options = $.extend({}, {
// char: ' ',
// delay: 1000,
// duration: 800,
// endless: false
// }, options || text);
// text = $.isPlainObject(text) ? options.text : text;
// var elem = $(this),
// isTag = false,
// c = 0;
// gisdonefb = false;
// (function typetext(i) {
// var e = ({ string: 1, number: 1 }[typeof text] ? text : text[i]) + options.char,
// char = e.substr(c++, 1);
// if (char === '<') { isTag = true; }
// if (char === '>') { isTag = false; }
// elem.html(e.substr(0, c));
// if (c <= e.length) {
// if (isTag) {
// typetext(i);
// } else {
// setTimeout(typetext, options.duration / 10, i);
// }
// } else {
// c = 0;
// i++;
// if (i === text.length && !options.endless) {
// gisdonefb = true;
// initFauxButton();
// return;
// } else if (i === text.length) {
// i = 0;
// }
// setTimeout(typetext, options.delay, i);
// }
// })(0);
//};
//function initFauxButton() {
// if (gisdonefb === true) {
// gisdonefb = false;
// //$('#artists').html("");
// setTimeout(function () {
// initFauxButton();
// }, 5000);
// }
// else {
// $('#fauxbtn').typerfb(
// ['
cannabis search redefined
',
// '
pick a category above to start search...
',
// '
join now
']);
// }
//}
Cannabis
Search
Redefined
SAFE / SIMPLE / SECURE
SUBSCRIBE TO NEWSLETTER
Get monthly updates and free resources.
function setSelectedCountryPart(inval) {
$('#hf_SelectedCountry').val(inval);
}
function getSelectedCountryPart() {
return $('#hf_SelectedCountry').val() == '' ? null : $('#hf_SelectedCountry').val();
}
if (isBot() == false) {
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() {
////////
////////}
$('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/" + getSelectedCountryPart() + "/" + $('.btn-toolbarz-item.-active').data('target') + '/map'; //, "_blank";
break;
}
case "by-location": {
window.location.href = "/search/" + getSelectedCountryPart() +"/" + $('.btn-toolbarz-item.-active').data('target') + '/location'; //, "_blank";
break;
}
case "by-voice": {
window.location.href = "/the-cannabis-retriever"; //, "_blank";
break;
}
case "by-list": {
window.location.href = "/search/"+ getSelectedCountryPart() +"/" + $('.btn-toolbarz-item.-active').data('target') + '/list'; //, "_blank";
break;
}
case "by-map-state": {
window.location.href = "/search/" + getSelectedCountryPart() + "/" + getSelectedState() + "/" + $('.btn-toolbarz-item.-active').data('target') + '/map';
break;
}
case "by-list-state": {
window.location.href = "/search/" + getSelectedCountryPart() +"/" + getSelectedState() + "/" + $('.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/" + getSelectedCountryPart() + "/" + $('.btn-toolbarz-item.-active').data('target') + '/map');
}, 100);
break;
}
case "by-location": {
skipthiscode = true;
setTimeout(function () {
window.location.assign("/search/"+ getSelectedCountryPart()+ "/" + $('.btn-toolbarz-item.-active').data('target') + '/location');
}, 100);
break;
}
case "by-voice": {
skipthiscode = true;
setTimeout(function () {
window.location.href = "/the-cannabis-retriever"; //, "_blank";
}, 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);
});
}
}