Skip to content
Open
Show file tree
Hide file tree
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 library/html/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,13 @@
</div>
<div class="footer-copyright">
<div>
Copyright 2021, Institute Computer Centre, IIT Roorkee
Copyright <span class="copyright-year"></span>, Institute Computer Centre, IIT Roorkee
</div>
<script>
var copyrightYear = document.querySelectorAll('.copyright-year')
var year = new Date().getFullYear()
copyrightYear[0].innerHTML = year
</script>
<!-- <div class="totalviews" style="color: var(--black);">
Total Pageviews: 12414
</div> -->
Expand Down
9 changes: 7 additions & 2 deletions test/components/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,20 @@
</div>
<div class="footer-copyright">
<div>
Copyright 2021, Institute Computer Centre, IIT Roorkee
Copyright <span class="copyright-year"></span>, Institute Computer Centre, IIT Roorkee
</div>
<div class="totalviews" style="color: var(--black);">
Total Pageviews: 12414
</div>
</div>
</div>
</div>
<script>
var copyrightYear = document.querySelectorAll('.copyright-year')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

script should be in separate file.

var year = new Date().getFullYear()
copyrightYear[0].innerHTML = year
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update for all copyrightYear instead of first occurance.

</script>
<script src="../../library/javascript/components/social-icon.js"></script>
<script src="../../library/javascript/components/icon-library.js"></script>
<script src="../../library/javascript/components/icon-library.js"></script>
</body>
</html>