Skip to content

Commit

Permalink
fix Select Profile Lang. Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
le3tspeak committed Oct 18, 2024
1 parent 9992fd5 commit f40ee50
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions assets/js/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function switchLanguage(language) {
// G2
document.getElementById('EN-G2-Introduction').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-G2-Introduction').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-G2-ProfileSelection').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-G2-ProfileSelection').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-G2-ProfileSelection-Disclaimer').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-G2-ProfileSelection-Disclaimer').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-G2-ProfileSelection-Disclaimer-2').style.display = (language === 'EN') ? 'block' : 'none';
Expand Down Expand Up @@ -92,6 +94,8 @@ function switchLanguage(language) {
// G30
document.getElementById('EN-G30-Introduction').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-G30-Introduction').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-G30-ProfileSelection').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-G30-ProfileSelection').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-G30-ProfileSelection-Disclaimer').style.display = (language === 'EN') ? 'block' : 'none';
document.getElementById('DE-G30-ProfileSelection-Disclaimer').style.display = (language === 'DE') ? 'block' : 'none';
document.getElementById('EN-G30-ProfileSelection-Disclaimer-2').style.display = (language === 'EN') ? 'block' : 'none';
Expand Down
18 changes: 13 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ <h3 class="major">Was bedeutet Feldschwächung?</h3>
</ol>
</div>
<!-- Field Weakening Calculator -->
<section>


<section>
<div id="EN-FWK-Calc-Head" style="display: block">
<h3 class="major">Field Weakening Calculator</h3>
<div id="EN-FWK-Calc-Note" style="display: block">
Expand Down Expand Up @@ -543,7 +541,12 @@ <h3 class="major">Einleitung</h3>
</div>
<!-- Profile Selection -->
<div>
<h3 class="major">Select Profile</h3>
<div id="EN-G2-ProfileSelection" style="display: block">
<h3 class="major">Select Profile</h3>
</div>
<div id="DE-G2-ProfileSelection" style="display: none">
<h3 class="major">Profil wählen</h3>
</div>
<dropdown>
<select name="category-settings" id="category-settings" onchange="showProfile_G2(this.value)">
<option value="default">Factory Settings</option>
Expand Down Expand Up @@ -900,7 +903,12 @@ <h3 class="major">Einleitung</h3>
</div>
<!-- Profile Selection -->
<div>
<h3 class="major">Select Profile</h3>
<div id="EN-G30-ProfileSelection" style="display: block">
<h3 class="major">Select Profile</h3>
</div>
<div id="DE-G30-ProfileSelection" style="display: none">
<h3 class="major">Profil wählen</h3>
</div>
<dropdown>
<select name="category-settings" id="category-settings" onchange="showProfile_G30(this.value)">
<option value="default">Factory Settings</option>
Expand Down

0 comments on commit f40ee50

Please sign in to comment.