Browse Source

updated navbar and new KNM6 sql

koellenberger 2 years ago
parent
commit
a9bc8cf3ae
6 changed files with 154 additions and 37 deletions
  1. 1 7
      public/checklist.php
  2. 2 7
      public/index.php
  3. 40 0
      public/navbar.html
  4. 1 1
      public/recentSQLName.txt
  5. 109 15
      public/style.css
  6. 1 7
      public/submit.php

+ 1 - 7
public/checklist.php

@@ -16,13 +16,7 @@
   </head>
 
   <body>
-    <div class="navbar">
-      <a style="background-color:#1761B2;text-decoration:none"><b>Quick links:</b></a>
-      <a href="http://adei-katrin.kaas.kit.edu" target="_blank">Adei</a>
-      <a href="http://katana.npl.washington.edu" target="_blank">katana</a>
-      <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM6/" target="_blank">brew</a>
-      <a href="https://webtrium.mpp.mpg.de" target="_blank">webtrium</a>
-    </div>
+    <iframe src="navbar.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
 
     <center>
       <h1>Checklist for remote analysis shifts</h1>

+ 2 - 7
public/index.php

@@ -7,14 +7,9 @@
       <link rel="shortcut icon" href="https://ikp-neu-katrin.ikp.kit.edu/routine/pics/KATRINlogo.ico" />
       <link rel="stylesheet" href="style.css">
   </head>
+
   <body>
-    <div class="navbar">
-      <a style="background-color:#1761B2;text-decoration:none"><b>Quick links:</b></a>
-      <a href="http://adei-katrin.kaas.kit.edu" target="_blank">Adei</a>
-      <a href="http://katana.npl.washington.edu" target="_blank">katana</a>
-      <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM6/  " target="_blank">brew</a>
-      <a href="https://webtrium.mpp.mpg.de" target="_blank">webtrium</a>
-    </div>
+    <iframe src="navbar.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
 
     <center>
       <h1>Checklist for remote analysis shifts</h1>

+ 40 - 0
public/navbar.html

@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="generator" content="GitLab Pages">
+    <title>KATRIN remote analysis shift</title>
+    <link rel="stylesheet" href="style.css">
+  </head>
+
+  <body>
+    <div class="topnav" id="myTopnav">
+      <a href="https://remote-shift.kaas.kit.edu" class="active">Home</a>
+      <a href="http://adei-katrin.kaas.kit.edu" target="_blank">adei</a>
+      <a href="http://katana.npl.washington.edu" target="_blank">katana</a>
+      <div class="dropdown">
+        <button class="dropbtn">brew
+          <i class="fa fa-caret-down"></i>
+        </button>
+        <div class="dropdown-content">
+          <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM1/" target="_blank">KNM1</a>
+          <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM2/" target="_blank">KNM2</a>
+          <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM3/" target="_blank">KNM3</a>
+          <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM4/" target="_blank">KNM4</a>
+          <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM5/" target="_blank">KNM5</a>
+          <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM6/" target="_blank">KNM6</a>
+        </div>
+      </div>
+      <a href="#about">About</a>
+      <a href="javascript:void(0);" class="icon" onclick="myFunction()">&#9776;</a>
+    </div>
+    <!-- <div class="navbar">
+      <a style="background-color:#1761B2;text-decoration:none"><b>Quick links:</b></a>
+      <a href="http://adei-katrin.kaas.kit.edu" target="_blank">adei</a>
+      <a href="http://katana.npl.washington.edu" target="_blank">katana</a>
+      <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM6/" target="_blank">brew</a>
+      <a href="http://kdb.kaas.kit.edu/kdb-admin.fcgi/runlist/" target="_blank">kdb</a>
+      <a href="https://webtrium.mpp.mpg.de" target="_blank">webtrium</a>
+      <a href="https://status-sds.kaas.kit.edu" target="_blank">status-sds</a>
+    </div> -->
+  </body>

+ 1 - 1
public/recentSQLName.txt

@@ -1 +1 @@
-betaTesting_KNMY
+KNM6

+ 109 - 15
public/style.css

@@ -6,30 +6,124 @@ body {
   padding-right: 50px
 }
 
