Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static year in footer in About Us. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h4> Contact Us </h4>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<p class="copy-title">Copyright &copy; 2020 Bengaluru Veeraru
<p class="copy-title">Copyright &copy; <span id="copyright_year"></span> Bengaluru Veeraru
</p>
</div>
</div>
Expand Down Expand Up @@ -127,6 +127,11 @@ <h4> Contact Us </h4>
}
}
});
// get current year and replace it in copyright text
function copyrightYear(){
document.getElementById("copyright_year").innerHTML = new Date().getFullYear();
}
copyrightYear();
</script>
</footer>