Add upload instructions

This commit is contained in:
ZXY101
2024-02-04 05:53:25 +02:00
parent 5226393eac
commit 28587e15c6
3 changed files with 39 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
import { page } from "$app/stores";
import { get } from "svelte/store";
import { showSnackbar } from "./snackbar";
export function clamp(num: number, min: number, max: number) {
return Math.min(Math.max(num, min), max);
@@ -22,4 +23,11 @@ export function debounce(func: () => void, timeout = 50) {
clearTimeout(timer);
timer = undefined;
}
}
export function toClipboard() {
navigator.clipboard.writeText(
'pip3 install git+https://github.com/kha-white/mokuro.git@web-reader'
);
showSnackbar('Copied to clipboard');
}