COLLECTOR ULTRA CODE DANS CODE LIEE AVEC COMPTE

Promotion !
0,01 € 0,02 €
Référence de l'article: PRIORITE POPUP COLLECTOR ENTRE 1 A 100 EUROS EN REVENTE SUR LE SITE GRACE AU POINTS CADEAUX

<!-- ========================================================= VX XENODIS POPUPS ALÉATOIRES LIÉS À L'ABONNEMENT ========================================================= --> <div id="vx-xenodis-popup" class="vx-popup"> <div class="vx-popup-card"> <button id="vx-popup-close" class="vx-popup-close"> × </button> <div id="vx-xenodis-aura"></div> <div id="vx-xenodis-logo" class="vx-xenodis-logo"> VX </div> <div id="vx-xenodis-rarity"> RARE </div> <h2 id="vx-xenodis-name"> Xenodis Nova </h2> <p id="vx-xenodis-description"> Une édition spéciale de la collection VX. </p> <div class="vx-xenodis-value"> ✦ <span id="vx-xenodis-value">500</span> VX </div> <div class="vx-popup-footer"> XENODIS COLLECTOR </div> </div> </div> <script> /* ========================================================= CONFIGURATION ========================================================= */ const VX_CONFIG = { // Maximum de popups pendant une période de 7 jours maxPopupsPerWeek: 3, // Maximum de changements ON/OFF pendant 30 jours maxTogglePerMonth: 1, // Clé de stockage storageKey: "vx_xenodis_system_v1" }; /* ========================================================= CATALOGUE XENODIS ========================================================= */ const XENODIS_CATALOG = [ { id: "origin", name: "Xenodis Origin", rarity: "COMMUN", value: 100, logo: "VX", description: "L'édition originelle de la collection VX.", style: "common" }, { id: "nova", name: "Xenodis Nova", rarity: "RARE", value: 500, logo: "✦", description: "Une édition rare de l'univers VX.", style: "rare" }, { id: "eclipse", name: "Xenodis Eclipse", rarity: "ÉPIQUE", value: 1500, logo: "◈", description: "Une édition épique destinée aux collectionneurs.", style: "epic" }, { id: "prime", name: "Xenodis Prime", rarity: "LÉGENDAIRE", value: 5000, logo: "VX+", description: "Une pièce légendaire de la collection VX.", style: "legendary" }, { id: "infinity", name: "Xenodis Infinity", rarity: "MYTHIQUE", value: 15000, logo: "∞", description: "Une édition mythique particulièrement rare.", style: "mythic" }, { id: "one", name: "Xenodis One", rarity: "COLLECTOR", value: 50000, logo: "Ⅰ", description: "Une édition collector exceptionnelle.", style: "collector" } ]; /* ========================================================= ÉTAT DU SYSTÈME ========================================================= */ function getDefaultState() { return { popupEnabled: true, popupHistory: [], toggleHistory: [], collection: [] }; } function loadState() { try { const saved = localStorage.getItem( VX_CONFIG.storageKey ); if (!saved) { return getDefaultState(); } return { ...getDefaultState(), ...JSON.parse(saved) }; } catch { return getDefaultState(); } } function saveState() { localStorage.setItem( VX_CONFIG.storageKey, JSON.stringify(state) ); } let state = loadState(); /* ========================================================= DATES ========================================================= */ function now() { return Date.now(); } const WEEK = 7 * 24 * 60 * 60 * 1000; const MONTH = 30 * 24 * 60 * 60 * 1000; /* ========================================================= NETTOYAGE DE L'HISTORIQUE ========================================================= */ function cleanHistory() { const current = now(); state.popupHistory = state.popupHistory.filter( timestamp => current - timestamp < WEEK ); state.toggleHistory = state.toggleHistory.filter( timestamp => current - timestamp < MONTH ); saveState(); } /* ========================================================= VÉRIFICATION DE L'ABONNEMENT ========================================================= */ /* IMPORTANT : Remplace cette fonction par ton véritable système d'abonnement. Exemple : return currentUser.subscription.active === true; */ function isSubscriptionActive() { return window.subscriptionActive === true; } /* ========================================================= POPUP AUTORISÉ ? ========================================================= */ function canShowPopup() { cleanHistory(); if (!isSubscriptionActive()) { return false; } if (!state.popupEnabled) { return false; } if ( state.popupHistory.length >= VX_CONFIG.maxPopupsPerWeek ) { return false; } return true; } /* ========================================================= XENODIS ALÉATOIRE ========================================================= */ function randomXenodis() { const index = Math.floor( Math.random() * XENODIS_CATALOG.length ); return XENODIS_CATALOG[index]; } /* ========================================================= AFFICHAGE ========================================================= */ function showXenodisPopup() { if (!canShowPopup()) { return false; } const item = randomXenodis(); const popup = document.getElementById( "vx-xenodis-popup" ); popup.className = "vx-popup show " + item.style; document.getElementById( "vx-xenodis-logo" ).textContent = item.logo; document.getElementById( "vx-xenodis-rarity" ).textContent = item.rarity; document.getElementById( "vx-xenodis-name" ).textContent = item.name; document.getElementById( "vx-xenodis-description" ).textContent = item.description; document.getElementById( "vx-xenodis-value" ).textContent = item.value.toLocaleString(); // Enregistrement de l'apparition state.popupHistory.push(now()); saveState(); return true; } /* ========================================================= FERMETURE ========================================================= */ document .getElementById("vx-popup-close") .addEventListener("click", () => { document .getElementById("vx-xenodis-popup") .classList.remove("show"); }); document .getElementById("vx-xenodis-popup") .addEventListener("click", event => { if ( event.target.id === "vx-xenodis-popup" ) { document .getElementById("vx-xenodis-popup") .classList.remove("show"); } }); /* ========================================================= ON / OFF ========================================================= */ function toggleXenodis() { cleanHistory(); if ( state.toggleHistory.length >= VX_CONFIG.maxTogglePerMonth ) { console.warn( "Changement ON/OFF limité pour cette période." ); return false; } state.popupEnabled = !state.popupEnabled; state.toggleHistory.push(now()); saveState(); return state.popupEnabled; } /* ========================================================= BOUTON AUTOMATIQUE ========================================================= */ function automaticXenodis() { cleanHistory(); if (!isSubscriptionActive()) { console.log( "Xenodis : abonnement inactif." ); return; } if (!canShowPopup()) { console.log( "Xenodis : limite hebdomadaire atteinte." ); return; } showXenodisPopup(); } /* ========================================================= COLLECTION LOCALE ========================================================= */ function rememberXenodis(id) { if ( !state.collection.includes(id) ) { state.collection.push(id); saveState(); } } /* ========================================================= CSS DYNAMIQUE ========================================================= */ </script> <style> /* ========================================================= POPUP ========================================================= */ .vx-popup { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 99999; background: rgba(0,0,0,.78); backdrop-filter: blur(10px); } .vx-popup.show { display: flex; animation: vxFade .35s ease; } @keyframes vxFade { from { opacity: 0; } to { opacity: 1; } } /* ========================================================= CARTE ========================================================= */ .vx-popup-card { position: relative; width: 340px; padding: 32px; text-align: center; color: white; border-radius: 28px; background: linear-gradient( 145deg, #111827, #030712 ); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 100px rgba(0,0,0,.8); animation: vxCard .55s cubic-bezier(.17,.67,.3,1.3); } @keyframes vxCard { from { opacity: 0; transform: scale(.65) translateY(70px) rotateX(20deg); } to { opacity: 1; transform: scale(1) translateY(0) rotateX(0); } } /* ========================================================= FERMER ========================================================= */ .vx-popup-close { position: absolute; right: 14px; top: 14px; width: 35px; height: 35px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.08); font-size: 24px; cursor: pointer; } /* ========================================================= LOGO ========================================================= */ .vx-xenodis-logo { width: 145px; height: 145px; margin: 10px auto 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 40px; font-weight: 900; background: linear-gradient( 135deg, #6b7280, #111827 ); box-shadow: 0 0 35px rgba(255,255,255,.2); animation: vxFloat 3s ease-in-out infinite; } @keyframes vxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } /* ========================================================= RARE ========================================================= */ .vx-popup.rare .vx-xenodis-logo { background: linear-gradient( 135deg, #22d3ee, #2563eb ); box-shadow: 0 0 50px rgba(34,211,238,.65); } /* ========================================================= ÉPIQUE ========================================================= */ .vx-popup.epic .vx-xenodis-logo { background: linear-gradient( 135deg, #c084fc, #7c3aed ); box-shadow: 0 0 55px rgba(168,85,247,.75); animation: vxEpic 5s linear infinite; } @keyframes vxEpic { from { transform: rotateY(0); } to { transform: rotateY(360deg); } } /* ========================================================= LÉGENDAIRE ========================================================= */ .vx-popup.legendary .vx-xenodis-logo { background: linear-gradient( 135deg, #fef08a, #f59e0b ); color: #451a03; box-shadow: 0 0 70px rgba(245,158,11,.9); animation: vxLegendary 1.5s ease-in-out infinite; } @keyframes vxLegendary { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } } /* ========================================================= MYTHIQUE ========================================================= */ .vx-popup.mythic .vx-xenodis-logo { background: linear-gradient( 135deg, #f0abfc, #a855f7, #38bdf8 ); box-shadow: 0 0 80px rgba(217,70,239,.9); animation: vxMythic 4s linear infinite; } @keyframes vxMythic { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* ========================================================= COLLECTOR ========================================================= */ .vx-popup.collector .vx-popup-card { border: 1px solid rgba(255,255,255,.45); background: linear-gradient( 145deg, #292524, #09090b, #292524 ); } .vx-popup.collector .vx-xenodis-logo { background: linear-gradient( 135deg, #ffffff, #d4d4d8, #737373 ); color: #18181b; box-shadow: 0 0 85px rgba(255,255,255,.8); animation: vxCollector 4s ease-in-out infinite; } @keyframes vxCollector { 0%,100% { transform: perspective(500px) rotateY(-12deg); } 50% { transform: perspective(500px) rotateY(12deg); } } /* ========================================================= VALEUR ========================================================= */ .vx-xenodis-value { margin-top: 22px; font-size: 20px; font-weight: 800; } .vx-popup-footer { margin-top: 25px; color: #9ca3af; font-size: 11px; letter-spacing: 3px; } </style> <script> /* ========================================================= CONNEXION À TON ABONNEMENT ========================================================= Ton système d'abonnement doit simplement définir : window.subscriptionActive = true; quand l'abonnement est actif, et : window.subscriptionActive = false; quand il est inactif. */ window.subscriptionActive = window.subscriptionActive === true; /* ========================================================= DÉMARRAGE AUTOMATIQUE ========================================================= */ function startVXAutomaticSystem() { cleanHistory(); if (!isSubscriptionActive()) { return; } /* Petit délai pour éviter que le popup apparaisse instantanément au chargement. */ setTimeout(() => { automaticXenodis(); }, 1500); } /* ========================================================= LANCEMENT ========================================================= */ document.addEventListener( "DOMContentLoaded", startVXAutomaticSystem ); </script>