Skip to content

Commit 5d60530

Browse files
committed
(docs) Set year dynamically
1 parent 5e87db3 commit 5d60530

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

demo/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ <h3>Usage instructions and source code can be found on
219219
</div>
220220
<footer>
221221
<p>Images have been downloaded from: <a href="https://unsplash.com/">unsplash.com</a> and <a href="http://www.gratisography.com/">gratisography.com</a></p>
222-
<p>Copyright &copy; 2016 <a href="https://github.com/feimosi/">feimosi</a></p>
222+
<p>
223+
Copyright &copy;
224+
<span id="year"></span>
225+
<a href="https://github.com/feimosi/">feimosi</a>
226+
</p>
223227
</footer>
224228
<script src="js/baguetteBox.js" async></script>
225229
<script src="js/highlight.min.js" async></script>
@@ -248,6 +252,9 @@ <h3>Usage instructions and source code can be found on
248252
if (typeof oldIE === 'undefined' && Object.keys) {
249253
hljs.initHighlighting();
250254
}
255+
256+
var year = document.getElementById('year');
257+
year.innerText = new Date().getFullYear();
251258
};
252259
</script>
253260
</body>

0 commit comments

Comments
 (0)