Skip to content

Commit

Permalink
fix disclaimer fwk Calc. DE
Browse files Browse the repository at this point in the history
  • Loading branch information
le3tspeak committed Oct 19, 2024
1 parent 4ad795c commit 7f5c3eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions assets/js/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ function switchLanguage(language) {
document.getElementById('DE-FWK-Calc-Note').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-FWK-Calc-Head').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-FWK-Calc-Head').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-FWK-Calc-Result-Disclaimer').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-FWK-Calc-Result-Disclaimer').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-FWK-Calc-Result').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-FWK-Calc-Result').style.display = (language === 'DE') ? 'block' : 'none';

Expand Down
18 changes: 13 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,20 @@ <h3 class="major">Feldschwächungsrechner</h3>
<div class="results" id="results-section">
<div style="display: inline-block">
<div style="text-align: center;">
<label style="width: auto; padding-left: 1rem; color:crimson;"><u>Warning and Disclaimer</u> <br> </label>
<div id="EN-FWK-Calc-Result-Disclaimer" style="display: block">
<label style="width: auto; padding-left: 1rem; color:crimson;"><u>Warning and Disclaimer</u> <br> </label>
<label style="width: auto; padding-left: 1rem; color:crimson;">FIELD WEAKENING EXCEEDS THE DESIGN AND INTENDED USE OF THE SCOOTER. WE ACCEPT NO RESPONSIBILITY FOR ANY EVENTUAL DAMAGE TO YOUR HARDWARE.</label>
<label style="width: auto; padding-left: 1rem; color:crimson;">Please exercise Caution. Monitor your Hardware closely an gradually increase the current.</label>
</div>
<div id="DE-FWK-Calc-Result-Disclaimer" style="display: none">
<label style="width: auto; padding-left: 1rem; color:crimson;"><u>Warnung und Haftungsausschluss</u> <br> </label>
<label style="width: auto; padding-left: 1rem; color:crimson;">FELDSCHWÄCHUNG ÜBERSTEIGT DIE KONSTRUKTION UND DEN VERWENDUNGSZWECK DES SCOOTERS. WIR ÜBERNEHMEN KEINE VERANTWORTUNG FÜR EVENTUELLE SCHÄDEN AN IHRER HARDWARE.</label>
<label style="width: auto; padding-left: 1rem; color:crimson;">Seien Sie bitte vorsichtig. Überwachen Sie Ihre Hardware genau und erhöhen Sie die Stromstärke allmählich.</label>
</div>
</div>
<label style="width: auto; padding-left: 1rem; color:crimson;">FIELD WEAKENING EXCEEDS THE DESIGN AND INTENDED USE OF THE SCOOTER. WE ACCEPT NO RESPONSIBILITY FOR ANY EVENTUAL DAMAGE TO YOUR HARDWARE.</label>
<label style="width: auto; padding-left: 1rem; color:crimson;">Please exercise Caution. Monitor your Hardware closely an gradually increase the current.</label>
<br>
</div>
<br>
<br>
<div>
<div id="EN-FWK-Calc-Result" style="display: block">
<h3 class="major">Calculated Settings:</h3>
Expand All @@ -464,7 +472,7 @@ <h3 class="major">Berechnete Einstellungen:</h3>
<div class="results-warning" id="warning-section">
<label style="width: auto; color:crimson;">Warning: Maximum Field Current exceeds the default 30A phase limit.</label>
</div>
</div>
</div>
</section>
</article>

Expand Down

0 comments on commit 7f5c3eb

Please sign in to comment.