markdownBlogStarterindex.tsx3 matches
5import { Layout } from "./Layout.tsx";
67function PostComponent({ markdown, link }: { markdown: string; link?: string }) {
8return (
9<div style={{ border: "1px solid gray", padding: "10px", marginBottom: "20px", borderRadius: "5px" }}>
14}
1516export default async function(req: Request): Promise<Response> {
17const url = new URL(req.url);
18if (url.pathname === "/") {
44}
4546function html(children: React.ReactNode) {
47return new Response(
48renderToString(
Holifant-Linksmain.tsx1 match
2import { renderToString } from "npm:react-dom/server";
34export default async function(req: Request) {
5return new Response(
6renderToString(
notesjsonblob.tsx2 matches
1import { blob } from "https://esm.town/v/std/blob";
23async function getRoom(roomName: string) {
4try {
5return await blob.getJSON(`room_${roomName}.json`);
9}
1011async function saveRoom(roomName: string, data: any) {
12await blob.setJSON(`room_${roomName}.json`, data);
13}
2import { useState } from "https://esm.sh/react@18.2.0";
34export function FormContent({ data, content }) {
5// const { content, contentURL, docsURL } = config;
6// console.log("content: ", content);
29<h2>Cobrowse & mask fields on forms</h2>
30<p>
31Glance cobrowse provides a “hook” function to allow customers to
32customize page and element masking during a cobrowse session.
33</p>
my-first-valindex.tsx1 match
1export default function handler(req: Request): Response {
2const html = `<!DOCTYPE html>
3<html lang="en">
notessqlite.tsx3 matches
1import { sqlite } from "https://esm.town/v/std/sqlite";
23async function getRoom(roomName: string) {
4const result = await sqlite.execute(
5"SELECT content, lastModified FROM rooms WHERE name = ?",
14}
1516async function saveRoom(roomName: string, data: RoomData) {
17await sqlite.execute(
18`
24}
2526async function initDb() {
27await sqlite.execute(`
28CREATE TABLE IF NOT EXISTS rooms(
Glanceriframe.tsx1 match
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
23export function IframeContent({ data, content }) {
4// const { content, contentURL, docsURL } = config;
5// console.log("content: ", content);
Gardenonindex.html13 matches
239
240// Fetch all plants
241async function fetchPlants() {
242try {
243const response = await fetch('/api/plants');
251
252// Render plants on the map and in the list
253function renderPlants() {
254// Clear existing plants (but preserve placeholder)
255gardenMap.querySelectorAll('.plant:not(.placeholder)').forEach(el => el.remove());
331
332// Create a placeholder plant on the map
333function createPlaceholderPlant(x, y) {
334// Remove existing placeholder if any
335removePlaceholderPlant();
364
365// Remove placeholder plant from the map
366function removePlaceholderPlant() {
367if (placeholderPlant && placeholderPlant.element) {
368placeholderPlant.element.remove();
372
373// Select a plant to edit
374function selectPlant(plant) {
375// Cancel move mode if active
376if (isMovingPlant) {
405
406// Clear the form
407function clearForm() {
408// Remove placeholder plant if it exists
409removePlaceholderPlant();
431
432// Start move mode
433function startMoveMode() {
434if (!selectedPlant) {
435alert('Please select a plant to move.');
445
446// Cancel move mode
447function cancelMoveMode() {
448isMovingPlant = false;
449mapInstructions.textContent = 'Tap anywhere on the map to add a plant';
454
455// Move plant to new position
456function movePlantTo(x, y) {
457if (!selectedPlant) return;
458
478
479// Add a new plant at the clicked position
480function addPlantAt(x, y) {
481// Cancel move mode if active
482if (isMovingPlant) {
504
505// Save plant data
506async function savePlant(plantData) {
507try {
508let response;
543
544// Update placeholder plant when diameter changes
545function updatePlaceholderPlant() {
546if (placeholderPlant && placeholderPlant.element) {
547const newDiameter = parseFloat(plantDiameterInput.value) || 50;
553
554// Delete a plant
555async function deletePlant(id) {
556if (!confirm('Are you sure you want to delete this plant?')) {
557return;
10}
1112export function createFullExcelData(data: ExportData): any[][] {
13const { rankings, formatDetected, selectedWeek } = data;
14
79}
8081export function createIddaaOnlyExcelData(data: ExportData): any[][] {
82const { rankings } = data;
83
137}
138139export function createPoissonOnlyExcelData(data: ExportData): any[][] {
140const { rankings } = data;
141
191}
192193export function createAccuracyReportExcelData(data: ExportData): any[][] {
194const { accuracyStats, allWeeksData } = data;
195
219}
220221export function createMultiWeekExcelData(data: ExportData): { [sheetName: string]: any[][] } {
222const { allWeeksData, formatDetected } = data;
223const sheets: { [sheetName: string]: any[][] } = {};
fotmobindex.html13 matches
441let currentWeek = 6;
442443async function processFile() {
444const fileInput = document.getElementById('fileInput');
445const file = fileInput.files[0];
510}
511512function createWeekSelector() {
513const weekButtons = document.getElementById('weekButtons');
514weekButtons.innerHTML = '';
552}
553554async function analyzeWeek(selectedWeek) {
555currentWeek = selectedWeek;
556
585}
586587function displayResults(rankings, week) {
588const tbody = document.getElementById('rankingsBody');
589tbody.innerHTML = '';
648}
649650function updateAccuracyStats() {
651if (!analysisData || !analysisData.accuracyStats) return;
652
665}
666667async function exportToExcel() {
668if (!analysisData) {
669showStatus('Önce analiz yapılmalı!', 'error');
692}
693694async function exportIddaaOnly() {
695if (!analysisData) {
696showStatus('Önce analiz yapılmalı!', 'error');
719}
720721async function exportPoissonOnly() {
722if (!analysisData) {
723showStatus('Önce analiz yapılmalı!', 'error');
746}
747748async function testBettingAccuracy() {
749if (!analysisData) {
750showStatus('Önce analiz yapılmalı!', 'error');
780}
781782function downloadExcel(data, filename, sheetName = 'Sheet1') {
783// Create workbook and worksheet
784const wb = XLSX.utils.book_new();
806}
807808function downloadMultiSheetExcel(sheetsData, filename) {
809// Create workbook
810const wb = XLSX.utils.book_new();
838}
839840function updateProgress(percentage, text) {
841document.getElementById('progressFill').style.width = percentage + '%';
842document.getElementById('statusText').textContent = text;
843}
844845function showStatus(message, type = 'info') {
846const statusDiv = document.getElementById('statusText');
847statusDiv.textContent = message;