juicyBowTiemain.tsx4 matches
4import { createRoot } from "https://esm.sh/react-dom/client";
56function App() {
7const [mainColor, setMainColor] = useState("#666666");
8const [patternColor, setPatternColor] = useState("#FFFFFF");
253}
254255function client() {
256createRoot(document.getElementById("root")).render(<App />);
257}
261}
262263export default async function server(request: Request): Promise<Response> {
264return new Response(
265`
284<script type="module">
285import { default as mod } from "${import.meta.url}";
286if (mod && typeof mod === "function") mod();
287</script>
288</body>
Chatprincipalmain.tsx5 matches
219`;
220221function AnimatedHeadline() {
222const [animationStarted, setAnimationStarted] = useState(false);
223const contentRef = useRef(null);
295`;
296297function SubheadlineAnimation() {
298const [animationStarted, setAnimationStarted] = useState(false);
299const contentRef = useRef(null);
422`;
423424function App() {
425const [isNavOpen, setIsNavOpen] = React.useState(false);
426const toggleNav = () => {
482}
483484function client() {
485createRoot(document.getElementById("root")).render(<App />);
486}
488if (typeof document !== "undefined") { client(); }
489490export default async function server(request: Request): Promise<Response> {
491return new Response(`
492<html>
hiddenVioletMockingbirdmain.tsx10 matches
1import { blob } from "https://esm.town/v/std/blob";
23export default async function main(req: Request): Promise<Response> {
4const html = `
5<!DOCTYPE html>
149synth.connect(analyser);
150151function drawOscilloscope() {
152requestAnimationFrame(drawOscilloscope);
153const bufferLength = analyser.size;
216217// Resize oscilloscope canvas
218function resizeCanvas() {
219oscilloscope.width = oscilloscope.clientWidth;
220oscilloscope.height = oscilloscope.clientHeight;
251252// Load configuration list
253async function loadConfigList() {
254const response = await fetch('/config-list');
255const configs = await response.json();
302const eurorack = d3.select("#eurorack");
303304function createSlider(parent, label, min, max, value, callback, icon) {
305const container = parent.append("div")
306.attr("class", "slider-container");
318.attr("class", "slider")
319.style("background", generateGradient(min, max))
320.on("input", function() {
321callback(this.value);
322this.style.background = generateGradient(min, max, this.value);
326}
327328function generateGradient(min, max, value = null) {
329const percentage = value ? (value - min) / (max - min) * 100 : 50;
330return \`linear-gradient(to right, #4CAF50 0%, #4CAF50 \${percentage}%, #ddd \${percentage}%, #ddd 100%)\`;
422.attr("class", "arpeggio-pill")
423.text(pattern)
424.on("click", function() {
425d3.selectAll(".arpeggio-pill").classed("active", false);
426d3.select(this).classed("active", true);
429});
430431function updateArpeggio(pattern) {
432const notes = document.getElementById("sequence").value.split(",").map(note => note.trim());
433let arpNotes;
475}
476477function updateSliders() {
478oscTypeSlider.property("value", ["sawtooth", "square", "triangle", "sine"].indexOf(synth.oscillator.type) / 3);
479cutoffSlider.property("value", synth.filter.frequency.value);
76};
7778function App() {
79const [position, setPosition] = useState({ x: 0, y: 0 });
80const [isLaserOn, setIsLaserOn] = useState(false);
199}
200201function client() {
202createRoot(document.getElementById("root")).render(<App />);
203}
205if (typeof document !== "undefined") { client(); }
206207async function server(request: Request): Promise<Response> {
208return new Response(`
209<html>
BalanceCapMonstermain.tsx1 match
1import fetchBalanceFromCaptchaProvider from "https://esm.town/v/augustohp/CaptchaGetBalance";
23export default async function fetchAntiCaptchaBalance(
4token: string,
5): Promise<number> {
BalanceAntiCaptchamain.tsx1 match
1import fetchBalanceFromCaptchaProvider from "https://esm.town/v/augustohp/CaptchaGetBalance";
23export default async function fetchAntiCaptchaBalance(
4token: string,
5): Promise<number> {
whoIsHiringAboutmain.tsx1 match
1/** @jsxImportSource https://esm.sh/react */
23export default function About() {
4const linkClass = "text-sky-600 hover:text-sky-500";
5
CaptchaGetBalancemain.tsx1 match
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
23export default async function fetchBalanceFromCaptchaProvider(
4token: string,
5provider: "capmonster" | "anticaptcha" | "nextcaptcha",
v3FanFicScrapermain.tsx7 matches
5console.log("Script started");
67function App() {
8const [url, setUrl] = useState("");
9const [scrapedData, setScrapedData] = useState("");
56}
5758function client() {
59console.log("Client function called");
60const rootElement = document.getElementById("root");
61if (rootElement) {
6768if (typeof document !== "undefined") {
69console.log("Document is defined, calling client function");
70client();
71} else {
72console.log("Document is undefined, skipping client function");
73}
7475async function server(request: Request): Promise<Response> {
76console.log("Server function called");
7778if (request.method === "POST" && new URL(request.url).pathname === "/scrape") {
XKCDComicOfTheDaymain.tsx1 match
2import { load } from "npm:cheerio";
34export default async function(req: Request): Promise<Response> {
5const response = await fetchText("https://xkcd.com/");
6const $ = load(response);