Skip to content

Commit

Permalink
data: update dataset reference (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad authored Mar 25, 2024
1 parent 8640795 commit a1b3c72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
21 changes: 6 additions & 15 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,10 @@
<div class="navbar-dropdown is-boxed">
<div class="columns">
<div class="column">
<a
class="navbar-item"
id="amharic"
onclick="setLang('amharic')"
>
<a class="navbar-item" id="am" onclick="setLang('am')">
Amharic
</a>
<a
class="navbar-item"
id="geez"
onclick="setLang('geez')"
>
<a class="navbar-item" id="gez" onclick="setLang('gez')">
Geez
</a>
</div>
Expand All @@ -58,13 +50,12 @@
>
Clafrica
</a>
<a
class="navbar-item"
id="nufi"
onclick="setLang('nufi')"
>
<a class="navbar-item" id="fmp" onclick="setLang('fmp')">
Nufi
</a>
<a class="navbar-item" id="bax" onclick="setLang('bax')">
Bamun
</a>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ global.afrim = Object({
downloadStatusElement.hidden = false;

// We download the datalang.
const lang = sessionStorage.getItem("lang") || "geez";
const lang = sessionStorage.getItem("lang") || "gez";
document.getElementById(lang).classList.toggle("is-active");
await loadConfig(
`https://raw.githubusercontent.com/pythonbrad/afrim-data/minimal/${lang}/${lang}.toml`,
`https://raw.githubusercontent.com/pythonbrad/afrim-data/fa8a5560e63a23ff7032e7c56fe5dbde2963b9fa/${lang}/${lang}.toml`,
);

// We mark the text field busy.
Expand Down

0 comments on commit a1b3c72

Please sign in to comment.