[tor-commits] [atlas/master] Dynamically update year in footer.

phw at torproject.org phw at torproject.org
Sat Nov 23 17:02:24 UTC 2013


commit b802e8cb567d990c471d421dee4a573913974030
Author: Philipp Winter <phw at torproject.org>
Date:   Sat Nov 23 16:42:29 2013 +0100

    Dynamically update year in footer.
    
    Fixes <https://bugs.torproject.org/9015>.
---
 index.html |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 0f9ffca..fce43d4 100644
--- a/index.html
+++ b/index.html
@@ -51,7 +51,7 @@
       </div>
       <hr/>
       <footer>
-              The Tor Project - 2012<br/>
+              The Tor Project - <div style="display: inline" id="year"></div><br/>
               <a href="#about">About</a> -
       <a href="https://gitweb.torproject.org/atlas.git">Source code</a> -
           <a href="https://trac.torproject.org/projects/tor/newticket?component=Atlas">Report a bug</a>
@@ -60,6 +60,9 @@
 
     </div> <!-- /container -->
    	<script data-main="js/main" src="js/libs/require/require.js"></script>
+    <script type="text/javascript">
+        document.getElementById("year").innerHTML = (new Date()).getUTCFullYear();
+    </script>
 
 
   </body>



More information about the tor-commits mailing list