Commit 6a8f4332 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

Merge branch 'MLAB-205' into 'testing'

Mlab 205

See merge request !23
parents 43e88f0e e857d332
Pipeline #671 passed with stage
in 4 seconds
<!-- RS
HTML representation of the header and footer in headfoot.js
!! FOR DEVELOPMENT AND TEST ONLY !!
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Transferportal HfT Stuttgart</title>
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="../css/bootstrap.css">
<link rel="stylesheet" href="../fonts/ionicons.min.css">
<link rel="stylesheet" href="../css/Testimonials.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
</head>
<body>
<!-- navheader -->
<header id="header" class="clear">
<!-- alertdiv -->
<div class="alert alert-danger alert-dismissible fade show" style="text-align:center;">
<!-- alertbutton -->
<button type="button" class="close" data-dismiss="alert">
&times;
</button>
<strong>Disclaimer</strong> This website is under construction and in prototype-phase. It is not for public use.
</div>
<!-- navbar -->
<nav class="navbar navbar-expand-md navbar-light" style="background-color: #ffffff;">
<!-- navbarcontainer -->
<div class="container">
<!-- navbarheader -->
<div class="navbar-header">
<!-- link_m4lab -->
<a class="navbar-brand" href="/">
<img src="../img/header/Logozeile_Header.png" alt="Logo Innovationslabor M4_LAB">
</a>
</div>
<!-- togglebutton -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- navelements -->
<ul id="navbarCollapse" class="collapse nav navbar-collapse navbar-nav justify-content-end">
<!-- headitem -->
<li class="nav-item dropdown">
<!-- headlink -->
<a href="#" id="navbarDropdown0" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Informationen
</a>
<!-- combodiv -->
<div id="navbarDropdown0_par" class="dropdown-menu" aria-labelledby="navbarDropdown0">
<!-- combolink -->
<a class="dropdown-item" href="/project">
Projekte
</a>
<!-- combolink -->
<a class="dropdown-item" href="/projectoverview?projectID=1">
Über das M4_LAB
</a>
<!-- combolink -->
<a class="dropdown-item" href="/account/contact">
Kontakt
</a>
</div>
</li>
<!-- headitem -->
<li class="nav-item dropdown">
<!-- headlink -->
<a href="#" id="navbarDropdown1" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Zusammenarbeit
</a>
<!-- combodiv -->
<div id="navbarDropdown1_par" class="dropdown-menu" aria-labelledby="navbarDropdown1">
<!-- combolink -->
<a class="dropdown-item" href="/mailinglists">
Mailinglisten
</a>
<!-- combolink -->
<a class="dropdown-item" href="/videoconference.html">
Videokonferenzen
</a>
<!-- combolink -->
<a class="dropdown-item" href="/#">
...
</a>
</div>
</li>
<!-- headitem -->
<li class="nav-item dropdown">
<!-- headlink -->
<a href="#" id="navbarDropdown2" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Events
</a>
<!-- combodiv -->
<div id="navbarDropdown2_par" class="dropdown-menu" aria-labelledby="navbarDropdown2">
<!-- combolink -->
<a class="dropdown-item" href="http://www.hft-stuttgart.de/Aktuell/Veranstaltungen/">
Veranstaltungen der HfT
</a>
<!-- combolink -->
<a class="dropdown-item" href="https://www.hft-stuttgart.de/forschung/veranstaltungen">
Veranstaltungen der HfT Forschung
</a>
</div>
</li>
<!-- headitem -->
<li class="nav-item">
<!-- headlink -->
<a href="/account" id="navbarDropdown2" class="nav-link" role="button">
Benutzerkonto
</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container">
<p> test test test test</p>
<p> test test test test 123</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<hr>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<hr>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<p> test test test test</p>
<hr>
</div>
<!-- footerdiv -->
<div id="homepage" class="last clear">
<hr>
<!-- containerdiv -->
<div class="container">
<!-- containerdivrow -->
<div class="row">
<!-- bmbf-->
<div class="col-md-auto">
<img src="../img/footer/Innovative_Hochschule_Initiative_BMBF_GWK_RGB.png" alt="Innovative Hochschule" style="height:90px"/>
</div>
<!-- m4labgrau-->
<div class="col-md-auto">
<!-- img -->
<img src="../img/footer/M4_LAB_LOGO_Graustufen.png" alt="M4_LAB" style="height:80px"/>
</div>
<!-- socialdiv-->
<div class="col-md-auto">
<!-- socialrow -->
<div id="socialmediabuttons">
<!-- sociallink-->
<a href="https://twitter.com/InnolabM4">
<!-- socialcontent -->
<i class="fab fa-twitter"></i>
</a>
<!-- sociallink-->
<a href="https://www.facebook.com/HfTStuttgart/">
<!-- socialcontent -->
<i class="fab fa-facebook-square"></i>
</a>
<!-- sociallink-->
<a href="https://www.instagram.com/m4_lab/">
<!-- socialcontent -->
<i class="fab fa-instagram"></i>
</a>
<!-- sociallink-->
<a href="https://de.linkedin.com/school/hochschule-f%C3%BCr-technik-stuttgart-%E2%80%93-university-of-applied-sciences/">
<!-- socialcontent -->
<i class="fab fa-linkedin"></i>
</a>
<!-- sociallink-->
<a href="https://www.youtube.com/channel/UCi0_JfF2qMZbOhOnNH5PyHA">
<!-- socialcontent -->
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
<!-- contactdiv -->
<div class="col-md-auto footer-unten">
Hochschule für Technik Stuttgart
<!-- rowdiv -->
<div class="row">
<!-- hft_links coldiv -->
<div class="col footer-unten">
<!-- hft_links collink -->
<a href="https://www.hft-stuttgart.de/forschung/innovative-hochschule-m4-lab" class="contact-lower">
Kontakt
</a>
</div>
<!-- hft_links coldiv -->
<div class="col footer-unten">
<!-- hft_links collink -->
<a href="https://www.hft-stuttgart.de/impressum" class="contact-lower">
Impressum
</a>
</div>
<!-- hft_links coldiv -->
<div class="col footer-unten">
<!-- hft_links collink -->
<a href="https://www.hft-stuttgart.de/datenschutz" class="contact-lower">
Datenschutz
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<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>
</body>
</html>
\ No newline at end of file
......@@ -43,37 +43,53 @@ function sendRequest(URL){
* creates header and prepends it to the documents body
*/
function head(){
let headerdiv = document.createElement('div');
let alertdiv = document.createElement('div');
headerdiv.classList.add("wrapper","row1");
let navheader = document.createElement('header');
function head() {
let navheader = document.createElement("header");
navheader.id = "header";
navheader.classList.add("clear");
let alertbutton = document.createElement('button');
// disclaimer
let alertdiv = document.createElement("div");
alertdiv.classList.add("alert", "alert-danger", "alert-dismissible", "fade", "show");
alertdiv.style = "text-align:center;";
alertdiv.innerHTML="<strong>Disclaimer</strong> This website is under construction and in prototype-phase. It is not for public use."
let alertbutton = document.createElement("button");
alertbutton.type = "button";
alertbutton.classList.add("close");
alertbutton.setAttribute("data-dismiss", "alert");
alertbutton.innerHTML = "&times;";
alertdiv.innerHTML="<strong>Disclaimer</strong> This website is under construction and in prototype-phase. It is not for public use."
prependChild(alertdiv, alertbutton);
alertdiv.classList.add('alert','alert-danger', 'alert-dismissible', 'fade','show');
alertdiv.style = "text-align:center;";
navheader.appendChild(alertdiv);
let navbar = document.createElement('nav');
navbar.classList.add("navbar", "navbar-default");
let fluiddiv = document.createElement('div');
fluiddiv.classList.add("container-fluid");
let navbardiv = document.createElement('div');
navbardiv.classList.add("navbar-header");
let navelements = document.createElement('ul');
navelements.id="navelemente";
let logos = document.createElement('li');
// navigation header
let navbar = document.createElement("nav");
navbar.classList.add("navbar", "navbar-expand-md", "navbar-light");
navbar.style = "background-color: #ffffff;";
let navbarcontainer = document.createElement("div");
navbarcontainer.classList.add("container");
let navbarheader = document.createElement("div");
navbarheader.classList.add("navbar-header");
// navigation header - logo
let link_m4lab = document.createElement('a');
link_m4lab.href = "/";
link_m4lab.innerHTML = "<img src='/images/demo/m4lab_logo.jpg' alt='Logo Innovationslabor M4_LAB'>";
logos.appendChild(link_m4lab);
navelements.appendChild(logos);
link_m4lab.classList.add("navbar-brand");
link_m4lab.innerHTML = "<img src='img/header/Logozeile_Header.png' alt='Logo Innovationslabor M4_LAB'>";
navbarheader.appendChild(link_m4lab);
// navigation header - toggle button menu for mobile devices
let togglebutton = document.createElement('button');
togglebutton.classList.add("navbar-toggler")
togglebutton.type = "button";
togglebutton.setAttribute("data-toggle", "collapse");
togglebutton.setAttribute("data-target", "#navbarCollapse");
togglebutton.setAttribute("aria-controls", "navbarCollapse");
togglebutton.setAttribute("aria-expanded", "false");
togglebutton.setAttribute("aria-label", "Toggle navigation");
togglebutton.innerHTML = "<span class='navbar-toggler-icon'></span>";
// nav menu
let navelements = document.createElement('ul');
navelements.id="navbarCollapse";
navelements.classList.add("collapse", "nav", "navbar-collapse", "navbar-nav", "justify-content-end");
for(let j = 0; j<menu.length; j++){
let headitem = document.createElement('li');
let itemtype = menu[j].type;
......@@ -105,59 +121,60 @@ function head(){
}
headitem.appendChild(combodiv);
}
headitem.appendChild(headlink);
prependChild(headitem, headlink)
navelements.appendChild(headitem);
}
/* let searchitem = document.createElement('li');
searchitem.classList.add("nav-item");
let searchinput = document.createElement('input');
searchinput.value='Suche...'
searchinput.type="text";
searchinput.classList.add("nav-item-suchfeld");
searchinput.setAttribute('onFocus', "this.value=(this.value=='search...')? '' : this.value");
searchitem.appendChild(searchinput);
let magnifier = document.createElement('input');
magnifier.type="image"
magnifier.src="/images/Lupe_grau.png";
magnifier.width="25";
magnifier.height="25";
magnifier.alt="";
magnifier.id="sf_submit";
magnifier.value="search";
searchitem.appendChild(magnifier);
navelements.appendChild(searchitem);*/
navbardiv.appendChild(navelements);
fluiddiv.appendChild(navbardiv);
navbar.appendChild(fluiddiv);
navbarcontainer.appendChild(navbarheader);
navbarcontainer.appendChild(togglebutton);
navbarcontainer.appendChild(navelements);
navbar.appendChild(navbarcontainer)
navheader.appendChild(alertdiv);
navheader.appendChild(navbar);
headerdiv.appendChild(navheader);
prependChild(document.body, headerdiv);
};
prependChild(document.body, navheader);
}
/* function foot()
* creates footer and appends it to the documents body
*/
function foot(){
function foot() {
let footerdiv = document.createElement('div');
footerdiv.id="homepage";
footerdiv.classList.add("last", "clear");
footerdiv.innerHTML = "<hr>";
let containerdiv = document.createElement('div');
containerdiv.classList.add('flex-container');
let hftlink = document.createElement('a');
hftlink.classList.add("col-md-3");
hftlink.setAttribute('style','flex-basis: 400px;');
hftlink.href="https://www.hft-stuttgart.de";
let hftimage = document.createElement('img');
hftimage.src="/images/demo/hft_logo.jpg";
hftimage.alt="Logo der Hochschule für Technik Stuttgart";
hftimage.height= '75';
hftlink.appendChild(hftimage);
containerdiv.appendChild(hftlink);
containerdiv.classList.add('container');
let containerdivrow = document.createElement('div');
containerdivrow.classList.add('row');
//bmbf
let bmbf = document.createElement('div');
bmbf.classList.add("col-md-auto");
bmbf.innerHTML = "<img src='img/footer/Innovative_Hochschule_Initiative_BMBF_GWK_RGB.png' alt='Innovative Hochschule' style='height:90px'/>"
//m4labgrau
let m4labgrau = document.createElement('div');
m4labgrau.classList.add("col-md-auto");
m4labgrau.innerHTML = "<img src='img/footer/M4_LAB_LOGO_Graustufen.png' alt='M4_LAB' style='height:80px'/>"
// socmed
let socialdiv = document.createElement('div');
socialdiv.classList.add("col-md-auto");
let socialrow = document.createElement('div');
socialrow.id="socialmediabuttons";
for(let j = 0; j< socialmedias.length; j++){
let sociallink = document.createElement('a');
sociallink.href = socialmedias[j].url;
let socialcontent = document.createElement('i');
socialcontent.classList.add("fab", socialmedias[j].name);
sociallink.appendChild(socialcontent);
socialrow.appendChild(sociallink);
socialrow.innerHTML+="&nbsp;";
}
socialdiv.appendChild(socialrow);
// contact
let contactdiv = document.createElement('div');
contactdiv.classList.add("col-md-3", "footer-unten")
contactdiv.setAttribute('style',"flex-basis:400px");
contactdiv.classList.add("col-md-auto", "footer-unten")
contactdiv.innerHTML="Hochschule für Technik Stuttgart";
let rowdiv = document.createElement('div');
rowdiv.classList.add("row");
......@@ -172,39 +189,16 @@ function foot(){
rowdiv.appendChild(coldiv);
}
contactdiv.appendChild(rowdiv);
containerdiv.appendChild(contactdiv);
let socialdiv = document.createElement('div');
socialdiv.classList.add("col-md-3");
socialdiv.setAttribute('style','flex-basis: 400px;');
let socialrow = document.createElement('div');
socialrow.id="socialmediabuttons";
for(let j = 0; j< socialmedias.length; j++){
let sociallink = document.createElement('a');
sociallink.href = socialmedias[j].url;
let socialcontent = document.createElement('i');
socialcontent.classList.add("fab", socialmedias[j].name);
sociallink.appendChild(socialcontent);
socialrow.appendChild(sociallink);
socialrow.innerHTML+="&nbsp;";
}
socialdiv.appendChild(socialrow);
containerdiv.appendChild(socialdiv);
let imagediv = document.createElement('div');
imagediv.classList.add("col-md-3");
imagediv.setAttribute("style", "flex-basis:400px;");
for (let k = 0; k< footer_images.length; k++){
let image = document.createElement('img');
image.src = footer_images[k].src;
image.width="300";
image.height= "73";
image.alt = footer_images[k].alt;
imagediv.appendChild(image);
}
containerdiv.appendChild(imagediv);
containerdivrow.appendChild(bmbf);
containerdivrow.appendChild(m4labgrau);
containerdivrow.appendChild(socialdiv);
containerdivrow.appendChild(contactdiv);
containerdiv.appendChild(containerdivrow);
footerdiv.appendChild(containerdiv);
document.body.appendChild(footerdiv);
};
}
head();
foot();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment