"+pth+" ---> "+ $(this).attr('data-ln'))
if ($(this).attr('data-ln') != 'com' && pth.match(/^\/[a-z]{2}-[a-z]{2}\/?/i)) {
pth = pth.replace(/^\/[a-z]{2}-[a-z]{2}\/?/i, '/')
}
console.log("2------->"+pth+" ---> "+ $(this).attr('data-ln'))
$(this).attr('href', $(this).attr('href')+pth.substr(1));
}
});
$('#Linklist-currency a, #currency_picker a').each(function(elem) {
$(this).attr('data-cur', $(this).attr('href').substr(-3)).click(function(event) {
window.location.href = LR.redirect(hostext, $(this).attr('data-cur'), true);
event.preventDefault();
});
$(this).attr('href', '#');
});
/*if ($("span.announcement__text").html().trim().substr(0, 12) == freestr1.trim().substr(0, 12)) {
var country = LR.GetCookie('LR_FREE_SHIPPING_COUNTRY');
if (country == undefined || country.length<2) {
var jqxhr = $.get( "//file.lonerider-motorcycle.com/ip.php").done(function(ip) {
jqxhr = $.get( "https://ip2c.org/?ip="+ip).done(function(country_ip) {
country = country_ip.replace(/;/g, '|');
LR.SetCookie('LR_FREE_SHIPPING_COUNTRY', country, 1);
LR_set_free_shipping(country)
});
});
}
else {
LR_set_free_shipping(country)
}
}*/
country_set(country);
$("#KFooterNewsletterForm").after('');
};
if (LR.bot()) {
document.getElementById("announcement_top_bar").style.display = "none";
}
else {
if ((typeof jQuery === 'undefined') || (parseFloat(jQuery.fn.jquery) < 1.7)) {
LRloadScript('//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', function(){
jQuery191 = jQuery.noConflict(true);
LRAppJavaScript(jQuery191);
});
} else {
LRAppJavaScript(jQuery);
}
}