⭐ Moe-Counter Compatible Website Hit Counter Written in Gleam mayu.due.moe
hit-counter svg moe
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(index.html): full default set on load

Fuwn e7da81cb 309ac4a1

+5 -3
+5 -3
index.html
··· 241 241 const copyCodesInput = document.getElementById("copy-codes"); 242 242 let inputValue = "demo"; 243 243 let themeValue = "asoul"; 244 + const setCopyCodes = () => { 245 + copyCodesInput.innerText = `![${inputValue}](${image.src})\n\n<img src="${image.src}" alt="${inputValue}" />`; 246 + }; 244 247 const set = () => { 245 248 inputValue = idInput.value || "demo"; 246 249 themeValue = themeSelect.value || "asoul"; 247 250 image.src = `https://counter.due.moe/get/@${inputValue}?theme=${themeValue}`; 248 - copyCodesInput.innerText = `![${inputValue}](${image.src})\n\n<img src="${image.src}" alt="${inputValue}" />`; 251 + setCopyCodes(); 249 252 }; 250 253 const mascots = [ 251 254 { name: "Akaza Akari", image: "https://i.imgur.com/efamPLp.png" }, ··· 291 294 { name: "Yuzuki Yukari", image: "https://i.imgur.com/84HOYIc.png" }, 292 295 ]; 293 296 294 - copyCodesInput.innerText = `![${inputValue}](${image.src})\n\n<img src="${image.src}" alt="${inputValue}" />`; 295 - 297 + set(); 296 298 idInput.addEventListener("input", () => { 297 299 clearTimeout(inputTimeout); 298 300