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

added bmbf logo and improved pipeline with tests for default values

parent 4955c10a
Pipeline #8930 failed with stages
in 29 seconds
variables: variables:
EXPORT_DIR: "/var/www/html/pages" 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: pages-master:
stage: deploy stage: deploy
script: script:
......
//TODO Projektnamen setzen: //TODO Projektnamen setzen:
let projectname= "" let projektname= ""
// TODO Link zur Projektseite setzen // TODO Link zur Projektseite setzen
let projektseitenlink= "" let projektseitenlink= ""
// TODO URL zum Projektlogo setzen // TODO URL zum Projektlogo setzen
let projectlogourl = "" let projektlogourl = ""
// KEINE ÄNDERUNG NACH DIESER ZEILE! // KEINE ÄNDERUNG NACH DIESER ZEILE!
...@@ -25,9 +24,14 @@ let newslink = document.createElement("a"); ...@@ -25,9 +24,14 @@ let newslink = document.createElement("a");
newslink.href="aktuelles.html" newslink.href="aktuelles.html"
newslink.innerHTML="Aktuelles" newslink.innerHTML="Aktuelles"
menu.appendChild(newslink); menu.appendChild(newslink);
//link4: Kontakt
let contactlink = document.createElement("a");
contactlink.href="kontakt.html"
contactlink.innerHTML="Kontakt"
menu.appendChild(contactlink);
//set projectname //set projectname
document.getElementById("projectname").innerHTML=projectname; document.getElementById("projectname").innerHTML=projektname;
let hftlogo = document.createElement("a"); let hftlogo = document.createElement("a");
let topbar = document.getElementById("topbar"); let topbar = document.getElementById("topbar");
...@@ -37,6 +41,11 @@ topbar.insertBefore(hftlogo,menu); ...@@ -37,6 +41,11 @@ topbar.insertBefore(hftlogo,menu);
if(projectlogourl != ""){ if(projectlogourl != ""){
let projectlogo = document.createElement("a"); let projectlogo = document.createElement("a");
projectlogo.href=projektseitenlink; projectlogo.href=projektseitenlink;
projectlogo.innerHTML="<img src='" + projectlogourl + "'/>"; projectlogo.innerHTML="<img src='" + projektlogourl + "'/>";
topbar.insertBefore(projectlogo,menu); 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);
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