Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Infoscreen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evy Storozhenko
Infoscreen
Commits
ee84af16
Commit
ee84af16
authored
9 years ago
by
Tilman Vatteroth
Browse files
Options
Downloads
Patches
Plain Diff
Layout von jCookie durch Parameter-Parsing ersetzt
parent
35350ec2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+3
-3
3 additions, 3 deletions
index.html
js/jquery.jcookie.min.js
+0
-2
0 additions, 2 deletions
js/jquery.jcookie.min.js
with
3 additions
and
5 deletions
index.html
+
3
−
3
View file @
ee84af16
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
<link
rel=
"stylesheet"
href=
"css/marquee.css"
>
<link
rel=
"stylesheet"
href=
"css/marquee.css"
>
<script
type=
"text/javascript"
src=
"js/jquery-2.1.4.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-2.1.4.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-ui.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-ui.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.jcookie.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/marquee.js"
></script>
<script
type=
"text/javascript"
src=
"js/marquee.js"
></script>
<script
type=
"text/javascript"
src=
"js/panelAPI.js"
></script>
<script
type=
"text/javascript"
src=
"js/panelAPI.js"
></script>
<script
type=
"text/javascript"
src=
"js/webfontloader.js"
></script>
<script
type=
"text/javascript"
src=
"js/webfontloader.js"
></script>
...
@@ -29,8 +28,9 @@
...
@@ -29,8 +28,9 @@
}
}
});
});
var
layoutname
=
$
.
jCookie
(
"
layout
"
);
var
params
=
location
.
search
.
replace
(
'
?
'
,
''
).
split
(
'
&
'
).
reduce
(
function
(
s
,
c
){
var
t
=
c
.
split
(
'
=
'
);
s
[
t
[
0
]]
=
t
[
1
];
return
s
;},{});
layoutname
=
(
typeof
(
layoutname
)
==
"
undefined
"
?
"
default
"
:
layoutname
);
var
layoutname
=
(
typeof
(
params
.
layout
)
==
"
undefined
"
?
"
default
"
:
params
.
layout
);
layout
.
loadLayout
(
layoutname
);
layout
.
loadLayout
(
layoutname
);
});
});
//]]>
//]]>
...
...
This diff is collapsed.
Click to expand it.
js/jquery.jcookie.min.js
deleted
100755 → 0
+
0
−
2
View file @
35350ec2
/** https://github.com/martinkr/jCookie - Copyright (c) 2008-2011 Martin Krause - Dual licensed under the MIT and GPL licenses. */
jQuery
.
jCookie
=
function
(
i
,
b
,
l
,
j
){
if
(
!
navigator
.
cookieEnabled
){
return
false
}
var
j
=
j
||
{};
if
(
typeof
(
arguments
[
0
])
!==
"
string
"
&&
arguments
.
length
===
1
){
j
=
arguments
[
0
];
i
=
j
.
name
;
b
=
j
.
value
;
l
=
j
.
expires
}
i
=
encodeURI
(
i
);
if
(
b
&&
(
typeof
(
b
)
!==
"
number
"
&&
typeof
(
b
)
!==
"
string
"
&&
b
!==
null
)){
return
false
}
var
e
=
j
.
path
?
"
; path=
"
+
j
.
path
:
""
;
var
f
=
j
.
domain
?
"
; domain=
"
+
j
.
domain
:
""
;
var
d
=
j
.
secure
?
"
; secure
"
:
""
;
var
g
=
""
;
if
(
b
||
(
b
===
null
&&
arguments
.
length
==
2
)){
l
=
(
l
===
null
||
(
b
===
null
&&
arguments
.
length
==
2
))?
-
1
:
l
;
if
(
typeof
(
l
)
===
"
number
"
&&
l
!=
"
session
"
&&
l
!==
undefined
){
var
k
=
new
Date
();
k
.
setTime
(
k
.
getTime
()
+
(
l
*
24
*
60
*
60
*
1000
));
g
=
[
"
; expires=
"
,
k
.
toGMTString
()].
join
(
""
)}
document
.
cookie
=
[
i
,
"
=
"
,
encodeURI
(
b
),
g
,
f
,
e
,
d
].
join
(
""
);
return
true
}
if
(
!
b
&&
typeof
(
arguments
[
0
])
===
"
string
"
&&
arguments
.
length
==
1
&&
document
.
cookie
&&
document
.
cookie
.
length
){
var
a
=
document
.
cookie
.
split
(
"
;
"
);
var
h
=
a
.
length
;
while
(
h
--
){
var
c
=
a
[
h
].
split
(
"
=
"
);
if
(
jQuery
.
trim
(
c
[
0
])
===
i
){
return
decodeURI
(
c
[
1
])}}
return
undefined
}
if
(
!
document
.
cookie
||!
document
.
cookie
.
length
){
return
undefined
}
return
false
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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