-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlang.html
76 lines (70 loc) · 3.16 KB
/
lang.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="lang.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<title>Languages</title>
</head>
<body>
<div class="container-fluid" id="lang_container_fluid">
<div class="container" id="lang_container">
<div class="row" id="lang_row">
<article class="col-md-3">
<!-- <p>YE SUIS LA</p> -->
</article>
<article class="col-md-6" id="lang_center_article">
<p id="lang_paragraph">
Please select your language
</p>
<div class="">
<button type="button" name="button" id="lang_button" onclick="ChangeLanguage('French')">
<img src="flags/french.png" id="lang_button_image">
</button>
<button type="button" name="button" id="lang_button" onclick="ChangeLanguage('English')">
<img src="flags/english.png" id="lang_button_image">
</button>
<button type="button" name="button" id="lang_button" onclick="ChangeLanguage('Spanish')">
<img src="flags/spain.png" id="lang_button_image">
</button>
<br><br>
<button type="button" name="button" id="lang_button_start" onclick="GoToIndex()">
Start the visit !
</button>
</div>
</article>
<article class="col-md-3">
<!-- <p>YE SUIS LA</p> -->
</article>
</div>
</div>
</div>
<script type="text/javascript">
function ChangeLanguage(lang)
{
var newTextLang = "";
var newTextButton = "";
if(lang == "French")
{
newTextLang = "Merci de selectionner votre language";
newTextButton = "Commencer la visite !";
}else if(lang == "English")
{
newTextLang = "Please select your language";
newTextButton = "Start the visit !";
}else if(lang == "Spanish")
{
newTextLang = "Por favor selectare su langua";
newTextButton = "Empezar la exploracion !";
}
document.getElementById('lang_paragraph').innerHTML = newTextLang;
document.getElementById('lang_button_start').innerHTML = newTextButton;
}
function GoToIndex()
{
window.location.href = "index.html";
}
</script>
</body>
</html>