From 8239d17d0bbdae65fdd801a652a3918b7212072a Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 06 Apr 2021 15:21:54 +0000
Subject: [PATCH] Dialog unten (in Arbeit)

---
 www/ui/app.css                   |    6 ++++++
 www/ui/data/menu/hauptmenue.json |    5 +++++
 www/ui/js/app.js                 |   10 +++++++++-
 www/ui/index.html                |    4 +++-
 4 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/www/ui/app.css b/www/ui/app.css
index 7348b8f..4c87064 100644
--- a/www/ui/app.css
+++ b/www/ui/app.css
@@ -91,6 +91,12 @@
   transition: all 0.3s ease-in;
 }
 
+.dialog-unten {
+  position: relative;
+  /* height: 0.1em; */
+  transition: all 0.3s ease-in;
+}
+
 .dlg-behaelter {
   line-height: 1.6;
   padding: 0.4em;
diff --git a/www/ui/data/menu/hauptmenue.json b/www/ui/data/menu/hauptmenue.json
index 5ef3e44..45a2884 100644
--- a/www/ui/data/menu/hauptmenue.json
+++ b/www/ui/data/menu/hauptmenue.json
@@ -18,6 +18,11 @@
         "funktion": "app.ablageort_liste"
       },
       {
+        "titel": "Dialog unten",
+        "umenue": false,
+        "funktion": "app.dialog_unten_zeigen"
+      },
+      {
         "titel": "Seite umschalten",
         "umenue": false,
         "funktion": "app.seitenleiste_umschalten"
diff --git a/www/ui/index.html b/www/ui/index.html
index c5fd10e..17e6432 100644
--- a/www/ui/index.html
+++ b/www/ui/index.html
@@ -47,7 +47,7 @@
         westliche Seitenleiste
       </div>
       <div class="zentrum-behaelter">
-        <!-- Einblendbereich -->
+        <!-- Einblendbereich oben -->
         <div class="dialog"></div>
         <!-- zentraler Inhaltsbereich -->
         <div class="zentrum">
@@ -57,6 +57,8 @@
             </p>
           </div>
         </div>
+        <!-- Einblendbereich unten -->
+        <div class="dialog-unten"></div>
       </div>
       <!-- oestliche Seitenleiste -->
       <div class="ost ost-open">
diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index 17b88fd..6a49b5f 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -180,6 +180,14 @@
       xhr.send(data);
     }
   };
+  
+  /* Unterer Einblendbereich */
+  
+  self.dialog_unten_zeigen = function() {
+    var dlg = document.querySelector(".dialog-unten");
+    dlg.style.height = '7em';
+    dlg.innerHTML = "Dialog unten";
+  };
 
   /* ab hier aus App-Vorlage */
 
@@ -279,7 +287,7 @@
       }, 500);
     }, timeout);
   };
-
+  
   /* Dialog-Funktionen */
 
   /*

--
Gitblit v1.9.3