How do I override the default loading animation for CSHTML5?
Code: Select all
#loadingProgress {
background-color: #DDDDDD;
z-index: 9999;
position: fixed;
top: 50%;
left: 50%;
width: 200px;
height: 3px;
margin-top: -1px; /* set to a negative number 1/2 of your height */
margin-left: -100px; /* set to a negative number 1/2 of your width */
}
#progressBar {
background-color: #333333;
margin: 0px;
padding: 0px;
height: 3px;
}
Code: Select all
progressDiv.innerHTML = (
' <div id="progressBar"></div>' +
' <span id="progressText"></span>'
);
Code: Select all
function updateProgressBar (prefix, suffix, bytesLoaded, bytesTotal) {
...
JS-Support wrote:Hi,
At the moment, there are limited built-in options for customizing the Loading animation:
..........
Here is the portion of the code that creates the HTML progress bar:Code: Select all
progressDiv.innerHTML = (
' <div id="progressBar"></div>' +
' <span id="progressText"></span>'
);
Users browsing this forum: No registered users and 1 guest