Skip to content

Commit

Permalink
Merge pull request #709 from ygowthamr/dynamicCCYearInFooter
Browse files Browse the repository at this point in the history
Added Dynamic Copyright Year to Footer
  • Loading branch information
YadavAkhileshh authored Nov 7, 2024
2 parents 3556fa1 + e622e80 commit 7bc8c81
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
5 changes: 4 additions & 1 deletion FAQs.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ <h2 onclick="toggleAnswer(this)">
class="text-center p-3"
style="background-color: rgba(0, 0, 0, 0.05)"
>
© 2024 Alien-Invasion-Defense. All rights reserved.
© <span id="currentYear"></span> Alien-Invasion-Defense. All rights reserved.
</div>
<!-- Copyright -->
</footer>
Expand All @@ -406,6 +406,9 @@ <h2 onclick="toggleAnswer(this)">
<script src="FAQs.js"></script>

<script>

document.getElementById("currentYear").textContent = new Date().getFullYear();

window.embeddedChatbotConfig = {
chatbotId: "W_g3OYohwvFoV5lha0KUf",
domain: "www.chatbase.co",
Expand Down
5 changes: 4 additions & 1 deletion feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,14 @@

<!-- Footer -->
<footer class="mt-8 text-center text-indigo-300">
<p>© 2024 Alien-Invasion-Defense. All rights reserved.</p>
<p>© <span id="currentYear"></span> Alien-Invasion-Defense. All rights reserved.</p>
</footer>
</div>

<script>

document.getElementById("currentYear").textContent = new Date().getFullYear();

const trustedDomains = [
'gmail.com',
'outlook.com',
Expand Down
5 changes: 4 additions & 1 deletion privacy_policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,12 @@ <h2>6. Contact Us</h2>

<!-- Copyright -->
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.05);">
© 2024 Alien-Invasion-Defense. All rights reserved.
© <span id="currentYear"></span> Alien-Invasion-Defense. All rights reserved.
</div>
<!-- Copyright -->
</footer>
</body>
<script>
document.getElementById("currentYear").textContent = new Date().getFullYear();
</script>
</html>
6 changes: 4 additions & 2 deletions profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ <h2>Notifications</h2>

<!-- Copyright -->
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.05);">
© 2024 Alien-Invasion-Defense. All rights reserved.
© <span id="currentYear"></span> Alien-Invasion-Defense. All rights reserved.
</div>
<!-- Copyright -->
</footer>

<script>
document.getElementById("currentYear").textContent = new Date().getFullYear();
</script>
</body>

</html>
5 changes: 4 additions & 1 deletion rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ <h2>Score Table</h2>

<!-- Copyright -->
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.05)">
© 2024 Alien-Invasion-Defense. All rights reserved.
© <span id="currentYear"></span> Alien-Invasion-Defense. All rights reserved.
</div>
<!-- Copyright -->
</footer>
<script>
document.getElementById("currentYear").textContent = new Date().getFullYear();
</script>
</html>

0 comments on commit 7bc8c81

Please sign in to comment.