Selaa lähdekoodia

fix: license.html currentyear element resolution

Sv443 5 kuukautta sitten
vanhempi
commit
59d01f86af
1 muutettua tiedostoa jossa 10 lisäystä ja 17 poistoa
  1. 10 17
      LICENSE.html

+ 10 - 17
LICENSE.html

@@ -107,11 +107,19 @@
                 color: #63a1fd;
                 color: #63a1fd;
             }
             }
         </style>
         </style>
+
+        <script>
+            function addDate() {
+                document.querySelector("#currentYear").textContent = new Date().getFullYear();
+            };
+
+            document.addEventListener("DOMContentLoaded", addDate);
+        </script>
     </head>
     </head>
     <body>
     <body>
         <div class="contentwrapper">
         <div class="contentwrapper">
             <h2>Sv443 and Sv443 Network - License</h2>
             <h2>Sv443 and Sv443 Network - License</h2>
-            This license applies to all projects that are created by Sv443 / Sven Fehler and all projects that are part of the Sv443 Network, unless stated otherwise.
+            This license applies to all projects that are created by Sv443 / Sven Fehler and all projects that are part of the Sv443 Network, <u>unless stated otherwise.</u>
             <br>
             <br>
             <div id="tableWrapper">
             <div id="tableWrapper">
                 <table id="overviewtable">
                 <table id="overviewtable">
@@ -163,7 +171,7 @@
         </div><br>
         </div><br>
         <div class="contentwrapper">
         <div class="contentwrapper">
             <h2>MIT License</h2>
             <h2>MIT License</h2>
-            <span id="copyrightchar">&copy;</span> <b>Copyright 2018-<span id="currentYear">2021</span> Sv443 / Sv443 Network / Sven Fehler</b><br><br>
+            <span id="copyrightchar">&copy;</span> <b>Copyright 2018-<span id="currentYear">now</span> Sven Fehler (Sv443) and the Sv443 Network</b><br><br>
             Permission is hereby granted, free of charge, to any person obtaining a copy
             Permission is hereby granted, free of charge, to any person obtaining a copy
             of this software and associated documentation files (the "Software"), to deal
             of this software and associated documentation files (the "Software"), to deal
             in the Software without restriction, including without limitation the rights
             in the Software without restriction, including without limitation the rights
@@ -185,20 +193,5 @@
                 software.<br>
                 software.<br>
             </div><br>
             </div><br>
         </div>
         </div>
-
-        <script>
-            (() => {
-                function addDate() {
-                    document.querySelector("#currentYear").innerText = new Date().getFullYear();
-                };
-
-                if(dateElem)
-                    addDate();
-                else
-                {
-                    document.addEventListener("DOMContentLoaded", addDate);
-                }
-            })();
-        </script>
     </body>
     </body>
 </html>
 </html>