$(AppBanner).click(function () {
if($('body').hasClass('page-content')) {
window.location = 'lazacodeorg://story/' + newsId;
} else {
setTimeout(function() {
window.open(AppUrl);
}, 100);
window.location = 'lazacodeorg://story/' + newsId;
}
});
var AppArea = 'body.one-sidebar',
AppBanner = $('#app-banner'),
newsUrl = window.location.href,
newsSplit = newsUrl.split('/'),
newsId = newsSplit[newsSplit.length-2],
AppUrl = 'https://www.lazacode.org/appstore';