Dugout Value
Baseball research on pitching, hitting, and projections, plus tools for comparing players, contracts, and trade value.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A daily sports magazine built with HTML, Tailwind CSS (Play CDN) and vanilla JavaScript. It has a front page plus a section each for football, basketball, Formula 1 and tennis. Each one shows the day's scores and headlines.
• Look: Gumroad's design system: black borders, bold flat colours (pink, yellow, purple), and cards that lift with a hard shadow on hover.
• Layout: a daily newspaper:
• a masthead with a double rule
• a section nav and a scores ticker
• a lead story beside a "Scores of the day" column
• more stories in columns underneath檢視完整 README ↗A daily sports magazine built with HTML, Tailwind CSS (Play CDN) and vanilla JavaScript. It has a front page plus a section each for football, basketball, Formula 1 and tennis. Each one shows the day's scores and headlines.
Open index.html in a browser. You need an internet connection for Tailwind, the fonts and the live data.
site.api.espn.com/apis/site/v2/sports/{sport}/{league}/scoreboardsite.api.espn.com/apis/site/v2/sports/{sport}/{league}/newsjs/sample.js instead. It shows a yellow Sample data chip, so the page always works during a demo.Each page is the same HTML skeleton with empty boxes (#masthead, #ticker, #lead, #rail, #grid…). The data-sport attribute on <body> says which section the page is. The JavaScript then fills the boxes:
| File | Job |
|---|---|
js/sample.js | Backup data, already in the simple shape the site uses |
js/feeds.js | SPORTS config, fetching from ESPN, and normalising ESPN's nested data into small objects |
js/ui.js | Functions that turn data into HTML strings (score cards, stories, ticker, nav…) |
js/page.js | Reads data-sport, loads the data, and places the HTML on the page |
theme.js | Tailwind config: Gumroad colours, fonts, hard shadow |
base.css | Hover-lift effect, hidden ticker scrollbar, double rule, reduced motion |
Three kinds of score card match the three shapes of sport:
Adding a sport takes one entry in SPORTS (in js/feeds.js) and a copy of a section page with a new data-sport.
Safety: all text from the feeds goes through escapeHtml, and links and images must be https://, so feed content can't inject code into the page.