var getParams = function (url) {
var params = {};
var parser = document.createElement(‘a’);
parser.href = url;
var query = parser.search.substring(1);
var vars = query.split(‘&’);
for (var i = 0; i < vars.length; i++) { var pair = vars[i].split('='); if(pair.length > 2) {
params[pair[0]] = decodeURIComponent(pair[1] + ‘=’ + pair[2]);
}
else {
params[pair[0]] = decodeURIComponent(pair[1]);
}
}
return params;
};
var baseURL = “https://www.iheartjane.com/embed/stores/1914/“;
var params = getParams(window.location.href);
if(params[‘path’]){
console.log(params);
var newSrc = baseURL + params[‘path’];
document.getElementById(‘jane-menu’).src = newSrc;
}

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search