1
2 export async function web_J4lwD9OeFC(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
1
2 export async function web_JaU2oUlDg0(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
1
2 export async function web_sSNxaja4bH(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
1
2 export async function web_Fdwbcen36v(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
1
2 export async function web_0NANERhZE0(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
140 let charIndex = 0;
141
142 function typeWriter() {
143 if (messageIndex < messages.length) {
144 if (charIndex < messages[messageIndex].length) {
1
2 export async function web_ZOT5N4yReQ(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
96 <script>
97 // Create floating stars
98 function createStars() {
99 const stars = document.getElementById('stars');
100 for(let i = 0; i < 100; i++) {
113
114 // Terminal effect
115 async function terminalBoot() {
116 const terminal = document.getElementById('terminal');
117 const messages = [
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
35- [x] add export to CSV, and JSON (CSV and JSON helper functions written in [this val](https://www.val.town/v/nbbaier/sqliteExportHelpers). Thanks to @pomdtr for merging the initial version!)
36- [x] add listener for cmd+enter to submit query
1
2 export async function web_aoEiUErLLm(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
157 let index = 0;
158
159 function typeWriter() {
160 if (index < text.length) {
161 terminal.innerHTML = text.substring(0, index) + '<span class="cursor"></span>';
1export default async function (req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 const query = url.searchParams.get("q");
26}
27
28async function getMostPopularPinterestImage(query: string): Promise<string> {
29 const searchUrl = `https://api.pinterest.com/v5/search/pins?query=${encodeURIComponent(query)}&page_size=50&sort_order=popularity`;
30 const response = await fetch(searchUrl, {
1
2 export async function web_0aZtzsb4cZ(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
A helper function to build a file's email
Simple functional CSS library for Val Town
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.