Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBI-Framework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ebiwd
EBI-Framework
Commits
1a0bcc16
Commit
1a0bcc16
authored
6 years ago
by
Ken Hawkins
Browse files
Options
Downloads
Patches
Plain Diff
Update compiled
parent
00e48afd
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
js/documenation.md
+54
-54
54 additions, 54 deletions
js/documenation.md
js/script.js
+7
-6
7 additions, 6 deletions
js/script.js
js/script.min.js
+1
-1
1 addition, 1 deletion
js/script.min.js
with
62 additions
and
61 deletions
js/documenation.md
+
54
−
54
View file @
1a0bcc16
This diff is collapsed.
Click to expand it.
js/script.js
+
7
−
6
View file @
1a0bcc16
...
...
@@ -670,13 +670,14 @@ function ebiFrameworkCreateDataProtectionBanner() {
}
banner
.
id
=
"
data-protection-banner
"
;
banner
.
className
=
"
cookie-banner
"
;
banner
.
className
=
"
data-protection-banner
"
;
banner
.
style
=
"
position: fixed; background-color: #111; width: 100%; padding: .75rem; left: 0; bottom: 0; color: #eee;
"
wrapper
.
className
=
"
row
"
;
wrapper
.
innerHTML
=
""
+
"
<div class='columns medium-8 large-9'>
"
+
dataProtectionSettings
.
message
+
"
To find out more, see our <a target='_blank' href='
"
+
dataProtectionSettings
.
link
+
"
' class='white-color'>privacy policy</a>.</div>
"
+
"
<div class='columns medium-4 large-3 text-right'><a id='data-protection-agree' class=''>I agree, dismiss this banner</a></div>
"
+
"
<div class='columns medium-4 large-3 text-right
white-color
'><a id='data-protection-agree' class=''>I agree, dismiss this banner</a></div>
"
+
""
;
document
.
body
.
appendChild
(
banner
);
...
...
@@ -700,10 +701,10 @@ function closeDataProtectionBanner() {
var
height
=
document
.
getElementById
(
'
data-protection-banner
'
).
offsetHeight
;
document
.
getElementById
(
'
data-protection-banner
'
).
style
.
display
=
'
none
'
;
document
.
body
.
style
.
paddingBottom
=
'
0
'
;
s
etCookie
(
dataProtectionSettings
.
cookieName
,
'
true
'
,
90
);
ebiFrameworkS
etCookie
(
dataProtectionSettings
.
cookieName
,
'
true
'
,
90
);
}
function
s
etCookie
(
c_name
,
value
,
exdays
)
{
function
ebiFrameworkS
etCookie
(
c_name
,
value
,
exdays
)
{
var
exdate
=
new
Date
();
var
c_value
;
exdate
.
setDate
(
exdate
.
getDate
()
+
exdays
);
...
...
@@ -713,7 +714,7 @@ function setCookie(c_name, value, exdays) {
document
.
cookie
=
c_name
+
"
=
"
+
c_value
;
}
function
g
etCookie
(
c_name
)
{
function
ebiFrameworkG
etCookie
(
c_name
)
{
var
i
,
x
,
y
,
ARRcookies
=
document
.
cookie
.
split
(
"
;
"
);
for
(
i
=
0
;
i
<
ARRcookies
.
length
;
i
++
)
{
x
=
ARRcookies
[
i
].
substr
(
0
,
ARRcookies
[
i
].
indexOf
(
"
=
"
));
...
...
@@ -754,7 +755,7 @@ function ebiFrameworkRunDataProtectionBanner() {
dataProtectionSettings
.
cookieName
=
dataProtectionSettings
.
serviceId
+
"
-v
"
+
dataProtectionSettings
.
dataProtectionVersion
+
"
-data-protection-accepted
"
;
// If this version of banner not accpeted, show it:
if
(
g
etCookie
(
dataProtectionSettings
.
cookieName
)
!=
"
true
"
)
{
if
(
ebiFrameworkG
etCookie
(
dataProtectionSettings
.
cookieName
)
!=
"
true
"
)
{
ebiFrameworkCreateDataProtectionBanner
();
}
...
...
This diff is collapsed.
Click to expand it.
js/script.min.js
+
1
−
1
View file @
1a0bcc16
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment