-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.html
48 lines (48 loc) · 2.18 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Footer</title>
<link href="https://fonts.googleapis.com/css?family=Chela+One|Eczar|Merienda|Orbitron|Pacifico" rel="stylesheet">
<link rel="stylesheet" href="build/footer/footer.css">
</head>
<body>
<div class="chelaOne">
<footer>
©<span class="year">{{year}}</span> <a href="#" class="red"><b>YogoLabs</b></a>
</footer>
</div>
<div class="eczar">
<footer>
©<span class="year">{{year}</span> <a href="#" class="blue"><b>YogoLabs</b></a>
</footer>
<!-- <script type="text/javascript">document.addEventListener('DOMContentLoaded',function(){var em = document.querySelector(".year");em.innerHTML= new Date().getFullYear();})</script> -->
</div>
<div class="pacifico">
<footer>
©<span class="year">{{year}</span> <a href="#" class="yellow"><b>YogoLabs</b></a>
</footer>
<!-- <script type="text/javascript">document.addEventListener('DOMContentLoaded',function(){var em = document.querySelector(".year");em.innerHTML= new Date().getFullYear();})</script> -->
</div>
<div class="marienda">
<footer>
©<span class="year">{{year}</span> <a href="#" class="green"><b>YogoLabs</b></a>
</footer>
<!-- <script type="text/javascript">document.addEventListener('DOMContentLoaded',function(){var em = document.querySelector(".year");em.innerHTML= new Date().getFullYear();})</script> -->
</div>
<div class="orbitron">
<footer>
©<span class="year">{{year}</span> <a href="#" class="pink"><b>YogoLabs</b></a>
</footer>
<!-- <script type="text/javascript">document.addEventListener('DOMContentLoaded',function(){var em = document.querySelector(".year");em.innerHTML= new Date().getFullYear();})</script> -->
</div>
<script type="text/javascript">document.addEventListener('DOMContentLoaded',function(){
var em = document.querySelectorAll(".year");
em.forEach(function(value,index,array){
array[index].textContent= new Date().getFullYear();
})
})
//em.innerHTML= new Date().getFullYear();})
</script>
</body>
</html>