-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (42 loc) · 1.69 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
<!--
Hello, there !
This app was an exercise to understand the Observer pattern in Javascript.
If you want to know more about this : https://github.com/mcampourcy/HexaTime
-->
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HexaTime</title>
<meta name="description" content="Transform the background color with current time "/>
<link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet">
<link rel="stylesheet" href="style/style.css">
</head>
<body onload="model.itsTime()">
<ul>
<li><a href="https://github.com/mcampourcy/HexaTime" target="_blank" title="See on Github"><span class="icon-github"></span></a></li>
<li id="showLegal" onclick="show()"><span class="icon-help-circle know-more"></span></li>
</ul>
<h1 id="title"></h1>
<p class="legal">
Written in December 2016 <br>
Fonts by <a href="https://feathericons.com/" target="_blank" title="Feather icons font">Feather</a> through <a
href="https://icomoon.io/" target="_blank">IcoMoon</a><br>
</p>
<script src="js/Observer.js"></script>
<script src="js/Observable.js"></script>
<script src="js/View.js"></script>
<script src="js/Model.js"></script>
<script src="js/Controller.js"></script>
<script>
function show() {
const target = document.querySelector('.legal');
target.classList.toggle('active');
target.style.opacity = target.classList.contains('active') ? 1 : 0;
}
</script>
</body>
</html>