/******************************* * This is the function you can modify to customize the loading page * This function will be invoked when one resource is loaded. ********************************/ // var progress; // function loadingCallback(url, i, count) { // var loading = document.getElementById('main-loading-bar'); // loading.setAttribute('title', url); // if(!progress){ // progress = document.createElement('div'); // progress.setAttribute('class', 'loading-progress'); // loading.appendChild(progress); // } // progress.style.width = (((i - 1)/count) * 100) + '%'; // }