Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b08d6f41
authored
Feb 06, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: dynamic quota background
parent
666cc2b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
one/static/cloud.js
+12
-0
No files found.
one/static/cloud.js
View file @
b08d6f41
...
@@ -72,6 +72,18 @@ $(function() {
...
@@ -72,6 +72,18 @@ $(function() {
e
.
preventDefault
();
e
.
preventDefault
();
$
(
this
).
parent
().
hide
().
parent
().
find
(
'#old-upload-form'
).
show
();
$
(
this
).
parent
().
hide
().
parent
().
find
(
'#old-upload-form'
).
show
();
return
false
;
return
false
;
});
$
(
'.quota .used'
).
each
(
function
(){
var
s
=
this
;
$
(
this
).
css
(
'backgroundColor'
,
function
(
w
){
console
.
log
(
s
,
parseFloat
(
w
));
return
'hsla('
+
(
120
-
parseFloat
(
w
)
/
438
*
120
).
toFixed
(
0
)
+
',100%,50%,0.2)'
;
}(
$
(
this
).
css
(
'width'
)));
if
(
parseInt
(
$
(
this
).
css
(
'width'
))
>
0
)
$
(
this
).
css
(
'borderRight'
,
function
(
w
){
console
.
log
(
s
,
parseFloat
(
w
));
return
'1px solid hsla('
+
(
120
-
parseFloat
(
w
)
/
438
*
120
).
toFixed
(
0
)
+
',100%,30%,0.4)'
;
}(
$
(
this
).
css
(
'width'
)));
})
})
/**
/**
...
...
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