console.log("alert2"); (function () { const COOKIE_NAME = 'HotelManager_Plugin_'; const STATIC_PATH = 'https://hotelmanager.abouthotelier.com/reactbk'; const STATIC_PATHDEV = 'https://hotelmanager.abouthotelier.com/reactbk'; const PluginFiles = { LOADERS: [["/static/js/main.88b436d1.chunk.js", ['async']],], LIBS: [ ["/static/js/2.d3e96b38.chunk.js", ['defer']], ["/static/js/3.5ecdfd4a.chunk.js", ['defer']], ["/static/js/4.c773be7c.chunk.js", ['defer']], ], LINKS: [["/static/css/main.5f8cecc7.chunk.css", ['defer']], ["/static/css/2.8a1ec573.chunk.css", ['defer']], ] }; const HOST = (window.location.search.includes('DEV=1')) ? STATIC_PATH : STATIC_PATHDEV; const Ratestrip = function () { try { this.locale = null; this.cookie = null; //this._GetLocale(); Ratestrip.prototype._loadPlugin = function () { try { for (let link of PluginFiles.LINKS) { this._loadLink(link); } for (let lib of PluginFiles.LIBS) { this._loadScript(lib); } for (let lib of PluginFiles.LOADERS) { this._loadScript(lib); } } catch (err) { throw new Error(err); } //react load !function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4()); } catch (err) { throw new Error(err); } }; Ratestrip.prototype._initCookie = function () { try { let days = 365, path = '/', date, value; date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); value = this._initUUID(); document.cookie = COOKIE_NAME + "=" + value + ";" + "expires=" + date.toUTCString() + ";path=" + path; return value; } catch (err) { throw new Error(err); } }; Ratestrip.prototype._getCookie = function () { try { let entry = document.cookie.split(';').find(str => str.trim().startsWith(COOKIE_NAME)); if (entry) { return entry.split('=').pop(); } return null; } catch (err) { throw new Error(err); } }; Ratestrip.prototype._isMobileDeviceRequest = function () { try { let check = false; (function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true; })(navigator.userAgent || navigator.vendor || window.opera); return check; } catch (err) { throw new Error(err); } }; cookie = this.cookie = this._getCookie() || this._initCookie(); var bot = "no"; try { const request = new XMLHttpRequest(); request.open('GET', 'https://ratestrip.abouthotelier.com/customer/home/checkheader', false); request.send(null); if (request.status === 200) { bot = request.responseText; } } catch (err) { } if (this._isMobileDeviceRequest()) { console.log('RateLOG: device:mobile'); //kane load to neo widget mobile if(bot == "no") { this._createDiv(); this._loadPlugin(); } } else { //kane load to neo widget mobile if(bot == "no") { this._createDiv(); this._loadPlugin(); } console.log('RateLOG: device:Desktop'); //kane load to desktop } var loadWidget = ''; if(bot == "yes") { loadWidget = 'react'; } else { const request = new XMLHttpRequest(); request.open('GET', 'https://ratestrip.abouthotelier.com/Hotels/GetPluginPositionEmbed?device=' + this._isMobileDeviceRequest() + '&hotelcode=null&mobile=0&percent=0&screenw=1902&screenh=870&multiproperty=0&NoStats=0¤tURL=' + window.location.href, false); // `false` makes the request synchronous request.send(null); if (request.status === 200) { loadWidget = request.responseText; } } if (loadWidget != 'react') { try { function mobileAndTabletcheck(e, t) { var o, i = !1; (o = navigator.userAgent || navigator.vendor || window.opera), (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test( o ) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test( o.substr(0, 4) )) && (i = !0); try { parseInt(e), parseInt(t); 1 == i && ((e >= 600 && t >= 855) || (e >= 855 && t >= 600)) && (i = !1); } catch (e) {} return i; } var orientationtype = 0; try { orientationtype = 90 == window.orientation || -90 == window.orientation ? 1 : 0; var supportsOrientationChange = "onorientationchange" in window, orientationEvent = supportsOrientationChange ? "orientationchange" : "resize"; window.addEventListener( orientationEvent, function () { orientationtype = 90 == window.orientation || -90 == window.orientation ? 1 : 0; }, !1 ); } catch (e) {} var CookieOpenValue = "", stack_topleft = { dir1: "down", dir2: "right" }, stack_bottomleft = { dir1: "up", dir2: "right" }, stack_topright = { dir1: "down", dir2: "left" }, stack_bottomright = { dir1: "up", dir2: "left" }, newVisitor = "0", currentURL = window.location.href; currentURL = (currentURL = currentURL.replace("#", "^")).replace("&", "|"); var iframe_reference, abouthotelierWidth = 0, abouthotelierHeight = 0, background = 1, run = 0, orientation = 0, noChangeCountToEnd = 100, noEndTimeout = 1e3, exitpopup = 0, pageloaded = "1", notificationcompleted = "1", timeOnPage = 0, alertOnPage = 0, alertOpened = 0, abouthotelierMobile = 0, prevtime = 0, recap = "0", resetAlert = 0, resetNotifications = 0, loadfonts = "0", multipropertyplugin = "0", showplugin = "1", loadmaps = "1", loadnotifications = "1", loadanalytics = "", loadjqueryversion = "", nostat = "0", preventSpam = 0, startMouseTracking = 0, position = "", topposition = "", pluginHeight = "", pluginleft = "", pluginright = "", pluginbottom = "", popup = "", retarget = "", roundButton = "", openMessenger = "", pageID = "", datepicker = "", percent = 0, leftiframe = 0, opened = "", push = "", pushAppid = "", pushSettings = "", actionMessage = "", button1Text = "", button2Text = "", sendWelcome = "", welcomeTitle = "", welcomeMessage = "", pluginversion = "", bigpluginposition = "left", slideupmode = "0"; function css(e, t) { return window.getComputedStyle(e, null).getPropertyValue(t); } try { var span = document.createElement("span"); (span.className = "fa"), (span.style.display = "none"), document.body.insertBefore(span, document.body.firstChild), "FontAwesome" !== css(span, "font-family") && (loadfonts = "1"), document.body.removeChild(span); } catch (e) {} function setCookie(e, t, o) { var i = new Date(); i.setTime(i.getTime() + 60 * o * 1e3); var a = "expires=" + i.toUTCString(); document.cookie = e + "=" + t + ";" + a + ";path=/;SameSite=None;secure"; } function getCookie(e) { try { for (var t = e + "=", o = decodeURIComponent(document.cookie).split(";"), i = 0; i < o.length; i++) { for (var a = o[i]; " " == a.charAt(0); ) a = a.substring(1); if (0 == a.indexOf(t)) return a.substring(t.length, a.length); } return ""; } catch (e) {} } function deleteCookie(e) { document.cookie = e + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; } function CreateGUID(e) { try { function t() { return ((65536 * (1 + Math.random())) | 0).toString(16).substring(1); } var o = e || "-"; return t() + t() + o + t() + o + t() + o + t() + o + t() + t() + t(); } catch (e) {} } var j, scripts = document.getElementsByTagName("script"), script = scripts[scripts.length - 1], hotelcode = "no"; for (j = 0; j < scripts.length; j++) { if ("" == (script = scripts[j]).text) try { hotelcode = script.src.split("?propertycode=")[1].split("'")[0]; } catch (e) { hotelcode = null; } else try { hotelcode = script.text.split("?propertycode=")[1].split("'")[0]; } catch (e) { hotelcode = null; } if (null != hotelcode) break; } null != hotelcode && hotelcode.indexOf("multiproperty-") > -1 && ((hotelcode = hotelcode.replace("multiproperty-", "")), (multipropertyplugin = "1")), (CookieOpenValue = getCookie("HotelManager_Plugin_")); newVisitor = "0"; var notificationresult = "0"; if (void 0 === CookieOpenValue || "" == CookieOpenValue) setCookie("HotelManager_Plugin_", (GUID = CreateGUID()), "1000000"), (CookieOpenValue = GUID), (newVisitor = "1"); var GUID, NoStats = "0"; if (currentURL.indexOf("abouthotelier=1") > -1) if (((NoStats = "1"), void 0 === (CookieOpenValue = getCookie("HotelManager_NoStats_")) || "" == CookieOpenValue)) setCookie("HotelManager_NoStats_", (GUID = CreateGUID()), "1000000"); var checktime = 0; function jqueryLoaded() { "true" == retarget && loadPnotify(), checkMoment(); } function loadcss() { getSettings(orientation); } function checkJquery() { if (window.jQuery) { var e = jQuery; "1.6.2" == e().jquery || e().jquery, jqueryLoaded(); } else 1 == ++checktime ? loadjquery() : setTimeout(function () { checkJquery(); }, 100); } function loadNewJquery(e) { var t = document.getElementsByTagName("head")[0], o = document.createElement("script"), i = "https://ratestrip.abouthotelier.com/web/jquery/" + e + ".js"; o.setAttribute("src", i), o.addEventListener("load", jqueryNewLoaded), t.appendChild(o); } function jqueryNewLoaded() { try { (window.$ = window.jQuery = $.noConflict(!0)), checkJquery(); } catch (e) { } } function loadjquery() { checktime = 0; var e = document.getElementsByTagName("head")[0], t = document.createElement("script"); t.setAttribute("src", "https://ratestrip.abouthotelier.com/web/jquery.js"), t.addEventListener("load", checkJquery), e.appendChild(t); } function checkTimer() { try { var e = document.getElementsByTagName("head")[0], t = document.createElement("script"); t.setAttribute("src", "https://ratestrip.abouthotelier.com/web/HackTimer.js"), t.addEventListener("load", loadcss), e.appendChild(t); } catch (e) { loadcss(); } } function loadpopup() { var e = new XMLHttpRequest(); e.onreadystatechange = function () { if (e.readyState == XMLHttpRequest.DONE || 4 == e.readyState) if (200 == e.status) { var t = document.createElement("div"); (t.async = !0), (t.innerHTML = e.responseText), document.getElementsByTagName("body")[0].appendChild(t), e.responseText.length; } else e.status; }; var t = "https://ratestrip.abouthotelier.com/Customer/home/exitsite?propertycode=" + hotelcode + "&multiproperty=" + multipropertyplugin + "&NoStats=" + NoStats + "¤tURL=" + currentURL; e.open("GET", t, !0), e.send(); } function loadjspopup() { var e = new XMLHttpRequest(); e.onreadystatechange = function () { if (e.readyState == XMLHttpRequest.DONE || 4 == e.readyState) if (200 == e.status) { var t = document.createElement("script"); (t.type = "text/javascript"), (t.async = !0), (t.innerHTML = e.responseText), document.getElementsByTagName("body")[0].appendChild(t); } else e.status; }; window.location; var t = "https://ratestrip.abouthotelier.com/Customer/minified/exitsitejs?propertycode=" + hotelcode + "&multiproperty=" + multipropertyplugin + "&NoStats=" + NoStats + "¤tURL=" + currentURL; e.open("GET", t, !0), e.send(); } function checkDatepicker() { try { "function" == typeof jQuery().daterangepicker ? daterangepickerLoaded() : loadDatepicker(); } catch (e) { loadDatepicker(); } } function loadDatepicker() { try { checktime = 0; var e = document.getElementsByTagName("head")[0], t = document.createElement("script"); t.setAttribute("src", "https://ratestrip.abouthotelier.com/Scripts/bootstrap-daterangepicker-master/daterangepicker.js"), t.addEventListener("load", daterangepickerLoaded), e.appendChild(t); } catch (e) { daterangepickerLoaded(); } } function daterangepickerLoaded() { checkNotify(); } function checkMoment() { try { moment.locale("en-gb"), momentLoaded(); } catch (e) { loadMoment(); } } function loadMoment() { try { checktime = 0; var e = document.getElementsByTagName("head")[0], t = document.createElement("script"); t.setAttribute("src", "https://ratestrip.abouthotelier.com/web/moment.js"), t.addEventListener("load", momentLoaded), e.appendChild(t); } catch (e) { momentLoaded(); } } function momentLoaded() { checkDatepicker(); } function checkNotify() { if (window.recaptcha) recap = "1"; else { recap = "1"; var e = document.getElementsByTagName("head")[0], t = document.createElement("script"); t.setAttribute("src", "https://ratestrip.abouthotelier.com/web/googlesdk/api.js"), e.appendChild(t); } GetPlugin(); } function loadPnotify() { try { checktime = 0; var e = document.getElementsByTagName("head")[0], t = document.createElement("script"); t.setAttribute("src", "https://hotelmanager.abouthotelier.com/PnotifyPackages/PNotifyAll.js"), e.appendChild(t); } catch (e) {} } function pnotifyLoaded() { checkNotify(); } function loadNotificationsFunction() { try { jQuery(function (e) { updateLive(e); }); } catch (e) {} } function loadXMLDoc(e, t, o, i, a, n, r, l, s, p, d, c) { if ("0" != showplugin) { var u = new XMLHttpRequest(); u.onreadystatechange = function () { if (u.readyState == XMLHttpRequest.DONE || 4 == u.readyState) if (200 == u.status) { if ("2" == pluginversion) { var e = navigator.userAgent.match(/iPad/i), t = 0; null != e && ((slideupmode = "0"), (i = 0), (t = 1)), jQuery(function (e) { "1" != slideupmode || (1 != i && 2 != i) ? 1 == i || 2 == i ? e("body").append( '' ) : e("body").append( '' ) : e("body").append( '' ); try { var gobj = window[window.GoogleAnalyticsObject]; var iframe = document.querySelector('#abouthotelierSideWidgetIframe'); var tracker, linker; if (gobj) { tracker = gobj.getAll()[0]; linker = new window.gaplugins.Linker(tracker); iframe.src = linker.decorate(iframe.src); } } catch(e) {} }); } jQuery(function (e) { e("body").append(u.responseText), updateLive(e); }); } else u.status; }; var m = "plugin/plugin"; "2" == pluginversion && (m = "plugin/BigPluginButtonView"); try { null != navigator.userAgent.match(/iPad/i) && ((m = "iPadPlugin/pluginview"), "2" == pluginversion && (m = "plugin/BigPluginButtonView")); } catch (e) {} var h = 0; null != navigator.userAgent.match(/iPad/i) && (h = 1); var g = "https://ratestrip.abouthotelier.com/Customer/" + m + "?multiproperty=" + multipropertyplugin + "&loadfonts=" + loadfonts + "&recap=" + recap + "&mobile=" + i + "&percent=" + a + "&leftiframe=" + n + "&propertycode=" + hotelcode + "&screenw=" + r + "&screenh=" + l + "&opened=" + s + "&NoStats=" + NoStats + "&SiteUrl=" + currentURL + "&cookie=" + CookieOpenValue + "&isIpad=" + h; u.open("GET", g, !0), u.send(); } } function hideAlert() { try { (resetAlert = 1), (resetNotifications = 1); var e = document.getElementById("PluginAlertContainerWrapper"); (e.style.display = "none"), null != e && e.parentNode && e.parentNode.removeChild(e); } catch (e) {} IhotelWebAppSearchPrices(); } function updateBody(e, t) { if (((preventSpam = 0), (startMouseTracking = 1), null != t && "" != t)) { e("body").append(t); var o = ""; try { if (0 == (o = document.getElementById("NotificationIDStoOpenLater").value) || "0" == o) return !1; var i = parseInt(document.getElementById("TimeSpentOnPage").value), a = parseInt(o.split("^")[1]), n = a + i; console.log("UpdateLive Again in " + a + " seconds"), setTimeout(function () { (document.getElementById("TimeSpentOnPage").value = n), (preventSpam = 1), updateLive(e); }, 1e3 * a); } catch (e) {} } } function updateLive(e) { if ((1 == resetAlert && ((alertOnPage = 0), (resetAlert = 0), (alertOpened = 0)), "0" != pageloaded && "0" != notificationcompleted)) try { preventSpam = 1; var t = new XMLHttpRequest(); t.onreadystatechange = function () { (t.readyState != XMLHttpRequest.DONE && 4 != t.readyState) || (200 == t.status && "false" != t.responseText && "true" != t.responseText && ((notificationresult = "1"), updateBody(e, t.responseText), (notificationcompleted = "1"), (timeOnPage += 3), (alertOnPage += 3))), -1 !== t.responseText.indexOf("PluginAlertContainer") && (alertOpened = 1); }; var o = ""; try { o = document.getElementById("NotificationIDSopened").value; } catch (t) {} try { timeOnPage = parseInt(document.getElementById("TimeSpentOnPage").value); } catch (t) { timeOnPage = 0; } var i = "https://ratestrip.abouthotelier.com/Customer/Home/UpdateLive?version=2&propertycode=" + hotelcode + "&cookie=" + CookieOpenValue + "&newVisitor=" + newVisitor + "¬ificationresult=" + notificationresult + "&timeOnPage=" + timeOnPage + "&alertTimeOnPage=" + alertOnPage + "&alertOpened=" + alertOpened + "&mobile=" + abouthotelierMobile + "&background=" + background + "&NotificationIDSopened=" + o + "&multiproperty=" + multipropertyplugin + "&width=" + abouthotelierWidth + "&height=" + abouthotelierHeight + "&NoStats=" + NoStats + "¤tURL=" + currentURL; t.open("GET", i, !0), t.send(); } catch (t) {} } function sdkloaded() { var e = window.OneSignal || []; e.push([ "init", { appId: pushAppid, autoRegister: !1, notifyButton: { enable: !1 }, welcomeNotification: { title: "Subscribed", message: "Thanks for subscribing!" }, promptOptions: { actionMessage: "We'd like to show you notifications for the latest news and updates.", acceptButtonText: "ALLOW", cancelButtonText: "NO THANKS" }, }, ]), e.push(function () { e.showHttpPrompt(); }); } function getSettings(e) { navigator.language || navigator.userLanguage; (abouthotelierWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)), (abouthotelierHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)), (leftiframe = (100 - (240 / abouthotelierWidth) * 100) / 2), (percent = 0), (abouthotelierMobile = 0), "" == (opened = getCookie("opened")) && setCookie("opened", "0", "60"), 0 == abouthotelierMobile && abouthotelierWidth > 0 && abouthotelierWidth < 600 && abouthotelierHeight > 0 && abouthotelierHeight < 800 && abouthotelierWidth < abouthotelierHeight && ((abouthotelierMobile = 1), (percent = 1.1)), 0 == abouthotelierMobile && abouthotelierWidth > 0 && abouthotelierWidth < 800 && abouthotelierHeight > 0 && abouthotelierHeight < 541 && abouthotelierHeight < abouthotelierWidth && ((abouthotelierMobile = 2), (percent = 1)), 0 == abouthotelierMobile && abouthotelierWidth > 0 && abouthotelierHeight > 0 && abouthotelierHeight < 541 && abouthotelierHeight < abouthotelierWidth && ((abouthotelierMobile = 2), (percent = 1), 0 == mobileAndTabletcheck(abouthotelierWidth, abouthotelierHeight) && (abouthotelierMobile = 0)), 1 == mobileAndTabletcheck(abouthotelierWidth, abouthotelierHeight) && (abouthotelierMobile = 1); var t = new XMLHttpRequest(); t.onreadystatechange = function () { if (t.readyState == XMLHttpRequest.DONE || 4 == t.readyState) if (200 == t.status) { var e = t.responseText.trim().split('"').join(""); if ( (t.responseText.indexOf(",") > -1 ? ((position = e.split(",")[0]), (topposition = e.split(",")[1]), (pluginHeight = e.split(",")[2]), (pluginleft = e.split(",")[3]), (pluginright = e.split(",")[4]), (pluginbottom = e.split(",")[5]), (popup = e.split(",")[6]), (retarget = e.split(",")[7]), (roundButton = e.split(",")[8]), (openMessenger = e.split(",")[9]), (pageID = e.split(",")[10]), (datepicker = e.split(",")[11]), (propertyid = e.split(",")[12]), (push = e.split(",")[13]), (pushAppid = e.split(",")[14]), (pushSettings = e.split(",")[15]), (actionMessage = e.split(",")[16]), (button1Text = e.split(",")[17]), (button2Text = e.split(",")[18]), (sendWelcome = e.split(",")[19]), (welcomeTitle = e.split(",")[20]), (welcomeMessage = e.split(",")[21]), (showplugin = e.split(",")[22]), (nostat = e.split(",")[23]), (loadmaps = e.split(",")[24]), (loadnotifications = e.split(",")[25]), (loadanalytics = e.split(",")[26]), (loadjqueryversion = e.split(",")[27]), (pluginversion = e.split(",")[28]), (bigpluginposition = e.split(",")[29]), (slideupmode = e.split(",")[30]), window.jQuery || (void 0 !== loadjqueryversion && "" != loadjqueryversion) || loadNewJquery("1.10.0"), window.jQuery || void 0 === loadjqueryversion || "" == loadjqueryversion || loadNewJquery(loadjqueryversion), window.jQuery && void 0 !== loadjqueryversion && "" != loadjqueryversion && loadNewJquery(loadjqueryversion), !window.jQuery || (void 0 !== loadjqueryversion && "" != loadjqueryversion) || checkJquery(), "1" == loadmaps && loadGoogleMaps(), (loadnotifications = e.split(",")[25]), ("" != pluginHeight && null != topposition) || (topposition = "25%"), ("" != pluginHeight && null != pluginHeight) || (pluginHeight = "410px")) : ((position = e), (topposition = "25%")), "1" == push && "1" == pushSettings) ) { var o = document.getElementsByTagName("head")[0], i = document.createElement("link"); (i.rel = "manifest"), (i.href = "/manifest.json"); document.getElementsByTagName("link")[0]; o.appendChild(i), (o = document.getElementsByTagName("head")[0]); var a = document.createElement("script"); a.setAttribute("src", "https://cdn.onesignal.com/sdks/OneSignalSDK.js"), a.addEventListener("load", sdkloaded), o.appendChild(a); } "true" == popup && ((exitpopup = 1), loadpopup()), "true" == retarget || ((notificationcompleted = "1"), (pageloaded = "1")); } else t.status; }; window.location; var o = "https://ratestrip.abouthotelier.com/Hotels/GetPluginPositionEmbed?hotelcode=" + hotelcode + "&mobile=" + abouthotelierMobile + "&percent=" + percent + "&screenw=" + abouthotelierWidth + "&screenh=" + abouthotelierHeight + "&multiproperty=" + multipropertyplugin + "&NoStats=" + NoStats + "¤tURL=" + currentURL; t.open("GET", o, !0), t.send(); } function GetPlugin() { loadXMLDoc(position, topposition, pluginHeight, abouthotelierMobile, percent, leftiframe, abouthotelierWidth, abouthotelierHeight, opened, pluginleft, pluginright, pluginbottom); } function loadAnalyticsJS() { var e = e || []; e.push(["trackPageView"]), e.push(["enableLinkTracking"]), (function () { var t = "//analytics.abouthotelier.com/"; e.push(["setTrackerUrl", t + "piwik.php"]), e.push(["setSiteId", "6"]); var o = document, i = o.createElement("script"), a = o.getElementsByTagName("script")[0]; (i.type = "text/javascript"), (i.async = !0), (i.defer = !0), (i.src = t + "piwik.js"), a.parentNode.insertBefore(i, a); })(); } function loadGoogleMaps() { try { if (!google.maps) { head = document.getElementsByTagName("head")[0]; var e = document.createElement("script"), t = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBWFz-g9w-sJ8E7fuoO5oqUNpfwE4rESEE"; e.setAttribute("src", t), head.appendChild(e); } } catch (o) { head = document.getElementsByTagName("head")[0]; t = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBWFz-g9w-sJ8E7fuoO5oqUNpfwE4rESEE"; (e = document.createElement("script")).setAttribute("src", t), head.appendChild(e); } } checkTimer(), (window.onscroll = function (e) { resetAlert = 1; }), document.addEventListener("mousemove", function () { resetAlert = 1; }); try { window.addEventListener( "message", function (e) { if (null != e.data && null != e.data.v1 && "makecall" == e.data.v1) { var t = "tel:" + e.data.v2; window.open(t, "_top"); } if ("closeIframe" == e.data.showB) try { CloseThePlugin(); } catch (e) {} else if ("updateButtonPrice" == e.data.showB) try { for (var o = document.getElementsByClassName("IntegerPrice"), i = 0; i < o.length; i++) o[i].innerHTML = e.data.integerPrice; var a = document.getElementsByClassName("DecimalPrice"); for (i = 0; i < a.length; i++) a[i].innerHTML = e.data.decimalPrice; } catch (e) {} else if ("updateButtonImage" == e.data.showB) try { var n = document.getElementsByClassName("widgetPluginOpenButton"); for (i = 0; i < n.length; i++) n[i].style.backgroundImage = e.data.backImage; var r = document.getElementsByClassName("widgetPluginOpenButtonSquare"); for (i = 0; i < r.length; i++) r[i].style.backgroundImage = e.data.backImage; } catch (e) {} else if ("showHideButtonMinPrice" == e.data.showB) try { var l = document.getElementById("ButtonMinPrice"); "show" == e.data.showOrHide ? (l.style.display = "block") : "hide" == e.data.showOrHide && (l.style.display = "none"); } catch (e) {} else if ("updateButtonNights" == e.data.showB) try { var s = document.getElementsByClassName("ButtonNights"); for (i = 0; i < s.length; i++) s[i].innerHTML = e.data.buttonNights; } catch (e) {} else if ("reloadpage" == e.data.showB) try { location.reload(); } catch (e) {} else if ("deletesearchhistory" == e.data.showB) { try { deleteCookie("HotelManager_Plugin_"); } catch (e) {} try { deleteCookie("HotelManager_EP_"); } catch (e) {} try { deleteCookie("HotelManager_CloseMessage"); } catch (e) {} try { deleteCookie("HotelManager_CloseOTAS"); } catch (e) {} try { deleteCookie("HotelManager_Open_EP_"); } catch (e) {} try { deleteCookie("HotelManager_CloseSubscribe"); } catch (e) {} try { deleteCookie("HotelManager_CloseSubscribeAlert"); } catch (e) {} try { deleteCookie("HotelManager_ClosedMiniWidget"); } catch (e) {} } else if ("UpdateOTASaboveButton" == e.data.showB) try { var p = document.getElementById("OTASAboveRoundButtonDiv"), d = document.getElementById("OTASAboveRoundButtonInner"); try { if (null != e.data.otastooltiphtmlDates && "" != e.data.otastooltiphtmlDates && (" " != e.data.otastooltiphtmlDates) & ("
" != e.data.otastooltiphtmlDates)) document.getElementById("OTASAboveRoundButtonDatesDiv").innerHTML = e.data.otastooltiphtmlDates; } catch (e) {} try { if (null != e.data.otastooltiphtmlSubtitle && "" != e.data.otastooltiphtmlSubtitle && (" " != e.data.otastooltiphtmlSubtitle) & ("
" != e.data.otastooltiphtmlSubtitle)) document.getElementById("MiniWidgetNewScoreAndReviewsDiv").innerHTML = e.data.otastooltiphtmlSubtitle; } catch (e) {} if (null != e.data.otastooltiphtml && "" != e.data.otastooltiphtml && (" " != e.data.otastooltiphtml) & ("
" != e.data.otastooltiphtml)) { MakeTheOtasWidgetVisible(); try { OpenTheOtasWidget(1); } catch (e) {} d.innerHTML = e.data.otastooltiphtml; } else { p.style.display = "none"; try { CloseTheOtasWidget(1); } catch (e) {} d.innerHTML = ""; } } catch (e) {} else if ("ShowTheRoundButton" == e.data.showB) try { ShowTheRoundButton(); } catch (e) {} else if ("SetNewStyleDatepickersValues" == e.data.showB) try { SetNewStyleDatepickersValues(); } catch (e) {} else if ("ToggleMessageAboveButton" == e.data.showB) try { var c = document.getElementById("MessageAboveButtonDiv"); "show" == e.data.showorhide ? (c.style.display = "block") : (c.style.display = "none"); } catch (e) {} }, !1 ); } catch (e) {} } catch (e) {} } } catch (err) { console.log('RateLOG: ', err); if (sessionStorage.RPIDBG) { console.log('RateLOG: ', err); } } }; return function () { try { new Ratestrip(); return true; if(document.readyState === 'loaded' || document.readyState === 'complete'){ new Ratestrip(); return true; } if (window.addEventListener) { window.addEventListener('load', function () { new Ratestrip(); }); return true; } else if (window.attachEvent) { let r = window.attachEvent("onload", function () { new Ratestrip(); }); return r; } } catch (err) { throw new Error(err); } }; } )()()