-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (120 loc) · 4.1 KB
/
index.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<html>
<head>
<title>LineShaper</title>
<meta charset="UTF-8">
<link rel="shortcut icon" href="/lineShaper/favicon.ico" />
</head>
<style>
body {
background-color: #343a40;
margin: 0;
}
p.mainTitle {
font-family: verdana;
font-size: 2rem;
color: #52b69a;
margin: 0;
}
p.version {
font-family: verdana;
font-size: 1rem;
color: #52b69a;
margin: auto 0;
}
p.text {
font-family: verdana;
font-size: 1.25rem;
color: #f8f9fa;
margin: auto;
text-align: center;
}
input {
font-family: verdana;
font-size: 1.5rem;
width: 18rem;
color: #f8f9fa;
background-color: #343a40;
border: solid transparent 0.2rem;
border-radius: 0.5rem;
padding: 0.5rem;
}
input:hover {
background-color: #212529;
border: solid #52b69a 0.2rem;
}
.innerMenu {
display: flex;
flex-direction: column;
margin: auto;
padding: 2rem;
background-color: #212529;
border-radius: 0.5rem;
}
.title {
display: flex;
margin: auto auto 2rem auto;
width: 25rem;
align-items: center;
justify-content: center;
}
#rightControl {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: calc(100vw - 4.01rem);
}
button.languageBtn {
margin: 0.5rem;
width: 3rem;
height: 3rem;
padding: 0;
border-radius: 0.5rem;
border: solid transparent 0.2rem;
background: none;
color: #f8f9fa;
}
button.languageBtn:hover {
border: solid #52b69a 0.2rem;
}
p.languageBtn {
font-size: large;
font-weight: 700;
margin: auto;
}
</style>
<body>
<div style="display: flex; flex-direction: column; height: 100vh; width: 100%;">
<div class="innerMenu">
<div class="title">
<p class="mainTitle"><i>LineShaper</i></p>
<p class="version">1.3</p>
</div>
<div class="title">
<p id="text" class="text">Interaktivní nástroj pro generování tras linek veřejné dopravy.</p>
</div>
<input id='href1' style="margin: 0.5rem auto 0.5rem auto;" type="button" onclick="location.href='/lineShaper/mapEditor/'" value="Editor map" />
<input id='href2' style="margin: 0 auto auto auto;" type="button" onclick="location.href='/lineShaper/lineRouter/'" value="Trasování linek" />
</div>
</div>
<div id="rightControl">
<button onclick="changeLang()" class="languageBtn"><p id="lang" class="languageBtn">EN</p></button>
</div>
</body>
<script type="text/javascript">
function changeLang() {
let lang = document.getElementById("lang").innerHTML;
if (lang === 'EN') {
document.getElementById("href1").value = 'Map Editor';
document.getElementById("href2").value = 'Line Router';
document.getElementById("text").innerHTML = 'Interactive tool for generating public transport line routes.';
document.getElementById("lang").innerHTML = 'CZ';
} else {
document.getElementById("href1").value = 'Editor map';
document.getElementById("href2").value = 'Trasování linek';
document.getElementById("text").innerHTML = 'Interaktivní nástroj pro generování tras linek veřejné dopravy.';
document.getElementById("lang").innerHTML = 'EN';
}
}
</script>
</html>