Add WebCms
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 314 B |
Binary file not shown.
|
After Width: | Height: | Size: 102 B |
Binary file not shown.
|
After Width: | Height: | Size: 113 B |
@@ -0,0 +1,25 @@
|
||||
var step = 8;
|
||||
var padding = 10;
|
||||
|
||||
function progressBarUpdate(id, percent) {
|
||||
var total = document.getElementById("progressBar" + id).style.width;
|
||||
total = Math.round(total.substring(0, total.length-2))-padding;
|
||||
var onePercent = total / 100;
|
||||
var progress = Math.round(onePercent*percent);
|
||||
if (progress % step == 0 || percent > 99) {
|
||||
document.getElementById("progressBar" + id + "_indicator").style.width = progress;
|
||||
}
|
||||
}
|
||||
|
||||
function progressBarUpdateLabel(id, text) {
|
||||
document.getElementById("progressBar" + id + "_text").innerHTML = text;
|
||||
}
|
||||
|
||||
function progressBarTest(id, percent) {
|
||||
progressBarUpdate(id, percent);
|
||||
progressBarUpdateLabel(id, percent + '%');
|
||||
if (percent < 100) {
|
||||
percent++;
|
||||
setTimeout("progressBarTest('" + id + "', " + percent + ")", 100);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
.progressIndicator {
|
||||
background: url(images/indicator.gif) repeat-x;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.progressContainerLeft {
|
||||
background: url(images/container_left.gif) repeat-x;
|
||||
padding: 3px 0px 2px 5px;
|
||||
float: left;
|
||||
margin: 0px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.progressContainerRight {
|
||||
background: url(images/container_right.gif) no-repeat;
|
||||
padding: 0px;
|
||||
width: 4px;
|
||||
margin: 0px;
|
||||
float: left;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.progressBar {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
display: block;
|
||||
}
|
||||
Reference in New Issue
Block a user