Permalink
Browse files

Made width adjustment a nicer prospect.

  • Loading branch information...
1 parent 7d926db commit f217cf589800e90e17108793a8044e3cbecf7703 @cgiffard committed Nov 27, 2012
Showing with 11 additions and 10 deletions.
  1. +1 −7 progress.css
  2. +10 −3 progress.js
View
8 progress.css
@@ -124,20 +124,14 @@
.progress-overlay {
position: absolute;
-
z-index: 10;
-
left: 0px;
top: 0px;
-
height: 50px;
border-radius: 4px;
- width: 500px;
-
+ width: 100%;
border: solid rgba(0,0,0,0.4) 1px;
-
box-shadow: inset rgba(0,0,0,0.4) 0px 0px 5px;
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAwCAYAAADkStGdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABJxJREFUWMO9WF1O9DoMjdP0Z6blb0C8I8TjXRoshmf2wWJYweVjAYCY5vq4duuWgsR3NRRFadxO7ONjOy4p6PX09EQ3Nzc5uAsyvSU34sp9XHlm639SOPyV0/n5OeWcw8PDA+1254EoqxFBZJivrq7o9PSU2ralruuoKAoZKSWKMVIkIv6h3NuFTXBVVZVT02ygLJRlCptNMzMhsSxkCryhDN3r0wg6s5JJZn5mq5NtnFLJSjaCwYgpWYYLCrCB38Q2xQ9M/sXVp227DcTWllUZttvtHAkrIVUyDlUmCsSxX6CbnuXUblth4fnfZ+J7pWPg5c+fZ1mxAfT29iZ8vL+/U1mWwgn7W3jAvc2eE+GriH1iMkVr0zSh7Vrbf5RhyZsG3nBEAxR+Lgq4a0LnZx596rqjkHMfmroJHSvJqgTwqrqSBRRwJMnwiiaO5goWbtuzklbuPvYfHKLdnLF9L8/gotfXV0KsImzNXRamkOEyt3mX1XUNJMPGIP3oCKimpEe0YcUvChpE2xoas94HhEM1KYH/cb9UErySsvzkNr/5Mk9UIdzVkZJLpgR/EKobAjzAcuox+p72+/0UPeoePPczdPU9Rp9HJJvNlqPrfUCSQXce8obfrhllXdWSSyVQKBIgwm7fVgNDgl3ruqKOE5MDbbzYTaRJSTExqfwXKI6kTiMPtcXJBkQy5zRYy8RzDfN8GDogqpSTlApGwyjiQHoCAkf2iGgoWoamH5SwuEFOUBwSRHXVTS3LEqQjGXkzRJgkIRQVmhsWaVZO5gVyDyWCXso2v2wKspYTCYAqUSoSFa6E+HyIOpZu1DXctRFZofCDswLEQllalBKfF7NwNVc5NOKuum5GfxYfH4sqnGalwhQt8mAq+wsF43liEaRlIUjxmjYhm0fXxDg7+Sxf/FrvJ2MRNUPykczza6iUci4gekOUiuvMtB0/nVRO1ieUCivvuc9DxJvA+dj/GH/De2vucQZaIyFQBwXsLxofZ/8mDVHvXTKshyQ0QN4QJKO5LRlhOXpX5TBX5+PfnWqBvjzbZ5xcX1+LlouLC3p5eZmRAhnms7MzOj4+luOXZZErNs4J4qMh4gjGM+QZy6K1SxhMRYSnfqO5CwdXIifngTb2p6MoyZbxrq+bZbSdHQh3Hhm5pSNLCmgkYO3PGbyLUzX9xKq/QcMK44hEhatIYJm3HjMs5CFIMAOBtU6uJ5N3fyO6Jk604ua1KmwdJKznHMnobNaQ+KyHjNFk7njiwZEgG7+NLpUFxwF6MUGiaLKPMkST9WMu4ug3knFCAouWSFQmVqObRNMBJLgHKl5n8AaeNI/yooXN/xvJsoVae4YDd0QCy5ZIVCYI8B2DhpxHNn5YNkYXLAc32vnYuY/nk7v0Y2imxD6QTk5OAn/9yuCyLsRjc7gLrrEQ5s3zopuBkp+56zv3fBfFI5LdbvcJicrC5eWlDCDi7/5snxEgHFaDcGlbGcmihcoWXeHAaIrfqF2Tu/ifN+Hx8XFmJmQ2w3UaYUKyfnUZ0eM8+47n7vHHxP+lG6cqfHd3F+7v72dv3t7erh1aa+ePyfLKu/QfgVAgbT0mIPoAAAAASUVORK5CYII=");
}
View
13 progress.js
@@ -40,7 +40,12 @@
element.html = function(html) {
element.innerHTML = html;
return element;
- }
+ };
+
+ element.setStyle = function(style,value) {
+ element.style[style] = value;
+ return element;
+ };
return element;
}
@@ -53,12 +58,14 @@
self.ui.halo =
c("div")
.setClass("halo")
- .appendTo(self.ui);
+ .appendTo(self.ui)
+ .setStyle("width",(self.width + 10) + "px");
self.ui.body =
c("div")
.setClass("body")
- .appendTo(self.ui);
+ .appendTo(self.ui)
+ .setStyle("width",self.width + "px");
self.ui.body.overlay =
c("div")

0 comments on commit f217cf5

Please sign in to comment.