Skip to content

Commit

Permalink
Merge pull request #66 from gauravsingh1281/Issue-No.-#54
Browse files Browse the repository at this point in the history
Issue No. #54 [BUG FIXED] In the footer section, the copyright year should be dynamically generated instead of being statically hardcoded.
  • Loading branch information
dakshsinghrathore authored Oct 12, 2023
2 parents 9d0f09f + 46d2b46 commit 0e620ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions JS/copyrightYear.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let copyRightYear = document.getElementById("copyright-year");
let currentDate = new Date();
let currentYear = currentDate.getFullYear();
copyRightYear.innerText = currentYear;
4 changes: 2 additions & 2 deletions Mission.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h2 class="jobtitle">SPADEX or Space Docking Experiment</h2>

<footer>
<ul>
<li>ISRO &copy; 2023</li>
<li>ISRO &copy; <span id="copyright-year"></span> </li>
<li><a href="https://twitter.com/isro" target="_blank">Twitter</a></li>
<li><a href="https://www.youtube.com/@isroofficial5866" target="_blank">YouTube</a></li>
<li><a href="https://www.linkedin.com/company/isro/" target="_blank">LinkedIn</a></li>
Expand All @@ -201,7 +201,7 @@ <h2 class="jobtitle">SPADEX or Space Docking Experiment</h2>
</ul>
</footer>


<script src="./JS/copyrightYear.js"></script>
</body>

</html>
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ <h2>Subscribe to Our Newsletter</h2>

<footer>
<ul>
<li>ISRO &copy; 2023</li>
<li>ISRO &copy; <span id="copyright-year"></span></li>
<li><a href="https://twitter.com/isro" target="_blank">Twitter</a></li>
<li><a href="https://www.youtube.com/@isroofficial5866" target="_blank">YouTube</a></li>
<li><a href="https://www.linkedin.com/company/isro/" target="_blank">LinkedIn</a></li>
Expand All @@ -233,6 +233,6 @@ <h2>Subscribe to Our Newsletter</h2>
</ul>
</footer>


<script src="./JS/copyrightYear.js"></script>
</body>
</html>

0 comments on commit 0e620ee

Please sign in to comment.