if (typeof sswShareReviewPageInterval == 'undefined') { var sswShareReviewPageInterval = setInterval(function () { if (typeof sswJqLoaded != 'undefined' && sswJqLoaded) { clearInterval(sswShareReviewPageInterval); var sswPathName = window.location.pathname; var sswSubStr = '/pages/'; var sswIndex = sswPathName.indexOf(sswSubStr) + sswSubStr.length; var sswRequestUrl = sswProxyUrl + '/lite2/' + sswPathName.substr(sswIndex); var params = location.search.substring(1); if (params) { sswRequestUrl += '?' + params; } sswUserChecked(function () { ssw('body').addClass('ssw-share-review-hide-tabs'); var data = {'_sid': sswCookie('hesid'), 'hash_key': sswCookie('hash_key')}; ssw.get(sswRequestUrl, data, 'html').done(function (response) { ssw('#ssw-share-review-page').css('opacity', 0); ssw('#ssw-share-review-page').html(response).animate({ opacity: "1" }, 50, function () { if (typeof window.afterSswPageLoadedCallback === 'function') { window.afterSswPageLoadedCallback(response); } }); }).fail(function (response) { if (response.status === 401) { var text = sswLangs.t("review_token_expired"); ssw('#ssw-share-review-page').html(`${text}`); ssw('#ssw-share-review-page').removeClass("ssw-hide"); ssw('#ssw-share-review-page').addClass("ssw-text-center"); } }); }); } }, 200); }