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.