Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"changes": [
"The home page now starts with a search box: type part of a name to find any of the 1,211 pieces and open it in Crafting.",
"Quick links jump straight to Swords, Helmets, Potions, Footwear or your favourites.",
"A market strip shows this week’s suggested prices for common materials."
"A market strip shows this week’s suggested prices for common materials.",
"The What’s new and Good to know boxes were removed from the home page. Recent changes are still under What’s new at the top of every page."
]
},
{
Expand Down
Binary file modified docs/screenshots/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
.tool>span{display:flex;flex-direction:column;gap:2px}.tn{font-size:1.3rem;font-variant:small-caps;letter-spacing:.04em}.td{color:var(--mut);font-size:.92rem}.tool .sum{font-size:.85rem;font-style:italic;color:var(--mut)}.tool .sum:empty{display:none}
.mkt{display:flex;align-items:baseline;gap:6px 18px;flex-wrap:wrap;margin-top:20px;padding-top:12px;border-top:1px solid var(--bd);font-size:.95rem}
.mkt .mh{font-variant:small-caps;letter-spacing:.1em;color:var(--ac)}.mkt .mn{color:var(--mut);margin-left:auto;font-size:.85rem}
.hrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin-top:20px;align-items:start}.hrow .card{margin:0}#wn{min-height:15rem;box-sizing:border-box}.gk{margin:0;padding-left:1.2em;color:var(--mut)}.gk li{margin:4px 0}#wnb h3{margin:8px 0 0;text-transform:none;letter-spacing:0;border:0;color:var(--tx);font-size:.98rem}#wnb h3:first-child{margin-top:0}#wnb small{color:var(--mut)}#wnb p{margin:2px 0 0;color:var(--mut)}
@media (max-width:560px){.hs{padding:16px 0 14px}.hfr button{padding:0 14px}.mkt .mn{margin-left:0;flex-basis:100%}}
</style>
<script src="assets/site.js"></script>
Expand All @@ -46,15 +45,12 @@ <h2 id="hsq">What do you want to make?</h2>
</section>
<div class="tools"><a class="tool" href="crafting.html"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M3 21l8-8"/><path d="M13 5l6 6-3 3-6-6z"/><path d="M14 4l2-2 6 6-2 2"/></svg><span><span class="tn">Crafting</span><span class="td">Costs, profit, shopping list</span><span class="sum" id="sc"></span></span></a><a class="tool" href="farming.html"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 22V8"/><path d="M12 12c-3 0-5-2-5-5 3 0 5 2 5 5z"/><path d="M12 12c3 0 5-2 5-5-3 0-5 2-5 5z"/><path d="M12 17c-3 0-5-2-5-5 3 0 5 2 5 5z"/><path d="M12 17c3 0 5-2 5-5-3 0-5 2-5 5z"/></svg><span><span class="tn">Farming</span><span class="td">Best crop for your strips</span><span class="sum" id="sf"></span></span></a><a class="tool" href="loadouts.html"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/></svg><span><span class="tn">Loadouts</span><span class="td">Builds and their cost by level</span><span class="sum" id="sl"></span></span></a></div>
<div class="mkt" id="mkt" hidden></div>
<div class="hrow"><div class="card" id="wn"><h2>What’s new</h2><div id="wnb"><p class="s" id="wnl" style="margin:0">Loading the latest changes…</p></div></div>
<div class="card"><h2>Good to know</h2><ul class="gk"><li>Everything you enter stays in your own browser, so nothing is shared between devices. Use Settings → Back up my data to move it.</li><li>Material prices are filled in with auction house averages until you type your own.</li><li>The site keeps working offline once it has loaded, and updates itself when a new version is published.</li></ul></div></div>
</div></div></main>
<footer class="site">Unofficial fan tool. Recipes and crops from <a href="https://wiki.kcdroleplay.com/recipes/">wiki.kcdroleplay.com</a>. Prices and settings are saved in your browser only.<div class="sig">Made by <b>Busterguy</b> · Found a bug or have an issue? Contact me on <svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>Discord.</div><div class="sig">Open source: <a href="https://github.com/xBusterguy/KCDCalculator" target="_blank" rel="noopener noreferrer">view the repo</a> or <a href="https://github.com/xBusterguy/KCDCalculator/issues/new/choose" target="_blank" rel="noopener noreferrer">report an issue</a> on GitHub.</div></footer><script>
(function(){var g=function(k){try{return JSON.parse(localStorage.getItem(k))}catch(e){return null}},set=function(i,t){var e=document.getElementById(i);if(e&&t)e.textContent=t};
var P=g("kcd-p")||{},n=Object.keys(P).filter(function(k){return P[k]!==""&&+P[k]>0}).length,f=(g("kcd-fav")||[]).length,o=Object.keys(g("kcd-o")||{}).length,a=[];
if(n)a.push(n+" price"+(n>1?"s":"")+" entered");if(f)a.push(f+" favourite"+(f>1?"s":""));if(o)a.push(o+" piece"+(o>1?"s":"")+" in your order");set("sc",a.join(" · "));
var F=g("kcd-farm");if(F&&F.lv)set("sf","Last view: level "+F.lv+(F.ww?", weeded & watered":"")+", "+(F.st||1)+" strip"+((F.st||1)>1?"s":""));
fetch("changelog.json").then(function(r){return r.json()}).then(function(d){var b=document.getElementById("wnb"),es=(d.entries||[]).slice(0,3);if(!es.length)throw 0;b.textContent="";es.forEach(function(e){var h=document.createElement("h3"),sm=document.createElement("small"),p=document.createElement("p"),t=new Date(e.date+"T12:00:00");h.textContent=e.title+" ";sm.textContent=isNaN(t)?e.date:t.toLocaleDateString("en-GB",{day:"numeric",month:"short"});h.appendChild(sm);p.textContent=(e.changes||[])[0]||"";b.appendChild(h);b.appendChild(p)});}).catch(function(){var l=document.getElementById("wnl");if(l)l.textContent="Use the What’s new button at the top to see recent changes."});
var L=g("kcd-lo");if(L&&L.length)set("sl",L.length+" loadout"+(L.length>1?"s":"")+" saved");})();
</script><script src="assets/recipes.js" defer></script><script src="assets/market.js" defer></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// changed it saves the new copies and tells the open page, which reloads itself (or offers a
// Refresh button if you are in the middle of typing). Nothing here touches localStorage, so saved
// prices, loadouts, favourites, orders and settings are never cleared by an update.
const CACHE = "kcd-tools-v7";
const CACHE = "kcd-tools-v8";
const FILES = ["./", "index.html", "crafting.html", "farming.html", "loadouts.html", "404.html",
"assets/site.css", "assets/site.js", "assets/recipes.js", "assets/market.js", "assets/categories.js", "assets/tour.js", "assets/changelog.js", "changelog.json"];
const fresh = f => new Request(f, { cache: "no-cache" }); // always ask the server, never the browser's own cache
Expand Down
Loading