Created
April 20, 2018 21:06
-
-
Save jamesnotjim/fafa5c21852dc46945b21590b4db5579 to your computer and use it in GitHub Desktop.
Dynamic Copyright Date Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- include these in the head --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$( document ).ready(function() { | |
var copyrightYear = (new Date()).getFullYear(); | |
var copyrightVerbiage = "Tyrell Corporation. Trademarks and registered trademarks are owned by Tyrell Corporation or its subsidiaries."; | |
element = document.getElementById("Copyright"); | |
element.innerHTML = "©" + copyrightYear + " " + copyrightVerbiage; | |
}); | |
</script> | |
<!-- include this in the body, wherever you want the copyright statement to appear --> | |
<span id="Copyright"></span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment