/*
- Фикс юникода в CMD
- Просто импортируйте этот файл.
- https://t.me/supapro/1129630 */ #if defined(_WIN32) || defined(_WIN64) #pragma execution_character_set("utf-8") #include<windows.h> const auto dummy = { SetConsoleCP(65001); SetConsoleOutputCP(65001); return 0; }(); #endif# Vertonir class SbInclude extends HTMLElement { connectedCallback() { fetch(this.dataset.src) .then((res) => res.text()) .then((data) => { this.outerHTML = data }) } }
customElements.define('sb-include', SbInclude) const createLoop = (onStep, timeout) => { let running = false
const iteration = () => { onStep() if (running) setTimeout(iteration, timeout) }
const start = () => { running = true iteration() }
// /