Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
c7068034
Commit
c7068034
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
test dynamic header
parent
ae547195
master
testing
No related merge requests found
Pipeline
#106
passed with stage
in 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/headfoot.js
+2
-2
js/headfoot.js
with
2 additions
and
2 deletions
+2
-2
js/headfoot.js
+
2
-
2
View file @
c7068034
...
...
@@ -11,11 +11,11 @@ function prependChild(parent,child){
}
function
userAuthenticated
(){
console
.
log
(
document
.
getElementById
(
'
loginswitch
'
).
href
);
console
.
log
(
document
.
getElementById
(
'
loginswitch
'
).
getAttribute
(
'
authenticated
'
)
);
let
params
=
new
URLSearchParams
(
window
.
location
.
search
);
if
(
params
.
get
(
'
isAuthenticatedUser
'
)){
return
true
;
}
else
if
(
document
.
getElementById
(
'
loginswitch
'
).
href
==
'
1
'
){
}
else
if
(
document
.
getElementById
(
'
loginswitch
'
).
getAttribute
(
'
authenticated
'
)
==
'
1
'
){
return
true
;
}
else
{
return
false
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets