Avatar

vez

elliot.website
Joined November 10, 2022
Likes
4
easrng avatar
uploadImage
@easrng
Script
uploadImage uploads an image to val.town just like when you paste an image into a readme
parkerdavis avatar
comments
@parkerdavis
HTTP
Comments (just add water) A self-contained comments system Val. Just fork this val and you have a complete (but extremely minimal) comment system! Call on the front-end using: const MY_FORKED_VAL_URL = "https://vez-comments.web.val.run"; const getComments = async () => { const response = await fetch(MY_FORKED_VAL_URL); const json = await response.json(); return json; }; const addComment = async (str) => { try { const response = await fetch(MY_FORKED_VAL_URL, { method: "POST", body: JSON.stringify(str), }); if (response.status >= 400 && response.status < 600) { /* error */ return false; } else { /* success */ return true; } } catch (e) { /* error */ return false; } };
rodrigotello avatar
FigmaFrameToHTML
@rodrigotello
Script
Figma Frame To HTML TL;DR: you can see a Figma board in a website
Next