Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
METROKOP228 committed Jan 11, 2025
1 parent 003d8f4 commit 430bf29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ <h2>LocalStorage</h2>
Зберігати дані в localStorage?<br><input type="checkbox" class="settings-checkbox" id="cookies-checkbox">
<div id="local-storage-req">
<h2>Інше</h2>
Вантажити<select name="choice-load-java" id="choice-load-java">
Вантажити версії Java: <select name="choice-load-java" id="choice-load-java">
<option value="all">усі</option>
<option value="major">мажорні</option>
<option value="last">лише останню</option>
</select>версію(ї) Java <span class="link-text">*</span>
</select> <span class="link-text">*</span>
<i><small>Пришвидшить завантаження сторінки</small></i>

<br><br>Показувати екран завантаження? <span class="link-text">*</span><br><input type="checkbox" class="settings-checkbox" id="loading-screen-checkbox" checked>
Expand Down
10 changes: 9 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const replacements_sound = {
"foot=": "підвал=",
"nocat": "некат",
"type": "тип",
"title": "назва",
"Baby:": "Дитинча:",
"=''varies''": "=''варіюється''",
"=master": "=загальне",
Expand Down Expand Up @@ -381,7 +382,13 @@ const replacements_itemEntity = {
"common": "звичайний",
"uncommon": "незвичайний",
"rare": "рідкісний",
"epic": "епічний"
"epic": "епічний",
"= yes": "= так",
"= no": "= ні",
"=yes": "=так",
"=no": "=ні",
"Yes": "Так",
"No": "Ні"
};

const monthes = {
Expand Down Expand Up @@ -625,6 +632,7 @@ function id_table(text) {

function sound_table(text) {
highlightAdditions(text, text
.replace(/\{\{(.*)\[\[sound type\]\] / ,"[[Тип звуку]] {{$1")
.split("\n")
.map(segment => segment.includes("subtitle") ? translateJava(performReplacements(segment, replacements_sound)) : performReplacements(segment, replacements_sound))
.join("\n"));
Expand Down

0 comments on commit 430bf29

Please sign in to comment.