Lighthouse

This commit is contained in:
Tobias Berger 2021-09-30 22:38:12 +02:00
parent 6e93a51a8b
commit 343304713d
3 changed files with 15 additions and 16 deletions

View file

@ -4,6 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<!-- Welcome to a shark. I hope you enjoy this aquatic organism. --> <!-- Welcome to a shark. I hope you enjoy this aquatic organism. -->
<meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="viewport" content="width=device-width,initial-scale=1" />
<meta http-equiv="content-security-policy" content="script-src 'self' 'unsafe-inline'" />
<meta property="og:title" itemprop="name" content="Shark Game" /> <meta property="og:title" itemprop="name" content="Shark Game" />
<meta <meta

View file

@ -7,7 +7,7 @@
{#if isOpen} {#if isOpen}
<div role="dialog" class="modal"> <div role="dialog" class="modal">
<button class="close-modal" on:click={closeModal} /> <button class="close-modal" name="close modal" on:click={closeModal} />
<div class="modal-content"> <div class="modal-content">
<slot /> <slot />
</div> </div>

View file

@ -31,21 +31,19 @@
</script> </script>
<div> <div>
{#each Object.entries(homeActions) as [homeActionId, homeAction]} {#each Object.entries(homeActions) as [homeActionId, homeAction] (homeActionId)}
{#each Array(50).fill(homeAction) as homeActionClone} <button id={"home-action-" + homeActionId} class:no-icons={!showIcons} on:click={() => homeActionClick(homeAction)}>
<button class:no-icons={!showIcons} on:click={() => homeActionClick(homeActionClone)} id={homeActionId}> {#if showIcons}
{#if showIcons} <img
<img width="50"
width="50" height="50"
height="50" class="homeaction-icon"
class="homeaction-icon" alt="A decorative icon representing the home action"
alt="A decorative icon representing the home action" src={"img/homeActions/" + homeAction.image}
src={"img/homeActions/" + homeAction.image} />
/> {/if}
{/if} {homeAction.name}
{homeAction.name} </button>
</button>
{/each}
{/each} {/each}
</div> </div>