From cc87a767fd1bb7a4797bd318be615a9cd4d79e5f Mon Sep 17 00:00:00 2001 From: Adrian Maraj Date: Mon, 22 Apr 2024 16:47:57 +0200 Subject: [PATCH] new interface --- website/web/static/tree.css | 104 +++++++- website/web/templates/tree.html | 405 ++++++++++++++------------------ 2 files changed, 273 insertions(+), 236 deletions(-) diff --git a/website/web/static/tree.css b/website/web/static/tree.css index feea838..6d64387 100644 --- a/website/web/static/tree.css +++ b/website/web/static/tree.css @@ -28,6 +28,24 @@ scroll-margin: 50px; } +#help { + text-align: center; + border-style: solid; + border-color: #0d6efd; + border-radius: 25px; + text-decoration: none; + height: 50px; + width: 50px; + background-color: #0d6efd; + color: white; + align-content: center; +} + +#help:hover { + background-color: white; + color: blue; +} + /* Generic parts of menus */ hr { display: block; @@ -88,9 +106,7 @@ hr { top: 5px; background: white; border: 2px solid; - padding-top: 5px; - padding-right: 5px; - padding-left: 5px; + padding: 5px; } #menu_container_horizontal { @@ -98,13 +114,15 @@ hr { top: 5px; left: 5px; left: 217px; - padding-top: 5px; - padding-right: 5px; - padding-left: 5px; + padding: 5px; +} + +.hstack{ + height: 106.6px; } #menu_container_horizontal .container { - width: 800px; + width: 80%; } #menu_container_horizontal ul.components { @@ -121,6 +139,76 @@ hr { background: #fff; } + +/* NEW: Dropdown Menu */ +/* Dropdown Button */ +.dropbtn { + background-color: #0d6efd; + color: white; + font-size: 16px; + border: none; + cursor: pointer; + width: 180px; + text-align: center; + height: 40px; +} + +/* Dropdown button on hover & focus */ +.dropbtn:hover, .dropbtn:focus { + background-color: #0067fc; +} + +/* The container
- needed to position the dropdown content */ +.dropdown { + position: relative; + display: inline-block; +} + +/* Dropdown Content (Hidden by Default) */ +.dropdown-content { + display: none; + position: absolute; + background-color: #f9f9f9; + width: 180px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 1; +} + +/* Links inside the dropdown */ +.dropdown-content a { + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; +} + +.dropdown-content.show { + display: block; +} + +/* Change color of dropdown links on hover */ +.dropdown-content a:hover {background-color: #f1f1f1;} + +/* Show the dropdown menu on hover */ +#capture-menu:hover #capture-menu-content { + display: block; +} +#actions-menu:hover #actions-menu-content { + display: block; +} +#tools-menu:hover #tools-menu-content { + display: block; +} +#admin-menu:hover #admin-menu-content { + display: block; +} + +/* Change the background color of the dropdown button when the dropdown content is shown */ +.dropdown:hover .dropbtn { + background-color: #2980b9; +} + + /* legend */ #legend_container { position: fixed; @@ -142,4 +230,4 @@ hr { padding-right: 5px; padding-bottom: 5px; padding-left: 5px; -} +} \ No newline at end of file diff --git a/website/web/templates/tree.html b/website/web/templates/tree.html index 52e4919..705933e 100644 --- a/website/web/templates/tree.html +++ b/website/web/templates/tree.html @@ -248,45 +248,99 @@

-
- +
+ Legend +
-
+
@@ -306,212 +360,107 @@ + + + {% if current_user.is_authenticated %} + + {% endif %} + + {%if enable_categorization or enable_bookmark or enable_context_by_users %} +
+
+ +
+ {% endif %} + + + {% if enable_monitoring %} + Monitor capture + {% endif %} + + {% if enable_mail_notification %} + Report suspicious
capture
+ {% endif %} + + ? + + -
-
-
-
- Legend -
-
- -
-
-
-
- Insecure requests Unencrypted requests -
-
- Empty responses Empty responses -
- -
- Cookie received Cookie received -
- -
- Cookie read Cookie read -
- -
- Redirect Redirect -
- -
- iFrame iFrame -
- -
- JavaScript Javascript -
- -
- Font Font -
- -
- HTML HTML -
- -
- JSON JSON -
- -
- CSS CSS -
- -
- EXE EXE -
- -
- Image Image -
- -
- Video Video -
- -
- Content type not set/unknown Unknown content -
- -
- Contains a downloaded file Downloaded file -
-
- -
-
- -
-
-