var menu = [{'name':'Informationen', 'combos':[{'name':'Projekte', 'link':'/project'}, {'name':'Über das M4_LAB', 'link':'/projectoverview?projectID=1'},{'name':'Kontakt', 'link':'/account/contact'}], 'type':'dropdown', 'link':'#'},{'name':'Zusammenarbeit', 'combos':[{'name':'Mailinglisten', 'link':'/mailinglists'},{'name':'Videokonferenzen', 'link':'/videoconference.html'},/* {'name':'...', 'link':'#'}*/], 'type':'dropdown', 'link':'#'},{'name':'Events', 'combos':[{'name':'Veranstaltungen der HfT', 'link':'http://www.hft-stuttgart.de/Aktuell/Veranstaltungen/'},{'name':'Veranstaltungen der HfT Forschung', 'link':'https://www.hft-stuttgart.de/forschung/veranstaltungen'}], 'type':'dropdown', 'link':'#'},{'name':'Benutzerkonto', 'combos': [], 'type':'', 'link':'/account/'}]; var hft_links = [{'url':'/account/contact', 'name':'Kontakt'},{'url':'https://www.hft-stuttgart.de/impressum', 'name':'Impressum'},{'url':'https://www.hft-stuttgart.de/datenschutz', 'name':'Datenschutz'}] var socialmedias = [{'url':'https://twitter.com/InnolabM4', 'name': 'fa-twitter'}, {'url':'https://www.facebook.com/HfTStuttgart/', 'name': 'fa-facebook-square'}, {'url':'https://www.instagram.com/m4_lab/', 'name': 'fa-instagram'}, {'url':'https://de.linkedin.com/school/hochschule-f%C3%BCr-technik-stuttgart-%E2%80%93-university-of-applied-sciences/', 'name': 'fa-linkedin'}, {'url':'https://www.youtube.com/channel/UCi0_JfF2qMZbOhOnNH5PyHA', 'name': 'fa-youtube'}]; var footer_images = [/*{'src':'/images/demo/bbf_logo.png', 'alt':'BMBF'},*/ {'src':'/images/demo/Innovative_Hochschule_Initiative_BMBF_GWK_RGB.jpg', 'alt':'Innovative Hochschule'}] function prependChild(parent,child){ parent.insertBefore(child, parent.childNodes[0]); } function readCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i to manage sticky footer var styles = ` @media only screen and (min-width: 768px) { html { position: relative; min-height: 100%; } body { margin-bottom: 120px; /* Margin bottom by footer height */ } #homepage { position: absolute; bottom: 0; width: 100%; text-align: center; } } ` var styleSheet = document.createElement("style") styleSheet.type = "text/css" styleSheet.innerText = styles document.head.appendChild(styleSheet) let footerdiv = document.createElement('div'); footerdiv.id="homepage"; footerdiv.innerHTML = "
"; let containerdiv = document.createElement('div'); 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 = "Innovative Hochschule" //m4labgrau let m4labgrau = document.createElement('div'); m4labgrau.classList.add("col-md-auto"); m4labgrau.innerHTML = "M4_LAB" // 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+=" "; } socialdiv.appendChild(socialrow); // contact let contactdiv = document.createElement('div'); contactdiv.classList.add("col-md-auto", "footer-unten") contactdiv.innerHTML="Hochschule für Technik Stuttgart"; let rowdiv = document.createElement('div'); rowdiv.classList.add("row"); for(let i = 0; i