Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made width adjustment a nicer prospect.

  • Loading branch information...
commit f217cf589800e90e17108793a8044e3cbecf7703 1 parent 7d926db
Christopher Giffard authored

Showing 2 changed files with 11 additions and 10 deletions. Show diff stats Hide diff stats

  1. +1 7 progress.css
  2. +10 3 progress.js
8 progress.css
@@ -124,20 +124,14 @@
124 124
125 125 .progress-overlay {
126 126 position: absolute;
127   -
128 127 z-index: 10;
129   -
130 128 left: 0px;
131 129 top: 0px;
132   -
133 130 height: 50px;
134 131 border-radius: 4px;
135   - width: 500px;
136   -
  132 + width: 100%;
137 133 border: solid rgba(0,0,0,0.4) 1px;
138   -
139 134 box-shadow: inset rgba(0,0,0,0.4) 0px 0px 5px;
140   -
141 135 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAwCAYAAADkStGdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABJxJREFUWMO9WF1O9DoMjdP0Z6blb0C8I8TjXRoshmf2wWJYweVjAYCY5vq4duuWgsR3NRRFadxO7ONjOy4p6PX09EQ3Nzc5uAsyvSU34sp9XHlm639SOPyV0/n5OeWcw8PDA+1254EoqxFBZJivrq7o9PSU2ralruuoKAoZKSWKMVIkIv6h3NuFTXBVVZVT02ygLJRlCptNMzMhsSxkCryhDN3r0wg6s5JJZn5mq5NtnFLJSjaCwYgpWYYLCrCB38Q2xQ9M/sXVp227DcTWllUZttvtHAkrIVUyDlUmCsSxX6CbnuXUblth4fnfZ+J7pWPg5c+fZ1mxAfT29iZ8vL+/U1mWwgn7W3jAvc2eE+GriH1iMkVr0zSh7Vrbf5RhyZsG3nBEAxR+Lgq4a0LnZx596rqjkHMfmroJHSvJqgTwqrqSBRRwJMnwiiaO5goWbtuzklbuPvYfHKLdnLF9L8/gotfXV0KsImzNXRamkOEyt3mX1XUNJMPGIP3oCKimpEe0YcUvChpE2xoas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=");
142 136 }
143 137
13 progress.js
@@ -40,7 +40,12 @@
40 40 element.html = function(html) {
41 41 element.innerHTML = html;
42 42 return element;
43   - }
  43 + };
  44 +
  45 + element.setStyle = function(style,value) {
  46 + element.style[style] = value;
  47 + return element;
  48 + };
44 49
45 50 return element;
46 51 }
@@ -53,12 +58,14 @@
53 58 self.ui.halo =
54 59 c("div")
55 60 .setClass("halo")
56   - .appendTo(self.ui);
  61 + .appendTo(self.ui)
  62 + .setStyle("width",(self.width + 10) + "px");
57 63
58 64 self.ui.body =
59 65 c("div")
60 66 .setClass("body")
61   - .appendTo(self.ui);
  67 + .appendTo(self.ui)
  68 + .setStyle("width",self.width + "px");
62 69
63 70 self.ui.body.overlay =
64 71 c("div")

0 comments on commit f217cf5

Please sign in to comment.
Something went wrong with that request. Please try again.