-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
36 lines (33 loc) · 1.16 KB
/
Copy pathscript.js
File metadata and controls
36 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
function SelectLanguage(LanguageType){
if (LanguageType == "English") {
document.getElementById("introtext0").innerText = "Hey! I'm zakdev!";
}
if (LanguageType == "Spanish") {
document.getElementById("introtext0").innerText = "¡Ey! ¡Soy zakdev!";
}
if (LanguageType == "French") {
document.getElementById("introtext0").innerText = "Hé! Je suis zakdev!";
}
if (LanguageType == "Portuguese") {
document.getElementById("introtext0").innerText = "Olá! Eu sou o Zakdev!";
}
if (LanguageType == "Arabic") {
document.getElementById("introtext0").innerText = "!يا! أنا زاكديف!";
}
}