From 3fe5357c7c34536359d61d6bed213aa86c99e78f Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Thu, 27 Jun 2019 17:30:29 +0200 Subject: [PATCH] text links now open corresponding menus, added menu entry 'mailing lists' --- css/bootstrap.css | 8 ++++++++ index.html | 6 +++--- js/headfoot.js | 1 + js/landing.js | 7 +++++++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 js/landing.js diff --git a/css/bootstrap.css b/css/bootstrap.css index a12b2fa..ee3c538 100644 --- a/css/bootstrap.css +++ b/css/bootstrap.css @@ -6950,6 +6950,14 @@ padding-top: 15px; #Textblock-startseite a:hover {color: darkgray; } + +#Textblock-startseite span {background-color: white; + color: #993399; + font-weight: bold; +} +#Textblock-startseite span:hover {color: darkgray; +} + .Bildunterschrift a:link { font-size: 1rem; font-weight: bold; diff --git a/index.html b/index.html index fdf709b..fb63b14 100644 --- a/index.html +++ b/index.html @@ -36,8 +36,8 @@ Dabei verknüpfen wir unsere Expertise mit Partnern innerhalb und außerhalb der <h2>Willst du dabei sein?</h2> -Dann findest du unter <a href="./" ><i class="fas fa-chevron-right"></i> Informationen</a> mehr über unsere Expertise, Projekte, Publikationen und Lösungen.<br> -Erfahre mehr über unsere <a href="./" ><i class="fas fa-chevron-right"></i> Events</a> und über die Möglichkeiten zur <a href="./" ><i class="fas fa-chevron-right"></i> Zusammenarbeit</a>. Oder mache direkt bei laufenden Projekten unter <a href="./" ><i class="fas fa-chevron-right"></i> Bürgerbeteiligung</a> mit. +Dann findest du unter <span onclick="event.stopPropagation();hint_navbar('0')" ><i class="fas fa-chevron-right"></i> Informationen</span> mehr über unsere Expertise, Projekte, Publikationen und Lösungen.<br> +Erfahre mehr über unsere <span onclick="event.stopPropagation();hint_navbar('2')" ><i class="fas fa-chevron-right"></i> Events</span> und über die Möglichkeiten zur <span onclick="event.stopPropagation();hint_navbar('1')" ><i class="fas fa-chevron-right"></i> Zusammenarbeit</span>. Oder mache direkt bei laufenden Projekten unter <span onclick="event.stopPropagation();hint_navbar('3')" ><i class="fas fa-chevron-right"></i> Bürgerbeteiligung</span> mit. </p> </div> </div> @@ -93,7 +93,7 @@ Erfahre mehr über unsere <a href="./" ><i class="fas fa-chevron-right"></i> Eve <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <script src="./js/headfoot.js"></script> - +<script src="./js/landing.js"></script> <!--<script src="./js/bootstrap-collapse.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>--> diff --git a/js/headfoot.js b/js/headfoot.js index 0fc0544..a238337 100644 --- a/js/headfoot.js +++ b/js/headfoot.js @@ -64,6 +64,7 @@ function head(){ headlink.innerHTML=menu[j].name; if(itemtype=='dropdown'){ let combodiv = document.createElement('div'); + combodiv.id=headlink.id+"_par"; combodiv.setAttribute("aria-labelledby",headlink.id); combodiv.classList.add("dropdown-menu"); for(let k = 0; k< menu[j].combos.length; k++){ diff --git a/js/landing.js b/js/landing.js new file mode 100644 index 0000000..8ddf224 --- /dev/null +++ b/js/landing.js @@ -0,0 +1,7 @@ +function hint_navbar(count){ + window.scrollTo(0,0); + id="#navbarDropdown"+count; + console.log(id); + $(id).dropdown('toggle'); + +} \ No newline at end of file -- GitLab