-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
84 lines (74 loc) · 3.27 KB
/
home.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
<html lang="en">
<head>
<title>Breathy</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script>
var resultJsonListDetection = (function () {
var resultJsonListDetection = null;
$.ajax({
'async': false,
'global': false,
'url': '/data/text/home/en.json',
'dataType': "json",
'success': function (data) {
myListjsonListDetection = data;
}
});
for (var i = 0; i < myListjsonListDetection.length; i++) {
//Comparer si la ligne dans list-detection-pattern.json est pour la page actuelle (Detection==htmlParameter)
if(myListjsonListDetection[i]["id"]==$.cookie("lang")){
return myListjsonListDetection[i];
}
}
})();
$(document).ready(function(){
$('#title1').text(resultJsonListDetection["introduction"]);
//$('#title2').text(resultJsonListDetection["title2"]);
});
</script>
</head>
<body>
<div id="header">
<script src="assets/dist/js/cookie_lang.js" id="myScript" data-name="home"></script>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="/index.html" id="text-list-detection-title"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
Menu</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="/content/configuration/configuration.html">Configuration</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/content/detection/detection.html">Detection</a>
</li>
</ul>
<div>
<button type="button" class="btn btn-outline btn-rounded" data-mdb-ripple-color="dark" onclick="changeLang('cn')">繁體字</button>
<button type="button" class="btn btn-outline btn-rounded" data-mdb-ripple-color="dark" onclick="changeLang('en')">English</button>
</div>
</div>
</div>
</nav>
<br>
</div>
<div id="content" class="container-fluid">
<p id="intro"></p>
<p id="title1"></p>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<link rel="stylesheet" href="/assets/dist/css/bootstrap.min.css" >
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet"/>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet"/>
<!-- MDB -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.10.1/mdb.min.css" rel="stylesheet"/>
<script src="/assets/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>