From eeefed6cad5dc0ae9b06817cbe80741dd87d5f09 Mon Sep 17 00:00:00 2001
From: Sven Schneider <sven.schneider@hft-stuttgart.de>
Date: Tue, 25 May 2021 12:41:53 +0200
Subject: [PATCH] added dynamic year in copyright info on all html websites

---
 public/Kirchturm1.html           |  7 ++++++-
 public/Kirchturm2.html           |  7 ++++++-
 public/StreamlineParticles.html  | 10 +++++++---
 public/StreamlinesMultipart.html | 10 +++++++---
 public/Welcome2Simstadt.html     |  7 ++++++-
 public/Welcome2iCity.html        |  7 ++++++-
 public/circularData.html         |  7 ++++++-
 public/iStoeck.html              |  7 ++++++-
 public/iStoeckHM.html            |  7 ++++++-
 public/iStoeckHMGeoJSON.html     |  7 ++++++-
 public/iStoeckHexgrid_2m.html    |  7 ++++++-
 public/iStoeckStreams.html       | 15 ++++++++++-----
 public/index.html                |  6 +++++-
 public/welcome.html              |  9 +++++++--
 14 files changed, 90 insertions(+), 23 deletions(-)

diff --git a/public/Kirchturm1.html b/public/Kirchturm1.html
index df6c8f5..325e21c 100644
--- a/public/Kirchturm1.html
+++ b/public/Kirchturm1.html
@@ -55,10 +55,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/Kirchturm2.html b/public/Kirchturm2.html
index 1d99c5f..4925384 100644
--- a/public/Kirchturm2.html
+++ b/public/Kirchturm2.html
@@ -55,10 +55,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/StreamlineParticles.html b/public/StreamlineParticles.html
index 9abe0b3..80552f4 100644
--- a/public/StreamlineParticles.html
+++ b/public/StreamlineParticles.html
@@ -61,12 +61,16 @@
   
 
   <footer>
-    <p align="center">
-    <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+    <p align="center">      
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
-
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/StreamlinesMultipart.html b/public/StreamlinesMultipart.html
index 23b7f23..88f7aff 100644
--- a/public/StreamlinesMultipart.html
+++ b/public/StreamlinesMultipart.html
@@ -61,12 +61,16 @@
   
 
   <footer>
-    <p align="center">
-    <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+    <p align="center">      
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
-
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/Welcome2Simstadt.html b/public/Welcome2Simstadt.html
index 1a76d90..7c5d8df 100644
--- a/public/Welcome2Simstadt.html
+++ b/public/Welcome2Simstadt.html
@@ -48,10 +48,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 </body>
diff --git a/public/Welcome2iCity.html b/public/Welcome2iCity.html
index 7d0ab54..45cf093 100644
--- a/public/Welcome2iCity.html
+++ b/public/Welcome2iCity.html
@@ -48,10 +48,15 @@
   <link rel="stylesheet" href="css/myCesiumStyle.css">
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 </body>
diff --git a/public/circularData.html b/public/circularData.html
index 92be775..5a0e4e4 100644
--- a/public/circularData.html
+++ b/public/circularData.html
@@ -55,10 +55,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+  
 </body>
 
 
diff --git a/public/iStoeck.html b/public/iStoeck.html
index 6188397..81b3d28 100644
--- a/public/iStoeck.html
+++ b/public/iStoeck.html
@@ -52,10 +52,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/iStoeckHM.html b/public/iStoeckHM.html
index 6718e5c..f6fe253 100644
--- a/public/iStoeckHM.html
+++ b/public/iStoeckHM.html
@@ -56,10 +56,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/iStoeckHMGeoJSON.html b/public/iStoeckHMGeoJSON.html
index 73ce81d..134c8ff 100644
--- a/public/iStoeckHMGeoJSON.html
+++ b/public/iStoeckHMGeoJSON.html
@@ -56,10 +56,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 
diff --git a/public/iStoeckHexgrid_2m.html b/public/iStoeckHexgrid_2m.html
index be38779..7ade184 100644
--- a/public/iStoeckHexgrid_2m.html
+++ b/public/iStoeckHexgrid_2m.html
@@ -57,10 +57,15 @@
 
   <footer>
     <p align="center">      
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
+      <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
     </p>
   </footer>
 
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
+
 </body>
 
 </html>
\ No newline at end of file
diff --git a/public/iStoeckStreams.html b/public/iStoeckStreams.html
index c5e24c3..6cc44b6 100644
--- a/public/iStoeckStreams.html
+++ b/public/iStoeckStreams.html
@@ -50,11 +50,16 @@
   </div>
 </div>
 
-  <footer>
-    <p align="center">
-      <h5>Copyright &copy; 2018 - 2020, HFT-Stuttgart. All rights reserved</h5>
-    </p>
-  </footer>
+<footer>
+  <p align="center">      
+    <h5>Copyright &copy; 2018 - <span id='year'></span>, HFT-Stuttgart. All rights reserved</h5>
+  </p>
+</footer>
+
+<script>
+  var year = new Date().getFullYear();
+  document.getElementById('year').innerHTML = year;    
+</script>
 
 </body>
 
diff --git a/public/index.html b/public/index.html
index 2a11d3b..2941174 100644
--- a/public/index.html
+++ b/public/index.html
@@ -406,11 +406,15 @@
         <p class="float-right">
           <a href="#">Back to top</a>
         </p>
-        <p>urbanVIS is &copy; by Sven Schneider and colaborators at HFT Stuttgart, 2020.</p>
+        <p>urbanVIS is &copy; by Sven Schneider and colaborators at HFT Stuttgart,  <span id='year'></span>.</p>
 
       </div>
     </footer>
 
+    <script>
+      var year = new Date().getFullYear();
+      document.getElementById('year').innerHTML = year;    
+    </script>
 
     <!-- KEINE ÄNDERUNGEN NACH DIESER ZEILE -->
     <script src="settings.js"> </script>
diff --git a/public/welcome.html b/public/welcome.html
index 768b07a..46f0640 100644
--- a/public/welcome.html
+++ b/public/welcome.html
@@ -273,14 +273,19 @@
 
   </main>
 
-  <footer class="text-muted">
+  <footer class="text-white">
     <div class="container">
       <p class="float-right">
         <a href="#">Back to top</a>
       </p>
-      <p>UrbanCFD is &copy; by Sven Schneider and colaborators at HFT Stuttgart, 2020.</p>
+      <p>urbanVIS is &copy; by Sven Schneider and colaborators at HFT Stuttgart,  <span id='year'></span>.</p>
 
     </div>
   </footer>
+
+  <script>
+    var year = new Date().getFullYear();
+    document.getElementById('year').innerHTML = year;    
+  </script>
 </body>
 </html>
\ No newline at end of file
-- 
GitLab