File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- const kv = await Deno . openKv ( ) ;
1+ // const kv = await Deno.openKv();
22//kv.set(["hiccups", "alltime"], "1");
3- const hiccups = await kv . get ( [ "hiccups" , "alltime" ] ) ;
3+ // const hiccups = await kv.get(["hiccups", "alltime"]);
44export default function Hiccup ( ) {
5- let globalhic = "" ;
5+ /* let globalhic = "";
66 if (hiccups != undefined) {
7- globalhic = "<p> Global Hiccup counter: " + hiccups . value + "</p>" ;
7+ globalhic = "Global Hiccup counter: " + hiccups.value;
88 }
9- console . log ( hiccups )
9+ console.log(hiccups)*/
1010 return (
1111 < div class = "flex flex-col items-center" >
1212 < p > 26</ p >
1313 < div dangerouslySetInnerHTML = { { __html : `
1414 <button onclick="playAudio()" type="button">Click here to Hiccup</button>`
1515 } } />
16- { globalhic }
1716 </ div >
1817 )
1918}
Original file line number Diff line number Diff line change 1- import { FreshContext } from "$fresh/server.ts" ;
1+ /* import { FreshContext } from "$fresh/server.ts";
22const kv = await Deno.openKv();
33const hiccups = await kv.get(["hiccups", "alltime"]);
44export const handler = (_req: Request, _ctx: FreshContext): Response => {
55 console.log("test")
66 kv.set(["hiccups", "alltime"], hiccups.value + 1);
77 return new Response(hiccups.value);
88};
9+ */
You can’t perform that action at this time.
0 commit comments