Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab1a95b611 | |||
47e00f7a3c | |||
42f7d148b4 | |||
4ffb51e330 | |||
4fbf47d26e |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
|
||||
# Output
|
||||
.output
|
||||
|
1985
package-lock.json
generated
1985
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -4,8 +4,8 @@
|
||||
* when the page finishes loading. (svelte onMount function)
|
||||
/*/
|
||||
export function createBackground() {
|
||||
var canvas = document.createElement("canvas") as HTMLCanvasElement;
|
||||
var ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
|
||||
let canvas = document.createElement("canvas") as HTMLCanvasElement;
|
||||
let ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
|
||||
canvas.classList.add("bg-canvas");
|
||||
document.body.appendChild(canvas);
|
||||
|
||||
@ -14,7 +14,7 @@ export function createBackground() {
|
||||
canvas.height = window.innerHeight;
|
||||
}
|
||||
|
||||
var dark_theme = false;
|
||||
let dark_theme = false;
|
||||
|
||||
if (
|
||||
window.matchMedia &&
|
||||
|
Reference in New Issue
Block a user