Add version history, screenshots, embed generator, collections, npm search, format-on-save, and custom fonts

This commit is contained in:
root
2026-02-27 01:47:16 -06:00
parent 6ca8519250
commit 0d84c56008
14 changed files with 1046 additions and 25 deletions

View File

@@ -21,9 +21,11 @@ async function init() {
return;
}
// Theme
// URL params
const params = new URLSearchParams(location.search);
if (params.get('theme') === 'dark') document.body.classList.add('dark');
if (params.get('tabs') === '0') document.body.classList.add('no-tabs');
const autoRun = params.get('run') !== '0';
try {
const fiddle = await loadFiddle(match[1]);