Skip to content

⚡ [Footer] Update copyright year dynamically in footer#228

Open
saurabhhere wants to merge 1 commit intostagingfrom
footer-fix
Open

⚡ [Footer] Update copyright year dynamically in footer#228
saurabhhere wants to merge 1 commit intostagingfrom
footer-fix

Conversation

@saurabhhere
Copy link
Copy Markdown
Member

Fix #201

@saurabhhere saurabhhere requested a review from ayu023ban May 9, 2022 04:09
</div>
</div>
<script>
var copyrightYear = document.querySelectorAll('.copyright-year')
Copy link
Copy Markdown
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.

<script>
var copyrightYear = document.querySelectorAll('.copyright-year')
var year = new Date().getFullYear()
copyrightYear[0].innerHTML = year
Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Footer Copyright dynamic javascript 2022

2 participants