Skip to content

Commit b450e0d

Browse files
authored
Merge pull request #459 from RadhikaMalpani1702/dev
AddedAdd dynamic date functionlity to the copyright section to update yearly
2 parents d73f28a + 757460b commit b450e0d

File tree

8 files changed

+71
-31
lines changed

8 files changed

+71
-31
lines changed

index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,16 @@ <h5>
168168

169169
<div class="footer-bottom">
170170
<div class="footer-container">
171-
<p class="footer-copyright">
172-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
173-
</p>
171+
<p class="footer-copyright">
172+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
173+
</p>
174174
</div>
175-
</div>
175+
</div>
176+
177+
<script>
178+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
179+
</script>
180+
176181
</footer>
177182

178183
<!-- Scroll to top -->

pages/blog.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,12 +1795,17 @@ <h5>
17951795
</div>
17961796

17971797
<div class="footer-bottom">
1798-
<div class="footer-container">
1799-
<p class="footer-copyright">
1800-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
1801-
</p>
1802-
</div>
1803-
</div>
1798+
<div class="footer-container">
1799+
<p class="footer-copyright">
1800+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
1801+
</p>
1802+
</div>
1803+
</div>
1804+
1805+
<script>
1806+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
1807+
</script>
1808+
18041809
</footer>
18051810
<!-- Scroll to top -->
18061811
<button id="scrollToTop" aria-label="Scroll to top">

pages/compare.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,16 @@ <h5>
168168

169169
<div class="footer-bottom">
170170
<div class="footer-container">
171-
<p class="footer-copyright">
172-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
173-
</p>
171+
<p class="footer-copyright">
172+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
173+
</p>
174174
</div>
175-
</div>
175+
</div>
176+
177+
<script>
178+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
179+
</script>
180+
176181
</footer>
177182

178183
<!-- Scroll to top -->

pages/events.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,16 @@ <h5>
155155

156156
<div class="footer-bottom">
157157
<div class="footer-container">
158-
<p class="footer-copyright">
159-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
160-
</p>
158+
<p class="footer-copyright">
159+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
160+
</p>
161161
</div>
162-
</div>
162+
</div>
163+
164+
<script>
165+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
166+
</script>
167+
163168
</footer>
164169

165170
<script src="../scripts/script.js"></script>

pages/exploremore.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,16 @@ <h5>
118118

119119
<div class="footer-bottom">
120120
<div class="footer-container">
121-
<p class="footer-copyright">
122-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
123-
</p>
121+
<p class="footer-copyright">
122+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
123+
</p>
124124
</div>
125-
</div>
125+
</div>
126+
127+
<script>
128+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
129+
</script>
130+
126131
</footer>
127132

128133
<!-- Scroll to top -->

pages/githubbadge.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,10 +990,15 @@ <h5>
990990
<div class="footer-bottom">
991991
<div class="footer-container">
992992
<p class="footer-copyright">
993-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
993+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
994994
</p>
995995
</div>
996996
</div>
997+
998+
<script>
999+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
1000+
</script>
1001+
9971002
</footer>
9981003

9991004
<!-- Scroll to top -->

pages/help.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ <h5>
170170

171171
<div class="footer-bottom">
172172
<div class="footer-container">
173-
<p class="footer-copyright">
174-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
175-
</p>
173+
<p class="footer-copyright">
174+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
175+
</p>
176176
</div>
177-
</div>
177+
</div>
178+
179+
<script>
180+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
181+
</script>
182+
178183
</footer>
179184

180185
<!-- Scroll to top -->

pages/saved-blogs.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,16 @@ <h5>
9393

9494
<div class="footer-bottom">
9595
<div class="footer-container">
96-
<p class="footer-copyright">
97-
&copy; 2024 Recode-Hive. Made with 🖤️ by the community. All rights reserved.
98-
</p>
96+
<p class="footer-copyright">
97+
&copy; <span id="dynamic-year"></span> Recode-Hive. Made with 🖤️ by the community. All rights reserved.
98+
</p>
9999
</div>
100-
</div>
100+
</div>
101+
102+
<script>
103+
document.getElementById("dynamic-year").textContent = new Date().getFullYear();
104+
</script>
105+
101106
</footer>
102107
<script>
103108
document.addEventListener('DOMContentLoaded', () => {

0 commit comments

Comments
 (0)