This file contains hidden or 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 EPS = 1e-4 | |
const BASE_DEVICE_WIDTH = 750 | |
let isIOS = false | |
let deviceWidth = 0 | |
let deviceDPR = 0 | |
let maxWidth = 960 | |
let baseWidth = 375 | |
let includeWidth = 750 | |
function checkDeviceWidth() { |
This file contains hidden or 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
/** @jsxImportSource https://esm.sh/preact@10.18.0 */ | |
import render from "https://esm.sh/preact-render-to-string@6.2.1"; | |
const e = ( | |
<div> | |
<h1>Hello, world!</h1> | |
</div> | |
); | |
const headers = new Headers(); |
This file contains hidden or 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
import { scheduled } from "./task.ts"; | |
scheduled({ | |
value: 1, // initialValue | |
delayMs: 2000, | |
kv: await Deno.openKv(), | |
key: ["queues", "tail"], | |
handler(v) { | |
console.log(v); | |
return ++(v as number); |