Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
letterly authored Jun 7, 2024
1 parent d418258 commit acad3b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion interbraille-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5348,6 +5348,5 @@ for(g of Object.entries(otherdata)){
language.innerHTML += `<option value="${g[0]}" ${g[0] == "en_1" ? "selected" : ""}>${g[1].englishName}${g[1].nativeName ? (" | " + g[1].nativeName) : ""}</option>`
}


params = new URLSearchParams(location.search).get("lang")
changeLang(params ?? "en_1")
2 changes: 1 addition & 1 deletion interbraille.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 id="title">Braille Conversion Website</h1>
<p id="link"><a id="harriswebsite" href="https://harrismowbray.com">By Harris Mowbray</a> | <a href="interbraille.txt" id="update">Updates</a></p>
<h3 id="choose">Choose a Language:</h3>
<div class="selectblock">
<select id="language" onchange="changeLang(this.value)"></select>
<select id="language" onchange="changethelang(this.value)"></select>
</div>
<br>
<textarea id="input" spellcheck="false" onkeyup="printBraille(this.value)"></textarea>
Expand Down
11 changes: 11 additions & 0 deletions interbraille.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,18 @@ function printBraille(text){
}


function changethelang(lang){
url = new URL("https://letterly.github.io/interbraille.html")
url.searchParams.set('lang', lang);
history.pushState({}, "", url);
changeLang(lang)
}

function changeLang(lang){




stringo = {
"⠀": " ",
"⠮": "!",
Expand Down

0 comments on commit acad3b2

Please sign in to comment.