Internet-programming-Pibd-2.../dist/assets/main-29d200ed.js

2 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2023-12-07 22:24:21 +04:00
/* empty css */(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function o(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function n(e){if(e.ep)return;e.ep=!0;const t=o(e);fetch(e.href,t)}})();function c(i){console.info("Loaded");const r=document.querySelectorAll(`${i} img`);for(let t=0;t<r.length;t+=1)r[t].setAttribute("class","banner-hide");let o=r.length-1,n=0;function e(){r[n].setAttribute("class","banner-show"),r[o].setAttribute("class","banner-hide"),console.info("Banner changed"),o=n,n+=1,n===r.length&&(n=0),setTimeout(e,5e3)}e()}document.addEventListener("DOMContentLoaded",()=>{c("#banner")});