Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tire generator #217

Merged
merged 1 commit into from
Feb 1, 2025
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
20 changes: 12 additions & 8 deletions docs/assets/js/tiresGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,32 +341,32 @@ function createTireSets() {
html += " <tr>";

if (index == 11)
html += " <th colspan=\"3\">Индивидуальная настройка давления в шинах. Tire set Individual</th>";
html += " <th colspan=\"3\">Индивидуальная настройка давления в шинах / Tire set Individual</th>";
else
html += " <th colspan=\"3\">Настройка давления в шинах. Tire set: #" + index + "</th>";
html += " <th colspan=\"3\">Настройка давления в шинах / Tire set: #" + index + "</th>";

html += " </tr>";
html += " <tr>";
html += " <td>Имя</td>";
html += " <td colspan=\"2\"><input id=\"t" + index + "name\" style=\"height: 25px; color: #ffff00; font-weight: bold; background-color:#4051b5; width: 100%;\"></td>";
html += " </tr>";
html += " <tr>";
html += " <td class=\"sub\"><b>Тип загрузки машины. Situation</b></td>";
html += " <td class=\"sub\"><b>Передние колеса. Front</b></td>";
html += " <td class=\"sub\"><b>Задние колеса. Rear</b></td>";
html += " <td class=\"sub\"><b>Тип загрузки машины / Load situation</b></td>";
html += " <td class=\"sub\"><b>Передние колеса / Front wheels</b></td>";
html += " <td class=\"sub\"><b>Задние колеса / Rear wheels</b></td>";
html += " </tr>";
html += " <tr>";
html += " <td>Полная загрузка. Fully loaded</td>";
html += " <td>Полная загрузка / Full load</td>";
html += " <td>" + generatePD("t" + index + "pff") + "</td>";
html += " <td>" + generatePD("t" + index + "prf") + "</td>";
html += " </tr>";
html += " <tr>";
html += " <td>Стандартная загрузка. Standard load</td>";
html += " <td>Стандартная загрузка / Standard load</td>";
html += " <td>" + generatePD("t" + index + "pfp") + "</td>";
html += " <td>" + generatePD("t" + index + "prp") + "</td>";
html += " </tr>";
html += " <tr id=\"trcomfort" + index + "\">";
html += " <td>Комфортная загрузка. Comfort load</td>";
html += " <td>Комфортная загрузка / Comfort load</td>";
html += " <td>" + generatePD("t" + index + "pfc") + "</td>";
html += " <td>" + generatePD("t" + index + "prc") + "</td>";
html += " </tr>";
Expand Down Expand Up @@ -436,4 +436,8 @@ function saveConfig() {
}

var result = window.prompt("Сохранить настройки. Save configuration\n\nПожалуйста, сохраните код, приведённый ниже. Он может быть использован для восстановления настроек в любое время.\nPlease backup the configuration code below, it can be used to restore the current configuration at a later point in time.", window.btoa(code));
}

window.onload = function() {
createTireSets();
}
4 changes: 4 additions & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ comments: false
---
# История изменений

### 01.02.2025
1. Обновление UI
2. Исправлено неправильное отображение таблицы в генераторе шин

### 31.01.2025
1. Большое обновление функций MQB-Evo

Expand Down
2 changes: 1 addition & 1 deletion overrides/pages/tiresGenerator.en.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<body onload="createTireSets()">
<body>
<form>
<table class="bordered">
<tr>
Expand Down
2 changes: 1 addition & 1 deletion overrides/pages/tiresGenerator.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<body onload="createTireSets()">
<body>
<form>
<table class="bordered">
<tr>
Expand Down