Commit 8fe902fd authored by Wolfgang Knopki's avatar Wolfgang Knopki

added bmbf logo and improved pipeline with tests for default values

parent 4955c10a
Pipeline #1028 failed with stages
in 29 seconds
variables:
EXPORT_DIR: "/var/www/html/pages"
stages:
- test
- deploy
pages-test:
stage: test
script:
- (! grep 'projektname= ""' public/settings.js)
- (! grep 'projektseitenlink= ""' public/settings.js)
- (! grep 'Max Mustermann' public/kontakt.html)
pages-master:
stage: deploy
script:
......
//TODO Projektnamen setzen:
let projectname= ""
let projektname= ""
// TODO Link zur Projektseite setzen
let projektseitenlink= ""
// TODO URL zum Projektlogo setzen
let projectlogourl = ""
let projektlogourl = ""
// KEINE ÄNDERUNG NACH DIESER ZEILE!
......@@ -25,9 +24,14 @@ let newslink = document.createElement("a");
newslink.href="aktuelles.html"
newslink.innerHTML="Aktuelles"
menu.appendChild(newslink);
//link4: Kontakt
let contactlink = document.createElement("a");
contactlink.href="kontakt.html"
contactlink.innerHTML="Kontakt"
menu.appendChild(contactlink);
//set projectname
document.getElementById("projectname").innerHTML=projectname;
document.getElementById("projectname").innerHTML=projektname;
let hftlogo = document.createElement("a");
let topbar = document.getElementById("topbar");
......@@ -37,6 +41,11 @@ topbar.insertBefore(hftlogo,menu);
if(projectlogourl != ""){
let projectlogo = document.createElement("a");
projectlogo.href=projektseitenlink;
projectlogo.innerHTML="<img src='" + projectlogourl + "'/>";
projectlogo.innerHTML="<img src='" + projektlogourl + "'/>";
topbar.insertBefore(projectlogo,menu);
}
//footer: add logo innovatice Hochschule
let bmbf = document.createElement('div');
bmbf.innerHTML = "<img src='https://transfer.hft-stuttgart.de/img/footer/Innovative_Hochschule_Initiative_BMBF_GWK_RGB.png' alt='Innovative Hochschule' style='height:90px'/>"
document.body.appendChild(bmbf);
Markdown is supported
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