diff --git a/index.html b/index.html index df5668e..e041d97 100644 --- a/index.html +++ b/index.html @@ -9262,6 +9262,13 @@ if (ninja.getQueryString()["culture"] != undefined) { if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") { document.getElementById("seedpoolarea").style.display = "block"; } +// change currency +if (ninja.getQueryString()["currency"] != undefined) { + for(i = 0; i < janin.currencies.length; i++) { + if (janin.currencies[i].name == ninja.getQueryString()["currency"]) + janin.currency.useCurrency(i); + } +} // populate currency dropdown list var select = document.getElementById("currency"); var options = ""; diff --git a/src/ninja.onload.js b/src/ninja.onload.js index fc3b883..4533470 100644 --- a/src/ninja.onload.js +++ b/src/ninja.onload.js @@ -14,6 +14,13 @@ if (ninja.getQueryString()["culture"] != undefined) { if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") { document.getElementById("seedpoolarea").style.display = "block"; } +// change currency +if (ninja.getQueryString()["currency"] != undefined) { + for(i = 0; i < janin.currencies.length; i++) { + if (janin.currencies[i].name == ninja.getQueryString()["currency"]) + janin.currency.useCurrency(i); + } +} // populate currency dropdown list var select = document.getElementById("currency"); var options = "";