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
<script> | |
import { page } from '$app/stores'; | |
import { browser } from '$app/environment'; | |
import { onMount } from 'svelte'; | |
export let id; | |
onMount(() => { | |
window.dataLayer = window.dataLayer || []; | |
window.gtag = function() { window.dataLayer.push(arguments) } |
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 default function( | |
node, | |
{ | |
duration = 1000, | |
delay = 0, | |
reverse = false, | |
absolute = false, | |
pointerEvents = true, | |
} | |
) { |
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
<script> | |
import { onMount } from 'svelte'; | |
let canvas, vw, vh, ctx, timer; | |
onMount(() => { | |
ctx = canvas.getContext('2d'); | |
vw = window.innerWidth; | |
vh = window.innerHeight; | |
canvas.width = vw; | |
canvas.height = vh; |