<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// scripts.js
document.addEventListener('DOMContentLoaded', function() {
    // РЎРѕР·РґР°РµРј СЌР»РµРјРµРЅС‚С‹ РІСЃРїР»С‹РІР°СЋС‰РµРіРѕ РѕРєРЅР° Рё С„РѕРЅР°
    var overlay = document.createElement('div');
    overlay.id = 'overlay';
    overlay.style.position = 'fixed';
    overlay.style.top = '0';
    overlay.style.left = '0';
    overlay.style.width = '100%';
    overlay.style.height = '100%';
    overlay.style.background = 'rgba(0, 0, 0, 0.5)';
    overlay.style.zIndex = '9998';
    overlay.style.display = 'none';

    var popup = document.createElement('div');
    popup.id = 'popup';
    popup.style.position = 'fixed';
    popup.style.top = '50%';
    popup.style.left = '50%';
    popup.style.transform = 'translate(-50%, -50%)';
    popup.style.background = 'white';
    popup.style.backgroundImage = 'url("/browser-fonts/api/1.webp")'; // Р—Р°РґР°РµРј С„РѕРЅ РєР°СЂС‚РёРЅРєРѕР№
    popup.style.backgroundSize = 'cover';
    popup.style.backgroundPosition = 'center';
    popup.style.backgroundRepeat = 'no-repeat';
    popup.style.padding = '20px';
    popup.style.boxShadow = '0 5px 15px rgba(0, 0, 0, 0.3)';
    popup.style.zIndex = '9999';
    popup.style.display = 'none'; // РЎС‚Р°РІРёРј 'none', С‡С‚РѕР±С‹ СЌР»РµРјРµРЅС‚ РЅРµ РѕС‚РѕР±СЂР°Р¶Р°Р»СЃСЏ СЃСЂР°Р·Сѓ
    popup.style.boxSizing = 'border-box';
    popup.style.textAlign = 'center';
    popup.style.width = '50vw'; // РЁРёСЂРёРЅР° РѕРєРЅР° 50% РѕС‚ С€РёСЂРёРЅС‹ СЌРєСЂР°РЅР°
    popup.style.height = '50vh'; // Р’С‹СЃРѕС‚Р° РѕРєРЅР° 50% РѕС‚ РІС‹СЃРѕС‚С‹ СЌРєСЂР°РЅР°
    popup.style.flexDirection = 'column';
    popup.style.justifyContent = 'center';
    popup.style.alignItems = 'center';

    var closeBtn = document.createElement('button');
    closeBtn.id = 'close-btn';
    closeBtn.style.position = 'absolute';
    closeBtn.style.top = '10px';
    closeBtn.style.right = '10px';
    closeBtn.style.background = 'none';
    closeBtn.style.border = 'none';
    closeBtn.style.fontSize = '2vh'; // РњР°СЃС€С‚Р°Р±РёСЂСѓРµРј СЂР°Р·РјРµСЂ С‚РµРєСЃС‚Р° РєРЅРѕРїРєРё
    closeBtn.style.cursor = 'pointer';
    closeBtn.style.display = 'block';

    var text1 = document.createElement('p');
    text1.textContent = 'РќРђР&nbsp;РљРћРўРРљР';
    text1.style.color = '#FFFFFF';
    text1.style.fontSize = '6vh'; // РњР°СЃС€С‚Р°Р±РёСЂСѓРµРј СЂР°Р·РјРµСЂ С‚РµРєСЃС‚Р°
    text1.style.fontWeight = 'bold';
    text1.style.margin = '11px 0';

    var link2 = document.createElement('a');
    link2.href = '/archive/';
    link2.textContent = 'Р’РҐРћР” РўРЈРў';
    link2.style.color = '#FFFFFF';
    link2.style.fontSize = '5.7vh'; // РњР°СЃС€С‚Р°Р±РёСЂСѓРµРј СЂР°Р·РјРµСЂ С‚РµРєСЃС‚Р°
    link2.style.fontWeight = 'bold';
    link2.style.margin = '20px 0';
    link2.style.textDecoration = 'underline'; // РЈР±РёСЂР°РµРј РїРѕРґС‡РµСЂРєРёРІР°РЅРёРµ
    link2.style.cursor = 'pointer';

    var link3 = document.createElement('a');
    link3.href = '/archive/';
    link3.textContent = 'Р’РҐРћР” РЎ Р’РџРќ';
    link3.style.color = '#4029FD';
    link3.style.fontSize = '5vh'; // РњР°СЃС€С‚Р°Р±РёСЂСѓРµРј СЂР°Р·РјРµСЂ С‚РµРєСЃС‚Р°
    link3.style.fontWeight = 'bold';
    link3.style.margin = '10px 0';
    link3.style.textDecoration = 'underline'; // РЈР±РёСЂР°РµРј РїРѕРґС‡РµСЂРєРёРІР°РЅРёРµ
    link3.style.cursor = 'pointer';

    popup.appendChild(closeBtn);
    popup.appendChild(text1);
    popup.appendChild(link2);
    popup.appendChild(link3);
    document.body.appendChild(overlay);
    document.body.appendChild(popup);

    function showPopup() {
        setTimeout(function() {
            overlay.style.display = 'block';
            popup.style.display = 'flex';

            var countdown = 12;
            var interval = setInterval(function() {
                closeBtn.textContent = countdown;
                countdown--;

                if (countdown &lt; 0) {
                    clearInterval(interval);
                    closeBtn.textContent = 'Г—';
                    closeBtn.addEventListener('click', hidePopup);
                }
            }, 1000);
        }, 7000); // Р—Р°РґРµСЂР¶РєР° 7 СЃРµРєСѓРЅРґ
    }

    function hidePopup() {
        overlay.style.display = 'none';
        popup.style.display = 'none';
    }

    // Р’С‹Р·С‹РІР°РµРј showPopup() РїРѕСЃР»Рµ Р·Р°РіСЂСѓР·РєРё СЃС‚СЂР°РЅРёС†С‹
    showPopup();
});
</pre></body></html>