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
export const drag = (elements: NodeListOf<HTMLElement>) => { | |
let z = 0; | |
if (elements) { | |
for (const element of elements) { | |
let [adjustedX, adjustedY, currentX, currentY] = [0, 0, 0, 0]; | |
let moved = false; | |
const dragMouseUp = (event: MouseEvent) => { | |
document.onmousemove = null; |
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
const sticker = (set: string[], canvas: HTMLElement | null) => { | |
let z = 0; | |
if (canvas) { | |
canvas.onclick = (event: MouseEvent) => { | |
let randomImage = set[Math.floor(Math.random() * set.length)]; | |
let randomRotation = Math.random() * (45 - -45) + -45 | |
const element = document.createElement('img'); |
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
:root { | |
font-size: max(calc(16vmin * 100 / 1440), 16px); | |
} | |
*:where(:not(iframe, canvas, img, svg, video):not(svg *)) { | |
all: unset; | |
display: revert; | |
outline: revert; | |
} |
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
{ | |
"[javascriptreact]": { | |
"editor.defaultFormatter": "vscode.typescript-language-features" | |
}, | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "vscode.typescript-language-features" | |
}, | |
"editor.bracketPairColorization.enabled": false, | |
"editor.cursorBlinking": "phase", | |
"editor.cursorSmoothCaretAnimation": "on", |
OlderNewer