尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Quick calculators. Instant answers. A static site with 31 calculators. It has no build dependencies, no framework and no sign-up.
site/: the finished website. Deploy this folder.preview/: the same site with links that work when you open preview/index.html straight from your computer.src/: the source. core.js holds the calculators, app.js the page behaviour, style.css the design.build.js: rebuilds site/ from src/ (node build.js, needs Node 18+).static/: the share image and app icons, which are copied into site/.build.js, set SITE_URL to your real domain and CONTACT_EMAIL to your email, then run node build.js.
(If you don't want to run Node, search and replace https://mycalcbox.in and [email protected] inside site/.)vercel.json already tells Vercel to serve the site folder with no build step. Every later push updates the site automatically.site folder onto the page. With Git, netlify.toml already sets the publish folder to site.site folder. With Git, set the build command to empty and the output directory to site.https://YOUR-DOMAIN/sitemap.xml in Google Search Console.ADSENSE (head) block in <head>. Uncomment it and put in your ca-pub-… ID. It's easiest to do this in build.js (the head() function) and rebuild.<!-- AD SLOT: name --> comment. The homepage has home-top and home-bottom. Each tool page has tool-top, below-result and in-content. To place ads, edit the ad() function in build.js so it returns your AdSense unit, then rebuild.Each tool is one object in src/core.js. It holds the slug, SEO title and meta, inputs with default values, a calc() function and related tools. Run node build.js and the new page, footer link, sitemap entry and search entry are all created for you.
These are stored in localStorage: cb_pins (pinned tools), cb_recent (the last 8 tools used) and cb_theme (light or dark).