-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIUUUUUUUUUUUUUUUU
- Loading branch information
Showing
4 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script lang="ts"> | ||
import Dialog from "$lib/components/Modal.svelte"; | ||
let dialog: HTMLDialogElement; | ||
</script> | ||
|
||
<div> | ||
<button | ||
on:click={() => { | ||
dialog.showModal(); | ||
}}>Help</button | ||
> | ||
</div> | ||
|
||
<Dialog bind:dialog> | ||
Drag and drop nodes that you want to add. <br /><br /> | ||
Hold shiftKey and drag nodes to make connections between the nodes. <br /><br /> | ||
Press Esc to close this popup. | ||
</Dialog> | ||
|
||
<style> | ||
button { | ||
padding: 5px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts"> | ||
export let dialog: HTMLDialogElement | null = null; | ||
</script> | ||
|
||
<dialog bind:this={dialog} on:close> | ||
<slot /> | ||
</dialog> | ||
|
||
<style> | ||
dialog { | ||
padding: 10px; | ||
margin: auto; | ||
} | ||
dialog::backdrop { | ||
background-color: rgba(0, 0, 139, 0.25); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters