Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
75a0c4a4
authored
Jan 28, 2013
by
Danyi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sliding animation fix
parent
538165d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
one/templates/base.html
+6
-2
No files found.
one/templates/base.html
View file @
75a0c4a4
...
...
@@ -11,17 +11,21 @@
<script
src=
"/static/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
'.wm .summary'
).
each
(
function
(){
this
.
originalHeight
=
parseInt
(
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
})
$
(
'.wm .summary'
).
click
(
function
(){
if
(
$
(
this
).
next
(
'.details'
).
is
(
':hidden'
)){
$
(
this
).
next
(
'.details'
)
.
css
(
'height'
,
0
)
.
css
(
'padding'
,
'0px 5px'
)
.
show
()
.
animate
({
height
:
160
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
.
animate
({
height
:
this
.
originalHeight
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
}
else
{
var
that
=
this
;
$
(
this
).
next
(
'.details'
)
.
css
(
'height'
,
130
)
//2*15px paddingot le kell vonni, a jQuery szar
.
css
(
'height'
,
this
.
originalHeight
-
30
)
.
css
(
'padding'
,
'15px 5px'
)
.
animate
({
height
:
0
,
paddingTop
:
0
,
paddingBottom
:
0
},
700
,
function
(){
$
(
that
).
next
(
'.details'
).
hide
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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