undisclosed
2023-01-31 db2cc269df306c93b283336a5aab238662fa895e
commit | author | age
749d1b 1 <!DOCTYPE html>
U 2 <!--
3   Kalender - Jahresuebersicht
4   Copyright (C) 2022  Ulrich Hilger
5
6   This program is free software: you can redistribute it and/or modify
7   it under the terms of the GNU Affero General Public License as
8   published by the Free Software Foundation, either version 3 of the
9   License, or (at your option) any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU Affero General Public License for more details.
15
16   You should have received a copy of the GNU Affero General Public License
17   along with this program.  If not, see <https://www.gnu.org/licenses/>.
18 -->
19 <html>
20   <head>
21     <title>Kalender</title>
22     <meta charset="UTF-8">
23     <meta name="viewport" content="width=device-width, initial-scale=1.0">
24     <link rel="stylesheet" type="text/css" href="gestaltung.css">
25   </head>
26   <body>
27     <div class="inhalt">
28       <!-- zentraler Inhaltsbereich -->
29       <div class="zentrum">
30         <div class="zentrum-inhalt">
31           <h3 class="zeit-titel">Zeitrechnung</h3>
32           <p>
33             Hier finden sich Ressourcen zur Zeitrechnung. Der Bereich befindet 
34             sich zur Zeit im Umbau.
35           </p>
36           <p>
37             <a href="kalender/">Kalender</a>
38           </p>
39         </div>
40       </div>
41     </div>
42     <!-- Fusszeile -->
43     <div class="sued">
44       Copyright &copy; <a href="https://uhilger.de">Ulrich Hilger</a>, alle Rechte vorbehalten
45     </div>
46     <script>
47         var elem = document.querySelector('.zentrum');
48         //var prevScrollpos = window.pageYOffset;
49         var prevScrollpos = elem.scrollTop;
50         elem.addEventListener('scroll', function() {
51           //var currentScrollPos = window.pageYOffset;
52           var currentScrollPos = elem.scrollTop;
53           if (prevScrollpos > currentScrollPos) {
54             document.getElementById("navbar").style.top = "0";
55           } else {
56             document.getElementById("navbar").style.top = "-100px";
57           }
58           prevScrollpos = currentScrollPos;
59         });
60     </script>
61   </body>
62 </html>