<style>
.mtg-float{
position:fixed;
background:rgba(0,0,0,.75);
color:#fff;
padding:8px 12px;
border-radius:18px;
font-family:Arial,sans-serif;
font-size:13px;
z-index:999999;
}
#mtg-float-1{ bottom:14px; right:14px; }
#mtg-float-2{ bottom:54px; right:14px; }
</style>
<script>
(function () {
// 🔗 LINKS
var link1 = "https://es.quora.com/profile/Bernardo-Lopera-2/https-www-cursoeconomicobernardolopera-site-2026-02-script-es-un-contador-y-el-banner-para-html-m-1-Link-del-script-pa?ch=15&oid=242503168&share=8ef810ab&srid=5vtvkW&target_type=post";
var link2 = link1;
var segundos = 5;
var cookieName = "mtg_double_redirect_1h";
// ❌ No editor / preview
if (location.hostname.indexOf("blogger.com") !== -1) return;
if (location.href.indexOf("preview") !== -1) return;
// 📱 Solo móvil
if (window.innerWidth > 768) return;
// 🍪 Cookie 1 hora
if (document.cookie.indexOf(cookieName + "=1") !== -1) return;
function setCookie() {
var d = new Date();
d.setTime(d.getTime() + 60 * 60 * 1000);
document.cookie = cookieName + "=1; expires=" + d.toUTCString() + "; path=/";
}
function iniciarContador() {
var box1 = document.createElement("div");
box1.id = "mtg-float-1";
box1.className = "mtg-float";
box1.innerHTML = "Cargando <b>" + segundos + "</b>s";
var box2 = document.createElement("div");
box2.id = "mtg-float-2";
box2.className = "mtg-float";
box2.innerHTML = "Preparando <b>" + segundos + "</b>s";
document.body.appendChild(box1);
document.body.appendChild(box2);
var s = segundos;
var timer = setInterval(function () {
s--;
box1.innerHTML = "Cargando <b>" + s + "</b>s";
box2.innerHTML = "Preparando <b>" + s + "</b>s";
if (s <= 0) {
clearInterval(timer);
setCookie();
// 🔁 Redirección controlada
location.href = link1;
setTimeout(function () {
location.replace(link2);
}, 300);
}
}, 1000);
}
// ⏳ Esperar a que cargue el body
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", iniciarContador);
} else {
iniciarContador();
}
})();
</script>







0 Comentarios