123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>ELAB</title>
- <link rel="stylesheet" type="text/css" href="progress/src/normalize.css">
- <link rel="stylesheet" type="text/css" href="progress/style.css?v-1.043543">
- <link rel="stylesheet" type="text/css" href="progress/number-pb.css">
- <link rel="stylesheet" href="css/animate.css" />
- <!--<link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'>-->
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type="text/css">
- html,body{
- width: 100%;
- height: 100%;
- }
- .container{
- width: 100%;
- height: 100%;
- align-items:center;
- }
- .samp-cell{
- width: 100%;
- text-align: center;
- vertical-align: middle;
- }
- .logo{
- margin-top: -10%;
- margin-bottom: 3.5%;
- }
- .progress-num{
- margin: 0 auto;
- line-height: 100%;
- }
- .sample-pb{
- margin: 0 auto;
- }
- .number-pb{
- margin: 0 auto;
- }
- </style>
- </head>
- <body>
- <div class="container" id="sample-pb">
- <div class="samp-cell">
- <p class="progress-num" id="progress-num">0</p>
- <img class="logo" src="progress/img/LOGO.png" />
- <section class="sample-pb">
- <div class="number-pb">
- <div class="number-pb-shown"></div>
- <div class="number-pb-num">0%</div>
- </div>
- </section>
- </div>
- <div id="hidden" class="hidden">
- <img src="http://yun-image.elab-plus.com/images/index/1_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects_6.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects_7.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects@2x_2.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects@2x_3.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects@2x_4.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/index/1_objects@2x_5.png" class="hidden_img"></img>
- <!--<img src="http://yun-image.elab-plus.com/water/img/dmaps/2048x2048/clouds.jpg" class="hidden_img"></img>-->
- <img src="http://yun-image.elab-plus.com/images/1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/BG@2x.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/bg01.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/bg02.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/bg03.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Bitmap@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Bitmap@2x9.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group 2@2x01.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group 2@2x02.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group 2@2x03.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group 4@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group 7@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group@2x01.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group@2x02.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Group@2x03.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/ic_clear@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Line.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Line0.png" class="hidden_img"></img>
- <!--<img src="http://yun-image.elab-plus.com/images/LOGO.png" class="hidden_img"></img>-->
- <img src="http://yun-image.elab-plus.com/images/Main@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Main@2x01.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Menu-icon.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Menu-icon@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/Works-icon@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_2.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_3.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_4.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_5.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_6.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/contact/1_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_2.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_3.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_4.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_5.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_6.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x_7.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/1_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/2_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/2_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/3_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/join/3_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_2.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_3.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_4.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_5.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_6.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_7.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_8.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_9.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_10.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_11.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_12.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_13.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_14.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x_15.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/1_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/2_objects@2x_1.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/2_objects@2x_2.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/2_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/3_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/do/4_objects@2x.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_1.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_2.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_3.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_4.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_6.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_7.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_8.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_9.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_10.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_11.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_12.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_13.png" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_14.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/1_objects@2x_15.jpg" class="hidden_img"></img>
- <img src="http://yun-image.elab-plus.com/images/projects/2_objects@2x.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/elab_what.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/elab_do.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/elab_news.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/elab_project.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/elab_join.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/Location@2x.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/Phone@2x.png" class="hidden_img"></img>
- <img src="https://dm.static.elab-plus.com/elabGuanWang/Email@2x.png" class="hidden_img"></img>
- </div>
- </div>
- <script src="progress/src/jquery.min.js"></script>
- <!--<script src="http://yun-image.elab-plus.com/progress/src/jquery.velocity.min.js"></script>
- <script src="http://yun-image.elab-plus.com/progress/number-pb.js"></script>
- <script src= "https://npmcdn.com/imagesloaded@4.1/imagesloaded.pkgd.js"></script>-->
- <script>
- var $_h = $(window).height();
- //console.log($_h);
- $(".container").height($_h+'px');
- localStorage.setItem("loadComplete","0");
- var percent;
- var Count = $(".hidden_img").length; //图片数量
- var Imgs = new Array(Count);
- var ImgLoaded = 0;
- var Urls = new Array(Count);
- for(var i = 0; i < Count; i++) {
- var $tmp = $(".hidden_img").eq(i).attr("src");
- Urls[i] = $tmp;
- }
- //mock
- var time0 = new Date().getTime();
- mockloaded = function () {
- var cur = new Date();
- var t = (cur.getTime() - time0) / 1000;
- var s = t | 0;
- var res = 104;
- if (s >= 0 && s < 3) {
- res = 8 * t;
- }
- if (s >= 3 && s < 16) {
- res = 24 + 2 * (t - 3);
- }
- if (s >= 16 && s < 96) {
- res = 50 + 0.5 * (t - 16);
- }
- if (s >= 96 && s < 176) {
- res = 90 + 0.1 * (t - 96);
- }
- return res | 0;
- }
- function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
- }
- var mock = setInterval(function () {
- var mock = mockloaded();
- $("#progress-num").text(mock);
- $(".number-pb-shown").css("width", "" + mock + "%"+Arita);
- },100);
- //预加载图片
- function preLoadImgs() {
- for(var i = 0; i < Imgs.length; i++) {
- Imgs[i] = new Image();
- downloadImage(i);
- }
- }
- //加载单个图片
- function downloadImage(i) {
- Imgs[i].src = Urls[i];
- Imgs[i].onLoad = validateImages(i);
- }
- function validateImages(i) {
- if(!Imgs[i].complete) {
- window.setTimeout('downloadImage(' + i + ')', 200);
- } else if(typeof Imgs[i].naturalWidth != "undefined" && Imgs[i].naturalWidth == 0) {
- window.setTimeout('downloadImage(' + i + ')', 200);
- } else {
- ImgLoaded++;
- percent = parseInt(ImgLoaded / Count * 100);
- if(percent == 100) {
- $("#progress-num").text(percent);
- $(".number-pb-shown").css("width", "" + percent + "%");
- // controlBar.reach(100);
- //加载完毕,关闭loading
- clearInterval(mock);
- // parent.hideLoading();
- localStorage.setItem("loadComplete","1");
- }
- }
- }
- preLoadImgs();
- </script>
- </div>
- </body>
- </html>
|