From cecc0d4b5ff5799b9fac05f4459f219e11c0f7d2 Mon Sep 17 00:00:00 2001 From: Kanaduchi Date: Sat, 23 Nov 2024 18:43:15 +0000 Subject: [PATCH] #200x Fix mistakes --- docs/MQB/parking.en.md | 16 ++++++++++++++++ docs/assets/js/tiresGenerator.js | 9 ++++++++- docs/history.md | 3 +++ overrides/pages/tiresGenerator.en.html | 1 + overrides/pages/tiresGenerator.html | 1 + requirements.txt | 6 +++--- 6 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 docs/MQB/parking.en.md diff --git a/docs/MQB/parking.en.md b/docs/MQB/parking.en.md new file mode 100644 index 00000000..dc3fbee4 --- /dev/null +++ b/docs/MQB/parking.en.md @@ -0,0 +1,16 @@ +# Parking and Maneuvering + +### Setting the speed at which parking sensors will be disabled + +```yaml +Block 03 (Brake System Electronics Block) → Adaptation: +Shutdown parking aid: 20km/h +→ Apply +``` + +### 3D Area View for the rear view camera + +``` yaml +Block 6C - Rear View Camera System → Coding: +3D_Presentation: Activate +``` \ No newline at end of file diff --git a/docs/assets/js/tiresGenerator.js b/docs/assets/js/tiresGenerator.js index c2015a57..e4590623 100644 --- a/docs/assets/js/tiresGenerator.js +++ b/docs/assets/js/tiresGenerator.js @@ -168,6 +168,13 @@ function generateBody(dataset, ecuName, ecuType, ecuVersion, tireSets) { } function doGenerate() { + + var numTireSets = document.getElementById("numTireSets").value; + if (numTireSets < 1) { + window.alert("Количество комплектов шин должно быть больше 0.\nNumber of tire sets should be greater than 0."); + return; + } + var dataset = document.getElementById('dataset'); dataset.value = ""; @@ -197,7 +204,7 @@ function doGenerate() { } else { var value = document.getElementById("t" + index + "name").value; if (!/^[a-zA-Z]+$/.test(value)) { - window.alert("Имя конфигурации может содержать только латинские буквы.\nConfiguration name should have only latin symbols."); + window.alert("Имя конфигурации #" + index + " может содержать только латинские буквы.\nConfiguration name should have only latin symbols."); return; } var set = { diff --git a/docs/history.md b/docs/history.md index 5ae4009e..d987f357 100644 --- a/docs/history.md +++ b/docs/history.md @@ -3,6 +3,9 @@ comments: false --- # История изменений +### 23.11.2024 +1. Различные исправления ошибок + ### 03.01.2024 1. Добавлена MQB-EVO платформа diff --git a/overrides/pages/tiresGenerator.en.html b/overrides/pages/tiresGenerator.en.html index e387a0ac..b50dbfeb 100644 --- a/overrides/pages/tiresGenerator.en.html +++ b/overrides/pages/tiresGenerator.en.html @@ -34,6 +34,7 @@ Number of tire sets + diff --git a/requirements.txt b/requirements.txt index 40ef23af..424f930f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -mkdocs-material==9.5.30 -mkdocs-print-site-plugin==2.5.0 +mkdocs-material==9.5.45 +mkdocs-print-site-plugin==2.6.0 mkdocs-static-i18n==1.2.3 -mkdocs-git-revision-date-localized-plugin==1.2.6 \ No newline at end of file +mkdocs-git-revision-date-localized-plugin==1.3.0 \ No newline at end of file