Create a gist now

Instantly share code, notes, and snippets.

Embed
Dynamic Copyright Date Example
<!-- 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 = "&copy;" + 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