Skip to content

Commit 47bdae4

Browse files
committed
[WIP] -- Adding Language menu for en 00-01 html
Adding drop down menu option to change languages
1 parent 3bc1dd5 commit 47bdae4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

en/00-01.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,21 @@
1717
You can always go back and forth between the steps of the tutorial using the
1818
circles on the top of the page.
1919
</p>
20+
21+
22+
<select id="languageMenu" onchange="changeLanguage()">
23+
24+
<option id = "English" selected href="en\00-01.html" value="EN_00_01">English</option>
25+
<option id = "Deutsch" href="de\00-01.html" value="DE_00_01" >Deutsch</option>
26+
<option id = "Svenska" href="sv\00-01.html" value="SV_00_01">Svenska</option>
27+
28+
</select>
29+
30+
<script>
31+
function changeLanguage() {
32+
var getLanguageMenu = document.getElementById('languageMenu');
33+
var getLanguageHref = x.options[x.selectedIndex].getAttribute('href');
34+
//window.location.assign(getHref);
35+
console.log(getLanguageHref)
36+
}
37+
</script>

0 commit comments

Comments
 (0)