Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc3cda4

Browse files
committed
Automate year insertion
1 parent1fdced0 commitdc3cda4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎layouts/footer.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222

2323
<divclass="wrapper">
24-
<p>Design &copy;<spanclass="js-year">2014</span> Copyright2014 GitHub, Inc.</p>
24+
<p>Design &copy;<spanclass="js-year"></span> Copyright<spanclass="js-year"></span> GitHub, Inc.</p>
2525
</div>
2626

2727
</div><!-- /#footer -->

‎static/js/documentation.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $(function() {
8686

8787
// Dynamic year for footer copyright
8888
varcurrentYear=(newDate).getFullYear();
89-
$("#year").text((newDate).getFullYear());
89+
$.each($(".js-year"),(function(){$(this).text(currentYear)}));
9090

9191
// Grab API status
9292
$.getJSON('https://status.github.com/api/status.json?callback=?',function(data){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp