use a string

This commit is contained in:
Orion Reed 2024-12-23 00:06:20 -05:00
parent 5849e80dd7
commit 8ab0d84386
1 changed files with 4 additions and 112 deletions

View File

@ -108,122 +108,14 @@
<script type="module">
import '@labs/standalone/folk-sand.ts';
const alchemicalSymbols = [
'🜁',
'🜂',
'🜃',
'🜄',
'🜅',
'🜆',
'🜇',
'🜈',
'🜉',
'🜊',
'🜋',
'🜌',
'🜍',
'🜎',
'🜏',
'🜐',
'🜑',
'🜒',
'🜓',
'🜔',
'🜕',
'🜖',
'🜗',
'🜘',
'🜙',
'🜚',
'🜛',
'🜜',
'🜝',
'🜞',
'🜟',
'🜠',
'🜡',
'🜢',
'🜣',
'🜤',
'🜥',
'🜦',
'🜧',
'🜨',
'🜩',
'🜪',
'🜫',
'🜬',
'🜭',
'🜮',
'🜯',
'🜰',
'🜱',
'🜲',
'🜳',
'🜴',
'🜵',
'🜶',
'🜸',
'🜹',
'🜺',
'🜻',
'🜼',
'🜾',
'🜿',
'🝀',
'🝁',
'🝂',
'🝃',
'🝄',
'🝅',
'🝆',
'🝈',
'🝉',
'🝊',
'🝋',
'🝌',
'🝍',
'🝎',
'🝏',
'🝐',
'🝑',
'🝒',
'🝓',
'🝔',
'🝕',
'🝖',
'🝗',
'🝘',
'🝙',
'🝚',
'🝛',
'🝜',
'🝝',
'🝞',
'🝟',
'🝠',
'🝡',
'🝢',
'🝣',
'🝤',
'🝥',
'🝦',
'🝧',
'🝩',
'🝪',
'🝬',
'🝭',
'🝮',
'🝯',
'🝰',
'🝲',
'🝳',
];
const alchemicalSymbols =
'🜁🜂🜃🜄🜅🜆🜇🜈🜉🜊🜋🜌🜍🜎🜏🜐🜑🜒🜓🜔🜕🜖🜗🜘🜙🜚🜛🜜🜝🜞🜟🜠🜡🜢🜣🜤🜥🜦🜧🜨🜩🜪🜫🜬🜭🜮🜯🜰🜱🜲🜳🜴🜵🜶🜸🜹🜺🜻🜼🜾🜿🝀🝁🝂🝃🝄🝅🝆🝈🝉🝊🝋🝌🝍🝎🝏🝐🝑🝒🝓🝔🝕🝖🝗🝘🝙🝚🝛🝜🝝🝞🝟🝠🝡🝢🝣🝤🝥🝦🝧🝩🝪🝬🝭🝮🝯🝰🝲🝳';
document.addEventListener('DOMContentLoaded', () => {
const questionItems = document.querySelectorAll('#questions li');
questionItems.forEach((li) => {
const randomSymbol = alchemicalSymbols[Math.floor(Math.random() * alchemicalSymbols.length)];
const symbols = [...alchemicalSymbols];
const randomSymbol = symbols[Math.floor(Math.random() * symbols.length)];
li.setAttribute('data-symbol', randomSymbol);
});
});