mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
400 B
20 lines
400 B
6 years ago
|
<script>
|
||
|
let cats = [
|
||
|
{ id: 'J---aiyznGQ', name: 'Keyboard Cat' },
|
||
|
{ id: 'z_AbfPXTKms', name: 'Maru' },
|
||
|
{ id: 'OUtn3pvWmpg', name: 'Henri The Existential Cat' }
|
||
|
];
|
||
|
</script>
|
||
|
|
||
|
<h1>The Famous Cats of YouTube</h1>
|
||
|
|
||
|
<ul>
|
||
|
{#each cats as { id, name }, i}
|
||
3 years ago
|
<li>
|
||
2 years ago
|
<a target="_blank" rel="noreferrer" href="https://www.youtube.com/watch?v={id}">
|
||
3 years ago
|
{i + 1}: {name}
|
||
|
</a>
|
||
|
</li>
|
||
6 years ago
|
{/each}
|
||
3 years ago
|
</ul>
|