Site Notice

hello, world

Progress

From Project-EPB Commons
Revision as of 18:53, 21 November 2019 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)

<html> <progress id="progress" value="0" max="10000" style="width: 80%; margin: auto 10%"/> <script> var goprogess = setInterval(function () {

 if (typeof($) !== 'undefined') {
   if (typeof x === 'undefined') x = 0;
   if (x < 500) {
     x = x + 20;
   } else if (x < 800) {
     x = x + 10;
   } else if (x < 900) {
     x = x + 5;
   } else {
     x = x + 2;
   }
   if (x > 985) clearInterval(goprogess);
   $('#progress').val(x);
 }

}, 20); </script> </html>