-.navbar {
+/* Add a black background color to the top navigation */
+.topnav {
   background-color: #1761B2;
-  border-radius: 2px;
+  overflow: hidden;
   width:102%;
-  padding: 60px 50px 20px 50px;
-  margin: -50px -10px 0px -60px;
+  padding: 0px 60px;
+  margin: 0px -60px;
 }
 
-.navbar a {
-  color: white;
-  display: inline-block;
-  font-size: 15px;
-  padding: 10px;
+/* Style the links inside the navigation bar */
+.topnav a {
+  float: left;
+  display: block;
+  color: #f2f2f2;
+  text-align: center;
+  padding: 20px 16px;
   text-decoration: none;
+  font-size: 14px;
 }
 
-.navbar a:hover{
+/* Add an active class to highlight the current page */
+.active {
+  background-color: #1761B2;
+  font-weight: bold;
   color: white;
-  text-decoration: underline;
+}
+
+/* Hide the link that should open and close the topnav on small screens */
+.topnav .icon {
+  display: none;
+}
+
+/* Dropdown container - needed to position the dropdown content */
+.dropdown {
+  float: left;
+  overflow: hidden;
+}
+
+/* Style the dropdown button to fit inside the topnav */
+.dropdown .dropbtn {
+  font-size: 14px;
+  border: none;
+  outline: none;
+  color: white;
+  padding: 20px 16px;
+  background-color: inherit;
+  font-family: inherit;
+  margin: 0;
+}
+
+/* Style the dropdown content (hidden by default) */
+.dropdown-content {
+  display: none;
+  position: absolute;
+  background-color: #f9f9f9;
+  min-width: 160px;
+  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+  z-index: 1;
+}
+
+/* Style the links inside the dropdown */
+.dropdown-content a {
+  float: none;
+  color: black;
+  padding: 12px 16px;
+  text-decoration: none;
+  display: block;
+  text-align: left;
+}
+
+/* Add a dark background on topnav links and the dropdown button on hover */
+.topnav a:hover, .dropdown:hover .dropbtn {
   background-color: #03a1fc;
-  border-radius: 2px;
-  padding-top: 60px;
-  margin-top: -50px;
-  max-width: 800px;
+  color: white;
+}
+
+/* Add a grey background to dropdown links on hover */
+.dropdown-content a:hover {
+  background-color: #ddd;
+  color: black;
+}
+
+/* Show the dropdown menu when the user moves the mouse over the dropdown button */
+.dropdown:hover .dropdown-content {
+  display: block;
+}
+
+/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
+@media screen and (max-width: 600px) {
+  .topnav a:not(:first-child), .dropdown .dropbtn {
+    display: none;
+  }
+  .topnav a.icon {
+    float: right;
+    display: block;
+  }
+}
+
+/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
+@media screen and (max-width: 600px) {
+  .topnav.responsive {position: relative;}
+  .topnav.responsive a.icon {
+    position: absolute;
+    right: 0;
+    top: 0;
+  }
+  .topnav.responsive a {
+    float: none;
+    display: block;
+    text-align: left;
+  }
+  .topnav.responsive .dropdown {float: none;}
+  .topnav.responsive .dropdown-content {position: relative;}
+  .topnav.responsive .dropdown .dropbtn {
+    display: block;
+    width: 100%;
+    text-align: left;
+  }
 }
 
 .switch {

+ 1 - 7
public/submit.php

@@ -14,13 +14,7 @@
   </head>
 
   <body>
-    <div class="navbar">
-      <a style="background-color:#1761B2;text-decoration:none"><b>Quick links:</b></a>
-      <a href="http://adei-katrin.kaas.kit.edu" target="_blank">Adei</a>
-      <a href="http://katana.npl.washington.edu" target="_blank">katana</a>
-      <a href="http://katana.npl.washington.edu/~sanshiro/brew/KNM6/" target="_blank">brew</a>
-      <a href="https://webtrium.mpp.mpg.de" target="_blank">webtrium</a>
-    </div>
+    <iframe src="navbar.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
 
     <center>
       <h1>Checklist for remote analysis shifts</h1>