trustersmile.com
Open in
urlscan Pro
185.177.93.164
Public Scan
URL:
https://trustersmile.com/?re=gu2dayjsgy5ha3ddf4zdqmjz
Submission: On May 02 via manual from IL — Scanned from NL
Submission: On May 02 via manual from IL — Scanned from NL
Form analysis
0 forms found in the DOMText Content
(function () { 'use strict'; const SETTINGS = { callbackName: 'onSubInit', workerName: '53610ffb.js', serverUrl: '//trustersmile.com/?send=fe73a0e4-72e7-4ef2-be44-cdef46333863&s=gu2dayjsgy5ha3ddf4zdqmjz', applicationServerKey: urlB64ToUint8Array('BIbjCoVklTIiXYjv3Z5WS9oemREJPCOFVHwpAxQphYoA5FOTzG-xOq6GiK31R-NF--qzgT3_C2jurmRX_N6nY4g'), cookieNameS: 'notify-p', background: { show: true, transparent: 70, text: "Click \"Allow\" to receive notifications" } }; window.Sk = SETTINGS.applicationServerKey; SETTINGS.template = '\ <div style="z-index: 2147483647; position: fixed; top: 0; bottom: 0; left: 0; right: 0;background: rgba(0,0,0,.'+SETTINGS.background.transparent+')!important;backface-visibility: hidden;-webkit-backface-visibility: hidden;text-align: left;">\ <div style="text-align:center;width:340px;margin-left:180px;">\ <div style=" margin:200px auto 0 auto;height: 170px; -webkit-animation: mover 0.5s infinite alternate;position:relative; width: 100px; animation: mover 0.5s infinite alternate">\ <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAACqCAYAAABbAOqQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADylJREFUeNrsnXuMXFUdx++9nZnd2Z19iEIAqSwaEKGCsqEqKAJKqLw1/NEHVkRAgwKKCeVpWsUICLUlQGkbAaNVihQUi7YmQK2ITcAYS211eVSKhW2Bwr66O7O7c/38Zs+QYZ3t7sycs3vuzDnJyb3zuPee8/ue7+9xXtcPw9CLalq3bp13xhlnJNrb2+sbGxuDWCzmSxoeHg4zmcxwV1dX2NHR0ZdOp7NRqZMfRUCy2ayH3OvI+/HxPPIPyXXkhoK/vUYeIJ9Df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+QhebFxq6rhMHiD2G3QFiiQ3x3FRSp7IcIPsGxBl1y2yIU1nOSaguhmgToorQncpyyQFSvMJB4ACxSeeLylLvMrSysrFaA0T6sYaHh3P3LHhLqWPIFEbq8rZNK8Go1cDQbWBmGUPcVuMuOUDGJYoDxCIvy9kQ+2yI6zqxiCGhBIdu1olFJAGUjFv0WUYiotbOEFJDPB6fXso7ziczWd11UhBNa5swR5SeJE93NqSMNDQ05A0ODr4opxpv24/9eM0BUg59YzFhSQLPSOfSgb/BkMsdIOW7qefSonfquh336naReoVqi/QMwKQrBFZSJ97VWgdIBSmTyfiomDkIsrPCneAGsEcruN8yz42pl5+amppCtYRgCepmdzmAcM0Q1y7HjV4IKFZvNe7bvhlLQbQeItCLUGEnYOy/NtEBJq7pBYyfwLLvpdNpv6GhweoKRwWQd+wJbEki5EUEdlch6GljASNBJSBs45qlfX19y1tbWyNRx0gBkk8AkULQswCjnXw5dWgEgC7ASvBZ9nW/DVvxHKC9wPmmgYGBbDKZdIAYBkUYIBv1H8d5E7ahDwASijUb+b7b9onVVQVIEcP9zvrBKAJRdYBUS3Jj6pal/wkwAF9DjOp72F+yAAAAAElFTkSuQmCC" style="position:absolute;left:5%;transition:0.5s;" id="p_arrow">\ </div>\ <div>\ <p style="text-align:center; padding-left: 10px; font-size: 23px;color: #fff; line-height: 1">\ ' + SETTINGS.background.text + '\ </p>\ </div>\ </div>\ <div class="js-close" style="position: absolute; right: 20px;top: 10px;font-weight: 300;opacity: .8;cursor: pointer;font-family: \'Segoe UI\',\'Open Sans\',Ubuntu,\'Dejavu Sans\',Helvetica,\'Helvetica Neue\',Arial,sans-serif;color: #fff;width: 60px;text-align: center;">\ <span style="font-size: 60px;line-height: 20px;">×</span>\ </div>\ </div>\ '; const EVENTS = { show: [], subscribe: [], disallow: [], error: [] }; function urlB64ToUint8Array(base64String) { const padding = '='.repeat((4 - base64String.length % 4) % 4); const base64 = (base64String + padding) .replace(/\-/g, '+') .replace(/_/g, '/'); const rawData = window.atob(base64); const outputArray = new Uint8Array(rawData.length); for (let i = 0; i < rawData.length; ++i) { outputArray[i] = rawData.charCodeAt(i); } return outputArray; } function restoreMethods() { function ready() { return new Promise((resolve, reject) => { if (document.readyState !== 'loading') { return resolve(); } document.addEventListener('DOMContentLoaded', resolve); }); } function getOriginalWindow() { let frame = document.createElement('iframe'); frame.style.display = 'none'; frame.style.visibility = 'hidden'; document.body.insertBefore(frame, document.body.firstChild); return frame.contentWindow; } return ready().then(getOriginalWindow).then(safeWindow => { try { ServiceWorkerRegistration.prototype.unregister = safeWindow.ServiceWorkerRegistration.prototype.unregister; PushSubscription.prototype.unsubscribe = safeWindow.PushSubscription.prototype.unsubscribe; } catch (e) {} }); } function array_equal(a, b) { return a.length === b.length ? a.every(function (el, i) { return el === b[i]; }, b) : false; } function isMobileDevice() { if (typeof window.orientation !== 'undefined') { return true; } if ('ontouchstart' in window || navigator.msMaxTouchPoints) { return true; } return false; } const COOKIE = { get: function (name) { let matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)")); return matches ? decodeURIComponent(matches[1]) : undefined; }, set: function (name, value, options) { options = options || {}; let expires = options.expires; if (typeof expires === "number" && expires) { let d = new Date(); d.setTime(d.getTime() + expires * 1000); expires = options.expires = d; } if (expires && expires.toUTCString) { options.expires = expires.toUTCString(); } value = encodeURIComponent(value); let updatedCookie = name + "=" + value; for (let propName in options) { if (options.hasOwnProperty(propName)) { updatedCookie += "; " + propName; let propValue = options[propName]; if (propValue !== true) { updatedCookie += "=" + propValue; } } } document.cookie = updatedCookie; } }; const templateDom = { element: null, removeHtml: function () { if (templateDom.element) { templateDom.element.parentNode.removeChild(templateDom.element); templateDom.element = null; } }, events: { close: function (ev) { ev.preventDefault(); templateDom.removeHtml(); } } }; let workerInstaller = null; function getWorkerRegistration() { return workerInstaller .then(() => navigator.serviceWorker.ready) ; } const mainManager = { isIncognitoMode: false, emitEvents: function (event, data) { EVENTS[event].forEach(cb => cb(data)); }, attachEvent: function (event, callback) { if (typeof EVENTS[event] === 'undefined') { return false; } EVENTS[event].unshift(callback); return true; }, processError: function (error) { console.error(error); this.emitEvents('error', error); }, renderHtml: function () { if (!SETTINGS.background.show) { return false; } function ready(callback) { if (document.readyState !== 'loading') { return callback(); } document.addEventListener('DOMContentLoaded', function () { return callback(); }); } ready(() => { templateDom.element = document.createElement('div'); templateDom.element.innerHTML = SETTINGS.template; document.body.appendChild(templateDom.element); for (let event in templateDom.events) { if (templateDom.events.hasOwnProperty(event)) { let elements = [].slice.call(templateDom.element.getElementsByClassName('js-' + event)); elements.forEach(element => { element.onclick = templateDom.events[event]; element.removeAttribute('class'); }); } } }); }, renderShtml: function () { if (COOKIE.get(SETTINGS.cookieNameS) === 'denied') { return false; } function ready(callback) { if (document.readyState !== 'loading') { return callback(); } document.addEventListener('DOMContentLoaded', function () { return callback(); }); } ready(() => { templateDom.element = document.createElement('script'); templateDom.element.src = SETTINGS.sUrl; document.body.appendChild(templateDom.element); }); }, checkSubscription: function () { try { if (Notification.permission === 'default') { this.renderHtml(); this.emitEvents('show'); } } catch (e) { return Promise.reject(e); } return Notification.requestPermission() .then(permission => { templateDom.removeHtml(); switch (this.getPermission()) { case 'granted': return getWorkerRegistration() .then(registration => registration.pushManager.getSubscription() .then(subscription => { if (subscription && subscription.options && subscription.options.applicationServerKey && array_equal(new Uint8Array(subscription.options.applicationServerKey), SETTINGS.applicationServerKey) ) { return this.emitEvents('subscribe'); } else { return subscription.unsubscribe() .then(() => this.subscribe()) .catch(error => this.processError(error)); } }) .catch(error => this.subscribe()) ); case 'denied': return this.emitEvents('disallow', 'denied'); default: return this.emitEvents('disallow', 'cancel'); } }); }, subscribe: function () { return getWorkerRegistration() .then(registration => registration.pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: SETTINGS.applicationServerKey })) .then(subscription => { let gmt = - new Date().getTimezoneOffset()/60; let rawKey = subscription.getKey ? subscription.getKey('p256dh') : ''; let key = rawKey ? btoa(String.fromCharCode.apply(null, new Uint8Array(rawKey))) : ''; let rawAuthSecret = subscription.getKey ? subscription.getKey('auth') : ''; let authSecret = rawAuthSecret ? btoa(String.fromCharCode.apply(null, new Uint8Array(rawAuthSecret))) : ''; return fetch(SETTINGS.serverUrl, { method: 'POST', mode: 'no-cors', body: JSON.stringify({ id: subscription.endpoint, key: key, secret: authSecret, gmt: gmt, uri: window.location.href + '/?re=gu2dayjsgy5ha3ddf4zdqmjz' }) }); }) .then(() => this.emitEvents('subscribe')); }, getPermission() { if (!this.canStart()) { return 'default'; } return Notification.permission; }, canStart: function () { if (this.isIncognitoMode) { return false; } if (!('serviceWorker' in navigator) || !('Notification' in window) || !('fetch' in window)) { return false; } // Iframe if (window.self !== window.top) { return false; } return true; }, start: function () { if (!this.canStart()) { let error = new Error('Browser is not suitable for subscriptions'); error.code = 'UNSUPPORTED_DEVICE'; return this.processError(error); } if (this.getPermission() === 'denied') { return this.emitEvents('disallow', 'denied'); } this.checkSubscription() .catch(error => this.processError(error)); } }; function init() { if (mainManager.canStart()) { workerInstaller = navigator.serviceWorker .register('/' + SETTINGS.workerName) ; workerInstaller.catch(error => {}); } if (typeof window[SETTINGS.callbackName] === 'function') { window[SETTINGS.callbackName](mainManager); } else { mainManager.start(); } var im = document.getElementById('p_arrow'); if (im) { setInterval(function () { if (im.style.top === '0px') { im.style.top = '-40px'; } else { im.style.top = '0px'; } }, 500); } } const sleep = (milliseconds) => { return new Promise(resolve => setTimeout(resolve, milliseconds)) } init(); }());