The products available on Element Vape are age-restricted and intended
for adults of legal smoking age only. All orders placed on the website will
be verified by an industry leading Age Verification software for validation.
By entering our website, you affirm that you are of legal smoking age in your
jurisdication and you agree to be Age Verified.
');
$('#customer-email-fieldset').find('#customer-email').addClass('mage-error');
$('#customer-email-fieldset').find('#customer-email').focus();
}
if ($('#customer-email-fieldset').find('#customer-email').hasClass('mage-error')) {
$('#customer-email-fieldset').find('#customer-email').focus();
}
var display_msg = $('.mage-error').css('display');
});
$("div.authentication .authentication-link.authentication-link-popup a").click(function(){
setTimeout(function(){
$("aside.modal-custom.authentication-dropdown.custom-slide._show div.modal-inner-wrap form input#login-email").focus();
},500);});
//End Checkout
var expDate = new Date();
expDate.setTime(expDate.getTime() + (60 * 60 * 1000)); // add 15 minutes
$(document).on('focus', '.skip-main-content', function () {
$('.desktop-view-menu .static-wrap .evp-menu .groupmenu .evp-new-arrivals a.menu-link').attr('id', 'skip-to-navigation');
});
$(document).on('focus', '.qs-button', function () {
$(this).parent().parent().css({
"-moz-transform": "translateY(0)",
"-webkit-transform": "translateY(0)",
"-o-transform": "translateY(0)",
"transform": "translateY(0)",
"-webkit-opacity": "1",
"-moz-opacity": "1",
"opacity": "1"
});
});
$(document).on('focusout', '.qs-button', function () {
$(this).parent().parent().removeAttr("style");
});
$(document).on('keypress', '.mdl-button__ripple-container', function () {
$('.search-opened').removeClass('search-opened');
});
$(window).one("scroll", function() {
$("body div.checkout-agreement label button.action.action-show span").append('*');
});
$(document).on('focus', '.header-discount-link', function () {
setTimeout(function () {
$('.groupmenu-drop').css('display', 'none');
$('.level-top.parent.open').removeClass('open');
}, 200);
$('.groupmenu-drop').css('display', 'none');
$('.level-top.parent.open').removeClass('open');
});
$(document).on('keypress', '.search-trigger', function () {
$('.search-close-icon').attr('tabindex', '0');
});
$(document).on('keypress', '.search-close-icon', function () {
$('.search-close-icon').removeAttr('tabindex');
});
$(".age-popup-skip").focus(function () {
$('.confirm-button').focus();
});
$(document).on('focus', '#gdpr-cookie-block', function () {
$('.confirm-button').focus();
});
$(document).on('keypress', 'input:checkbox', function (e) {
if ((e.keyCode ? e.keyCode : e.which) == 13) {
$(this).trigger('click');
}
});
$(document).on('keypress', '.amscroll-load-button', function (e) {
$('.amscroll-load-button').trigger('click');
});
$(document).ready(function () {
$('.search-trigger .mdl-button__ripple-container').addClass('search-close-icon');
$('.header-shipping-discount a').attr('class', 'header-discount-link');
$('a').each(function () {
if ($(this).attr('alt') == null) {
$(this).attr('alt', $.trim($(this).text())); //or use $.trim($(this).text()) to remove white spaces.
}
});
setTimeout(function(){
$(".minicart-wrapper .product-image-photo").each(function() {
if ($(this).attr('alt') == undefined) {
$(this).attr('alt', $(this).closest('a').attr('title'));
}
});
}, 5000);
$('button.qs-button').each(function () {
if ($(this).attr('alt') == null) {
$(this).attr('alt', 'Quick View'); //or use $.trim($(this).text()) to remove white spaces.
}
});
$('button.search-trigger').click(function () {
if ($(this).hasClass('search-opened')) {
$(this).attr('title', 'Press enter to expand search text field');
} else {
$(this).attr('title', 'Press enter to close search text field');
}
});
//Canonical tag remove
var valuessss = $("link[rel*='canonical']").attr("href");
var metavaluessss = $(location).attr("href");
var brands = "brands/";
var rda = "rebuildables/rda"
if (valuessss) {
if (valuessss.indexOf(brands) > 0) {
var final = valuessss.replace(brands, '');
$("link[rel*='canonical']").attr("href", final);
}
if (valuessss.indexOf(rda) > 0) {
var final = valuessss.replace('rebuildables/', '');
$("link[rel*='canonical']").attr("href", final);
}
if ((metavaluessss.indexOf(brands) > 0) || (metavaluessss.indexOf(rda) > 0)) {
$("meta[name*='robots']").attr("content", "NOINDEX,FOLLOW");
$("link[rel*='canonical']").remove();
}
}
//EnD
$('#utilities-main').remove();
$("div.minicart-content-wrapper ol#mini-cart li div.product.options span").removeAttr('role');
if ($(window).width() > 767) {
var search_header = $('#header-search-container').wrap();
$('.search-trigger').after(search_header);
var product_main_content = $('.main').wrap();
$('.sidebar-main').after(product_main_content);
var remove_icon = $('.search-trigger .mdl-button__ripple-container').wrap();
$('#header-search-container').after(remove_icon);
}
$(window).resize(function () {
if ($(window).width() > 767) {
var search_header = $('#header-search-container').wrap();
$('.search-trigger').after(search_header);
var remove_icon = $('.search-trigger .mdl-button__ripple-container').wrap();
$('#header-search-container').after(remove_icon);
} else {
var search_header = $('#header-search-container').wrap();
$('.header-panel-right').after(search_header);
}
});
});
setTimeout(function () {
$('.owl-dot span').html('Click to change image');
$('.owl-dot span').css('color', 'black');
$('.desktop-view-menu .static-wrap .evp-menu .groupmenu .evp-new-arrivals a.menu-link').attr('id', 'skip-to-navigation');
}, 3000);
//PLP
$(document).on("keydown","a.action.remove",function (event) {
if(event.keyCode===13)
{
event.preventDefault();
$(this).click();
}
});
//END
//My order page
$(document).ready(function() {
$(".table-order-items > tfoot > tr > th").attr('colspan',4)
//$('.popup-ajax-lgfm-popup').attr('tabindex',1);
$('#ajax-lgfm-popup').attr('tabindex',1);
});
//END
});