forked from RetroFiber/RetroFiber.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
headerm.html
67 lines (57 loc) · 2.45 KB
/
headerm.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
<div>
<h2>
<div style="text-align: center;"><span id="MyClockDisplay" class="extra" onload="showTime()"></span>
<script>
function showTime(){
var date = new Date();
var h = date.getHours(); // 0 - 23
var m = date.getMinutes(); // 0 - 59
var s = date.getSeconds(); // 0 - 59
var session = "AM";
if(h == 0){
h = 12;
}
if(h > 12){
h = h - 12;
session = "PM";
}
h = (h < 10) ? "0" + h : h;
m = (m < 10) ? "0" + m : m;
s = (s < 10) ? "0" + s : s;
var time = h + ":" + m + ":" + s + " " + session;
document.getElementById("MyClockDisplay").innerText = time;
document.getElementById("MyClockDisplay").textContent = time;
setTimeout(showTime, 1000);
}
showTime();
</script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><i class="fa fa-eye"></i> <i id="count" style="text-align: center;"></i><br>
<script>
const countEl = document.getElementById('count');
updateVisitCount();
function updateVisitCount() {
fetch('https://api.countapi.xyz/update/retrofiber.github.io/?amount=1')
.then(res => res.json())
.then(res => {
countEl.innerHTML = res.value;
})
}
</script>
<div class="dropdown">
<a href="javascript:show_hide()">Menu</a>
<div id="list-items">
<a href="https://retrofiber.github.io" >Projects</a> <a href="https://retrofiber.github.io/classicube-maps" >ClassicubeMaps</a> <a href="https://retrofiber.github.io/clockwork" >ClockworkApps</a> <a href="https://retrofiber.github.io/clockwork/themes" >ClockworkThemes</a> <a href="https://retrofiber.github.io/flashgames" >FlashGames</a> <a href="https://retrofiber.github.io/discord" >Discord</a> <a href="https://retrofiber.github.io/RetroTV" >MovieWeb</a> <a href="https://retrofiber.github.io/settings" >Settings</a> <a href="https://retrofiber.github.io/request">Request</a> </div>
</div>
<script>
document.getElementById("list-items").style.display === "block";
function show_hide() {
var click = document.getElementById("list-items");
if (click.style.display === "none") {
click.style.display = "block";
} else {
click.style.display = "none";
}
}
</script>
</h2>
</div>
<hr>