Can embed any file in a PNG/WebM/GIF/JPEG and upload it to a third-party host through 4chan
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.
 
 
 

26 lines
425 B

<script lang="ts">
import { createEventDispatcher } from 'svelte'
export let pos = [0, 0]
let visible = false
export function toggle() {
visible = !visible
}
export function setPos(p: [number, number]) {
//pos = p;
}
</script>
{#if visible}
<div style="top: {pos[1]}px; left: {pos[0]}px" class="dialog">
<slot />
</div>
{/if}
<style scoped>
.dialog {
position: relative;
}
</style>