Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ayivor
ben
Commits
05e20a92
Commit
05e20a92
authored
Jun 20, 2023
by
Ayivor
Browse files
Upload New File
parent
831fd91e
Pipeline
#8110
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/settings.js
0 → 100644
View file @
05e20a92
//TODO Projektnamen setzen:
let
projektname
=
""
// TODO Link zur Projektseite setzen
let
projektseitenlink
=
""
// TODO URL zum Projektlogo setzen
let
projektlogourl
=
""
// 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
);
//link4: Kontakt
let
contactlink
=
document
.
createElement
(
"
a
"
);
contactlink
.
href
=
"
kontakt.html
"
contactlink
.
innerHTML
=
"
Kontakt
"
menu
.
appendChild
(
contactlink
);
//set projectname
document
.
getElementById
(
"
projectname
"
).
innerHTML
=
projektname
;
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
(
projektlogourl
!=
""
){
let
projectlogo
=
document
.
createElement
(
"
a
"
);
projectlogo
.
href
=
projektseitenlink
;
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
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment