Created
May 13, 2013 14:10
-
-
Save anasnakawa/5568579 to your computer and use it in GitHub Desktop.
replace copyright data with current year..
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
// valid for all dates from 2000 through 2099 | |
(function( $copy ) { | |
$copy.html( $copy.html().replace(/20[0-9]{2}/, function() { return new Date().getFullYear() }) ) | |
})( jQuery('#copy') ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment