settings.js 1.73 KB
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
//TODO Projektnamen setzen:
2
let projektname= ""
Wolfgang Knopki's avatar
Wolfgang Knopki committed
3
4
5
// TODO Link zur Projektseite setzen
let projektseitenlink= ""
// TODO URL zum Projektlogo setzen
6
let projektlogourl = ""
Wolfgang Knopki's avatar
Wolfgang Knopki committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

// KEINE ÄNDERUNG NACH DIESER ZEILE!


let menu = document.getElementById("menu");
//link1: home
let homelink = document.createElement("a");
homelink.href="index.html"
homelink.innerHTML="Home"
menu.appendChild(homelink);
//link2: projektseite
let projectlink = document.createElement("a");
projectlink.href=projektseitenlink
projectlink.innerHTML="Projekt"
menu.appendChild(projectlink);
//link3: aktuelles
let newslink = document.createElement("a");
newslink.href="aktuelles.html"
newslink.innerHTML="Aktuelles"
menu.appendChild(newslink);
27
28
29
30
31
//link4: Kontakt
let contactlink = document.createElement("a");
contactlink.href="kontakt.html"
contactlink.innerHTML="Kontakt"
menu.appendChild(contactlink);
Wolfgang Knopki's avatar
Wolfgang Knopki committed
32
33

//set projectname
34
document.getElementById("projectname").innerHTML=projektname;
Wolfgang Knopki's avatar
Wolfgang Knopki committed
35
36
37
38
39
40
41
42
43

let hftlogo = document.createElement("a");
let topbar = document.getElementById("topbar");
hftlogo.href = "https://hft-stuttgart.de";
hftlogo.innerHTML="<img src='https://www.hft-stuttgart.de/typo3conf/ext/hft_sitepackage/Resources/Public/img/HFT_logo.svg'/>";
topbar.insertBefore(hftlogo,menu);
if(projectlogourl != ""){
    let projectlogo = document.createElement("a");
    projectlogo.href=projektseitenlink;
44
    projectlogo.innerHTML="<img src='" + projektlogourl + "'/>";
Wolfgang Knopki's avatar
Wolfgang Knopki committed
45
46
    topbar.insertBefore(projectlogo,menu);
}
47
48
49
50
51

//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);