-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.html
31 lines (29 loc) · 1.19 KB
/
footer.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
<!doctype html>
<html lang='en'>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="style.css" />
<title>footer</title>
</head>
<body>
<!--Footer-->
<div id="footer"></div>
<div class="footer">
<h3 style="color: #000000; background-color: #f3f3f3; font-size: 18px; padding: 40px; margin: 0; text-align: center;">
© <span id="currentYear">2024</span> Copyright:
<a href="#">AzadRasul</a> <!--Both JS and PHP not worked for automatically update year -->
</div>
<!--Footer-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var currentYear = new Date().getFullYear();
document.getElementById('currentYear').innerText = currentYear;
});
</script>
</body>
</html>