Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Janto Skowronek
m4_lab-video-demo
Commits
8fe902fd
Commit
8fe902fd
authored
Jul 16, 2020
by
Wolfgang Knopki
Browse files
added bmbf logo and improved pipeline with tests for default values
parent
4955c10a
Pipeline
#1151
failed with stages
in 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8fe902fd
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
:
...
...
public/settings.js
View file @
8fe902fd
//TODO Projektnamen setzen:
let
proje
c
tname
=
""
let
proje
k
tname
=
""
// 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
=
proje
c
tname
;
document
.
getElementById
(
"
projectname
"
).
innerHTML
=
proje
k
tname
;
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='
"
+
proje
c
tlogourl
+
"
'/>
"
;
projectlogo
.
innerHTML
=
"
<img src='
"
+
proje
k
tlogourl
+
"
'/>
"
;
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