mirror of
https://git.coom.tech/fuckjannies/lolipiss.git
synced 2024-06-27 13:12:34 +00:00
30 lines
513 B
Svelte
30 lines
513 B
Svelte
![]() |
<script lang="ts">
|
||
|
import { settings } from './stores'
|
||
|
|
||
|
export let id = ''
|
||
|
let visible = false
|
||
|
function reveal() {
|
||
|
visible = !visible
|
||
|
document.dispatchEvent(new CustomEvent('reveal', { detail: { id } }))
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
{#if $settings.eye}
|
||
|
<span
|
||
|
on:click={reveal}
|
||
|
class:fa-eye={!visible}
|
||
|
class:fa-eye-slash={visible}
|
||
|
class="fa clickable"
|
||
|
/>
|
||
|
{/if}
|
||
|
|
||
|
<style scoped>
|
||
|
.clickable {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.clickable:hover {
|
||
|
text-shadow: 0 0 4px palevioletred;
|
||
|
}
|
||
|
</style>
|