Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
<!--
원작: 자작 보드게임 동아리 자보게동의 여름 초땅
출처: https://comic.naver.com/bestChallenge/list.nhn?titleId=734597
-->
<script>
const consonant='ㄱㄴㄷㄹㅁㅂㅅㅇㅈㅊㅋㅌㅍㅎ';
function choice(choices)
{
return choices[Math.floor(Math.random() * choices.length)];
};

let consonantArray=new Array(10).fill(0).map(() => new Array(10).fill(0).map(()=>choice(consonant)));
function shuffle()
{
for(let i in consonantArray)
{
for(let j in consonantArray[i])
{
consonantArray[i][j]=choice(consonant);
}
}
}
</script>

<style>
table,td
{
border: 2px solid black;
border-collapse: collapse;
}
table
{
margin: 1em auto;
}
td
{
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */