Upload index.html
Browse files- index.html +125 -2
index.html
CHANGED
|
@@ -133,6 +133,18 @@ body{grid-template-columns:1fr;grid-template-rows:auto 1fr}
|
|
| 133 |
.hero{grid-template-columns:1fr;padding-bottom:48px}.hero svg{width:88px;order:-1;justify-self:start}
|
| 134 |
.cols>div{border-left:0;border-top:1px solid var(--line);padding:20px 0}.cols>div:first-child{border-top:0}
|
| 135 |
.ruler{height:120px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
</style>
|
| 137 |
</head>
|
| 138 |
<body>
|
|
@@ -158,6 +170,8 @@ body{grid-template-columns:1fr;grid-template-rows:auto 1fr}
|
|
| 158 |
<a class="tab" data-p="models" href="#models" data-t="navModels"></a>
|
| 159 |
<a class="tab" id="navData" data-p="datasets" href="#datasets" data-t="navData" hidden></a>
|
| 160 |
<a class="tab" data-p="research" href="#research" data-t="navRes"></a>
|
|
|
|
|
|
|
| 161 |
<a class="tab" data-p="about" href="#about" data-t="navAbout"></a>
|
| 162 |
</nav>
|
| 163 |
<div class="sl" id="sidel" data-t="hModels" hidden></div>
|
|
@@ -223,6 +237,41 @@ body{grid-template-columns:1fr;grid-template-rows:auto 1fr}
|
|
| 223 |
</div>
|
| 224 |
</section>
|
| 225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
<section class="panel" data-p="about" hidden>
|
| 227 |
<h2 data-t="abH"></h2>
|
| 228 |
<div class="about"><p data-t="ab1"></p><p data-t="ab2"></p></div>
|
|
@@ -321,6 +370,13 @@ r4h:"Inferencia eficiente",r4:"Modelos pensados para el hardware que la gente ya
|
|
| 321 |
abH:"Acerca de VeroLM",ab1:"VeroLM es un laboratorio independiente de investigación de IA abierta y experimental. Nuestro trabajo principal es entrenar modelos de pequeños a grandes, en arquitecturas consolidadas y experimentales.",ab2:"Todo lo que publicamos está en Hugging Face, donde cualquiera puede inspeccionarlo, descargarlo y construir sobre ello. Muchos modelos también se ejecutan directamente aquí.",ctaHF:"Seguir en Hugging Face",navNews:"Noticias",hNews:"Noticias",subNews:"Últimas noticias, anuncios y actualizaciones.",newsEmpty:"Todavía no hay nada.",newsEmptyS:"Los nuevos anuncios aparecerán aquí."}
|
| 322 |
};
|
| 323 |
Object.keys(X).forEach(l => Object.assign(T[l], X[l]));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
let Q = "", ONLY = false;
|
| 325 |
let lang = "en";
|
| 326 |
const $ = s => document.querySelector(s);
|
|
@@ -580,12 +636,14 @@ async function load(){
|
|
| 580 |
|
| 581 |
const sizeM = n => { const m = n.match(/(\d+(?:\.\d+)?)\s?([kmb])\b/i); return m ? +m[1] * unit[m[2].toLowerCase()] : null; };
|
| 582 |
const pos = M => Math.max(0, Math.min(100, (Math.log10(M) + 1) / 6 * 100));
|
| 583 |
-
const PANELS = ["overview","news","models","datasets","research","about"];
|
| 584 |
function show(p){
|
| 585 |
if(!PANELS.includes(p)) p = "overview";
|
| 586 |
document.querySelectorAll(".panel").forEach(s => s.hidden = s.dataset.p !== p);
|
| 587 |
document.querySelectorAll(".tab").forEach(a => a.setAttribute("aria-current", a.dataset.p === p ? "page" : "false"));
|
| 588 |
$("#main").scrollTo(0, 0); $("#side").classList.remove("open");
|
|
|
|
|
|
|
| 589 |
}
|
| 590 |
|
| 591 |
/* ---- NEWS: add the newest items to this list. Example:
|
|
@@ -675,7 +733,7 @@ function renderDatasets(){
|
|
| 675 |
}
|
| 676 |
|
| 677 |
function render(){
|
| 678 |
-
renderDatasets(); renderRuler(); renderSide(); renderNews();
|
| 679 |
const box = $("#list");
|
| 680 |
if(SERIES === null) return;
|
| 681 |
box.replaceChildren();
|
|
@@ -1941,6 +1999,71 @@ $("#rgo").onclick = async () => {
|
|
| 1941 |
go.disabled = false;
|
| 1942 |
};
|
| 1943 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1944 |
addEventListener("hashchange", () => show(location.hash.slice(1)));
|
| 1945 |
$("#q").oninput = e => { Q = e.target.value; render(); };
|
| 1946 |
$("#fRun").onclick = e => { ONLY = !ONLY; e.currentTarget.setAttribute("aria-pressed", ONLY); render(); };
|
|
|
|
| 133 |
.hero{grid-template-columns:1fr;padding-bottom:48px}.hero svg{width:88px;order:-1;justify-self:start}
|
| 134 |
.cols>div{border-left:0;border-top:1px solid var(--line);padding:20px 0}.cols>div:first-child{border-top:0}
|
| 135 |
.ruler{height:120px}}
|
| 136 |
+
|
| 137 |
+
.form{display:flex;flex-direction:column;gap:14px;max-width:640px}
|
| 138 |
+
.form label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;color:var(--mut)}
|
| 139 |
+
.form .in,.form textarea{width:100%;border-radius:10px}
|
| 140 |
+
.form textarea{min-height:150px}
|
| 141 |
+
.form .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;overflow:hidden}
|
| 142 |
+
.cnt{font-size:.78rem;font-weight:400;color:var(--mut);align-self:flex-end}
|
| 143 |
+
.fstat{min-height:1.4em;margin:0;color:var(--mut);font-size:.9rem}
|
| 144 |
+
.flash{border-left:3px solid #22a559;padding:2px 0 2px 14px;margin:0 0 24px;color:var(--fg);max-width:70ch}
|
| 145 |
+
.ni.c-fb{--c:#3b82f6}.ni.c-bug{--c:#e10b17}.ni.c-help{--c:#f2b705}.ni.c-idea{--c:#22a559}
|
| 146 |
+
.ni p.pm{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--fg)}
|
| 147 |
+
.cbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
|
| 148 |
</style>
|
| 149 |
</head>
|
| 150 |
<body>
|
|
|
|
| 170 |
<a class="tab" data-p="models" href="#models" data-t="navModels"></a>
|
| 171 |
<a class="tab" id="navData" data-p="datasets" href="#datasets" data-t="navData" hidden></a>
|
| 172 |
<a class="tab" data-p="research" href="#research" data-t="navRes"></a>
|
| 173 |
+
<a class="tab" data-p="community" href="#community" data-t="navComm"></a>
|
| 174 |
+
<a class="tab" data-p="support" href="#support" data-t="navSup"></a>
|
| 175 |
<a class="tab" data-p="about" href="#about" data-t="navAbout"></a>
|
| 176 |
</nav>
|
| 177 |
<div class="sl" id="sidel" data-t="hModels" hidden></div>
|
|
|
|
| 237 |
</div>
|
| 238 |
</section>
|
| 239 |
|
| 240 |
+
<section class="panel" data-p="community" hidden>
|
| 241 |
+
<h2 data-t="hComm"></h2>
|
| 242 |
+
<p class="sub" data-t="subComm"></p>
|
| 243 |
+
<p class="note" id="commNote" data-t="commLocal" hidden></p>
|
| 244 |
+
<p class="flash" id="commFlash" data-t="commThanks" role="status" hidden></p>
|
| 245 |
+
<div class="cbar"><a class="btn red" href="#support" data-t="commWrite"></a></div>
|
| 246 |
+
<div class="news" id="commList"></div>
|
| 247 |
+
</section>
|
| 248 |
+
|
| 249 |
+
<section class="panel" data-p="support" hidden>
|
| 250 |
+
<h2 data-t="hSup"></h2>
|
| 251 |
+
<p class="sub" data-t="subSup"></p>
|
| 252 |
+
<form class="form" id="supForm" novalidate>
|
| 253 |
+
<label><span data-t="fCat"></span>
|
| 254 |
+
<select class="in" id="fCat">
|
| 255 |
+
<option value="fb" data-t="catFb"></option>
|
| 256 |
+
<option value="bug" data-t="catBug"></option>
|
| 257 |
+
<option value="help" data-t="catHelp"></option>
|
| 258 |
+
<option value="idea" data-t="catIdea"></option>
|
| 259 |
+
</select>
|
| 260 |
+
</label>
|
| 261 |
+
<label><span data-t="fName"></span>
|
| 262 |
+
<input class="in" id="fName" type="text" maxlength="40" autocomplete="nickname">
|
| 263 |
+
</label>
|
| 264 |
+
<label><span data-t="fMsg"></span>
|
| 265 |
+
<textarea id="fMsg" maxlength="1000" required></textarea>
|
| 266 |
+
<span class="cnt" id="fCnt">0/1000</span>
|
| 267 |
+
</label>
|
| 268 |
+
<div class="hp" aria-hidden="true"><label>Website <input id="fHp" type="text" tabindex="-1" autocomplete="off"></label></div>
|
| 269 |
+
<p class="note" data-t="fPub"></p>
|
| 270 |
+
<div class="cta"><button class="btn red" id="fSend" type="submit" data-t="fSend"></button></div>
|
| 271 |
+
<p class="fstat" id="fStat" role="status" aria-live="polite"></p>
|
| 272 |
+
</form>
|
| 273 |
+
</section>
|
| 274 |
+
|
| 275 |
<section class="panel" data-p="about" hidden>
|
| 276 |
<h2 data-t="abH"></h2>
|
| 277 |
<div class="about"><p data-t="ab1"></p><p data-t="ab2"></p></div>
|
|
|
|
| 370 |
abH:"Acerca de VeroLM",ab1:"VeroLM es un laboratorio independiente de investigación de IA abierta y experimental. Nuestro trabajo principal es entrenar modelos de pequeños a grandes, en arquitecturas consolidadas y experimentales.",ab2:"Todo lo que publicamos está en Hugging Face, donde cualquiera puede inspeccionarlo, descargarlo y construir sobre ello. Muchos modelos también se ejecutan directamente aquí.",ctaHF:"Seguir en Hugging Face",navNews:"Noticias",hNews:"Noticias",subNews:"Últimas noticias, anuncios y actualizaciones.",newsEmpty:"Todavía no hay nada.",newsEmptyS:"Los nuevos anuncios aparecerán aquí."}
|
| 371 |
};
|
| 372 |
Object.keys(X).forEach(l => Object.assign(T[l], X[l]));
|
| 373 |
+
const X2 = {
|
| 374 |
+
en:{navComm:"Community",navSup:"Support & Feedback",hComm:"Community",subComm:"Messages, ideas and questions from visitors.",commEmpty:"No messages yet.",commEmptyS:"Be the first to write something.",commWrite:"Write a message",commLocal:"Community posts aren’t connected to a shared server yet, so messages are stored only on this device.",commThanks:"Thanks! Your message is now in the community.",hSup:"Support & Feedback",subSup:"Ask for help, report a bug or share an idea. Whatever you write is posted to the Community tab automatically.",fCat:"Type",catFb:"Feedback",catBug:"Bug report",catHelp:"Support question",catIdea:"Idea",fName:"Name (optional)",fMsg:"Your message",fPub:"Your message will be public in the Community tab. Please don’t include private information.",fSend:"Send",fSending:"Sending...",fShort:"Please write a little more.",fWait:"Please wait a few seconds before posting again.",fErr:"Couldn’t send your message. Please try again.",anon:"Anonymous"},
|
| 375 |
+
tr:{navComm:"Topluluk",navSup:"Destek ve Geri Bildirim",hComm:"Topluluk",subComm:"Ziyaretçilerden gelen mesajlar, fikirler ve sorular.",commEmpty:"Henüz mesaj yok.",commEmptyS:"İlk mesajı sen yaz.",commWrite:"Mesaj yaz",commLocal:"Topluluk paylaşımları henüz ortak bir sunucuya bağlı değil, bu yüzden mesajlar yalnızca bu cihazda saklanıyor.",commThanks:"Teşekkürler! Mesajın artık toplulukta.",hSup:"Destek ve Geri Bildirim",subSup:"Yardım iste, bir hatayı bildir ya da bir fikrini paylaş. Yazdığın her şey otomatik olarak Topluluk sekmesine gönderilir.",fCat:"Tür",catFb:"Geri bildirim",catBug:"Hata bildirimi",catHelp:"Destek sorusu",catIdea:"Fikir",fName:"İsim (isteğe bağlı)",fMsg:"Mesajın",fPub:"Mesajın Topluluk sekmesinde herkese açık olacak. Lütfen özel bilgi yazma.",fSend:"Gönder",fSending:"Gönderiliyor...",fShort:"Lütfen biraz daha yaz.",fWait:"Tekrar paylaşmadan önce birkaç saniye bekle.",fErr:"Mesajın gönderilemedi. Lütfen tekrar dene.",anon:"Anonim"},
|
| 376 |
+
fr:{navComm:"Communauté",navSup:"Aide et retours",hComm:"Communauté",subComm:"Messages, idées et questions des visiteurs.",commEmpty:"Aucun message pour le moment.",commEmptyS:"Soyez le premier à écrire quelque chose.",commWrite:"Écrire un message",commLocal:"Les messages de la communauté ne sont pas encore reliés à un serveur partagé : ils ne sont conservés que sur cet appareil.",commThanks:"Merci ! Votre message est maintenant dans la communauté.",hSup:"Aide et retours",subSup:"Demandez de l’aide, signalez un bug ou partagez une idée. Tout ce que vous écrivez est publié automatiquement dans l’onglet Communauté.",fCat:"Type",catFb:"Retour",catBug:"Signalement de bug",catHelp:"Question d’assistance",catIdea:"Idée",fName:"Nom (facultatif)",fMsg:"Votre message",fPub:"Votre message sera public dans l’onglet Communauté. N’y mettez pas d’informations privées.",fSend:"Envoyer",fSending:"Envoi...",fShort:"Merci d’écrire un peu plus.",fWait:"Patientez quelques secondes avant de publier à nouveau.",fErr:"Impossible d’envoyer votre message. Veuillez réessayer.",anon:"Anonyme"},
|
| 377 |
+
es:{navComm:"Comunidad",navSup:"Ayuda y comentarios",hComm:"Comunidad",subComm:"Mensajes, ideas y preguntas de los visitantes.",commEmpty:"Aún no hay mensajes.",commEmptyS:"Sé el primero en escribir algo.",commWrite:"Escribir un mensaje",commLocal:"Las publicaciones de la comunidad aún no están conectadas a un servidor compartido, así que los mensajes solo se guardan en este dispositivo.",commThanks:"¡Gracias! Tu mensaje ya está en la comunidad.",hSup:"Ayuda y comentarios",subSup:"Pide ayuda, informa de un error o comparte una idea. Todo lo que escribas se publica automáticamente en la pestaña Comunidad.",fCat:"Tipo",catFb:"Comentario",catBug:"Informe de error",catHelp:"Pregunta de soporte",catIdea:"Idea",fName:"Nombre (opcional)",fMsg:"Tu mensaje",fPub:"Tu mensaje será público en la pestaña Comunidad. No incluyas información privada.",fSend:"Enviar",fSending:"Enviando...",fShort:"Escribe un poco más, por favor.",fWait:"Espera unos segundos antes de publicar de nuevo.",fErr:"No se pudo enviar tu mensaje. Inténtalo de nuevo.",anon:"Anónimo"}
|
| 378 |
+
};
|
| 379 |
+
Object.keys(X2).forEach(l => Object.assign(T[l], X2[l]));
|
| 380 |
let Q = "", ONLY = false;
|
| 381 |
let lang = "en";
|
| 382 |
const $ = s => document.querySelector(s);
|
|
|
|
| 636 |
|
| 637 |
const sizeM = n => { const m = n.match(/(\d+(?:\.\d+)?)\s?([kmb])\b/i); return m ? +m[1] * unit[m[2].toLowerCase()] : null; };
|
| 638 |
const pos = M => Math.max(0, Math.min(100, (Math.log10(M) + 1) / 6 * 100));
|
| 639 |
+
const PANELS = ["overview","news","models","datasets","research","community","support","about"];
|
| 640 |
function show(p){
|
| 641 |
if(!PANELS.includes(p)) p = "overview";
|
| 642 |
document.querySelectorAll(".panel").forEach(s => s.hidden = s.dataset.p !== p);
|
| 643 |
document.querySelectorAll(".tab").forEach(a => a.setAttribute("aria-current", a.dataset.p === p ? "page" : "false"));
|
| 644 |
$("#main").scrollTo(0, 0); $("#side").classList.remove("open");
|
| 645 |
+
if(p !== "community") $("#commFlash").hidden = true;
|
| 646 |
+
if(p === "community") loadComm();
|
| 647 |
}
|
| 648 |
|
| 649 |
/* ---- NEWS: add the newest items to this list. Example:
|
|
|
|
| 733 |
}
|
| 734 |
|
| 735 |
function render(){
|
| 736 |
+
renderDatasets(); renderRuler(); renderSide(); renderNews(); renderComm();
|
| 737 |
const box = $("#list");
|
| 738 |
if(SERIES === null) return;
|
| 739 |
box.replaceChildren();
|
|
|
|
| 1999 |
go.disabled = false;
|
| 2000 |
};
|
| 2001 |
|
| 2002 |
+
/* ---- COMMUNITY + SUPPORT ----
|
| 2003 |
+
Posts from the Support & Feedback form go straight into the Community tab.
|
| 2004 |
+
To share posts between ALL visitors, set COMMUNITY_API to a Firebase Realtime Database URL
|
| 2005 |
+
(e.g. "https://your-project-default-rtdb.firebaseio.com") whose rules allow read and write on /community.
|
| 2006 |
+
While it is empty, posts are kept in this browser only (localStorage). */
|
| 2007 |
+
const COMMUNITY_API = "";
|
| 2008 |
+
const CATS = {fb:"catFb", bug:"catBug", help:"catHelp", idea:"catIdea"};
|
| 2009 |
+
let COMM = [];
|
| 2010 |
+
const commUrl = () => COMMUNITY_API.replace(/\/+$/, "") + "/community.json";
|
| 2011 |
+
const cleanPost = p => (p && typeof p === "object" && typeof p.text === "string" && p.text.trim())
|
| 2012 |
+
? {ts:+p.ts || 0, cat:CATS[p.cat] ? p.cat : "fb", name:typeof p.name === "string" ? p.name.slice(0, 40) : "", text:p.text.slice(0, 1000)} : null;
|
| 2013 |
+
function localPosts(){ try{ const a = JSON.parse(localStorage.getItem("community") || "[]"); return Array.isArray(a) ? a : []; }catch(e){ return []; } }
|
| 2014 |
+
async function loadComm(){
|
| 2015 |
+
let arr = [];
|
| 2016 |
+
if(COMMUNITY_API){
|
| 2017 |
+
try{
|
| 2018 |
+
const r = await fetch(commUrl() + "?orderBy=%22%24key%22&limitToLast=100");
|
| 2019 |
+
const o = r.ok ? await r.json() : null;
|
| 2020 |
+
arr = o ? Object.values(o) : [];
|
| 2021 |
+
}catch(e){ arr = []; }
|
| 2022 |
+
}else arr = localPosts();
|
| 2023 |
+
COMM = arr.map(cleanPost).filter(Boolean).sort((a, b) => b.ts - a.ts);
|
| 2024 |
+
renderComm();
|
| 2025 |
+
}
|
| 2026 |
+
function renderComm(){
|
| 2027 |
+
const box = $("#commList"); if(!box) return;
|
| 2028 |
+
box.replaceChildren();
|
| 2029 |
+
$("#commNote").hidden = !!COMMUNITY_API;
|
| 2030 |
+
if(!COMM.length){ box.append(el("div",{className:"empty"}, el("strong",{textContent:t("commEmpty")}), el("span",{textContent:t("commEmptyS")}))); return; }
|
| 2031 |
+
COMM.forEach(p => {
|
| 2032 |
+
let when = ""; try{ when = new Date(p.ts).toLocaleString(lang, {dateStyle:"medium", timeStyle:"short"}); }catch(e){ when = new Date(p.ts).toLocaleString(); }
|
| 2033 |
+
box.append(el("article",{className:"ni c-" + p.cat},
|
| 2034 |
+
el("div",{className:"nd"}, el("i",{}), el("span",{textContent:p.name || t("anon")}), el("span",{textContent:when}), el("span",{className:"tg",textContent:t(CATS[p.cat])})),
|
| 2035 |
+
el("p",{className:"pm",textContent:p.text})));
|
| 2036 |
+
});
|
| 2037 |
+
}
|
| 2038 |
+
async function submitPost(e){
|
| 2039 |
+
e.preventDefault();
|
| 2040 |
+
const stat = $("#fStat"), btn = $("#fSend"), text = $("#fMsg").value.trim();
|
| 2041 |
+
if($("#fHp").value) return; // honeypot: bots fill hidden fields
|
| 2042 |
+
if(text.length < 3){ stat.textContent = t("fShort"); return; }
|
| 2043 |
+
let last = 0; try{ last = +localStorage.getItem("lastPost") || 0; }catch(x){}
|
| 2044 |
+
if(Date.now() - last < 20000){ stat.textContent = t("fWait"); return; }
|
| 2045 |
+
const post = {ts:Date.now(), cat:$("#fCat").value, name:$("#fName").value.trim().slice(0, 40), text:text.slice(0, 1000)};
|
| 2046 |
+
btn.disabled = true; stat.textContent = t("fSending");
|
| 2047 |
+
try{
|
| 2048 |
+
if(COMMUNITY_API){
|
| 2049 |
+
const r = await fetch(commUrl(), {method:"POST", body:JSON.stringify(post)});
|
| 2050 |
+
if(!r.ok) throw new Error("HTTP " + r.status);
|
| 2051 |
+
}else{
|
| 2052 |
+
const a = localPosts(); a.push(post);
|
| 2053 |
+
localStorage.setItem("community", JSON.stringify(a.slice(-200)));
|
| 2054 |
+
}
|
| 2055 |
+
}catch(err){ stat.textContent = t("fErr"); btn.disabled = false; return; }
|
| 2056 |
+
try{ localStorage.setItem("lastPost", String(Date.now())); }catch(x){}
|
| 2057 |
+
$("#fMsg").value = ""; $("#fCnt").textContent = "0/1000"; stat.textContent = ""; btn.disabled = false;
|
| 2058 |
+
COMM.unshift(cleanPost(post));
|
| 2059 |
+
location.hash = "community"; // hashchange -> show("community") -> loadComm()
|
| 2060 |
+
renderComm();
|
| 2061 |
+
const fl = $("#commFlash"); fl.hidden = false;
|
| 2062 |
+
clearTimeout(fl._t); fl._t = setTimeout(() => fl.hidden = true, 8000);
|
| 2063 |
+
}
|
| 2064 |
+
$("#supForm").addEventListener("submit", submitPost);
|
| 2065 |
+
$("#fMsg").addEventListener("input", e => $("#fCnt").textContent = e.target.value.length + "/1000");
|
| 2066 |
+
|
| 2067 |
addEventListener("hashchange", () => show(location.hash.slice(1)));
|
| 2068 |
$("#q").oninput = e => { Q = e.target.value; render(); };
|
| 2069 |
$("#fRun").onclick = e => { ONLY = !ONLY; e.currentTarget.setAttribute("aria-pressed", ONLY); render(); };
|