download.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <html>
  2. <head>
  3. <meta name="apple-mobile-web-app-capable" content="yes" />
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"/>
  6. <link rel="stylesheet" href="./script/tocas/tocas.css">
  7. <script src="./script/jquery.min.js"></script>
  8. <title>vAOB Installer</title>
  9. <style type="text/css">
  10. .segment {
  11. max-width: 300px;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <div class="ts fluid basic link big menu">
  17. <div class="ts very narrow container">
  18. <a href="#!" class="item">vArOZ Installer</a>
  19. </div>
  20. </div>
  21. <div class="ts padded horizontally fitted fluid slate">
  22. <div class="ts very narrow container">
  23. <h1 class="ts header">
  24. Installing
  25. <div class="sub header">We are going to install the system into devices...</div>
  26. </h1>
  27. </div>
  28. </div>
  29. <div class="ts very narrow container">
  30. <br>
  31. <div class="ts indeterminate progress">
  32. <div class="bar"></div>
  33. </div>
  34. <p>We are starting to configruate your system, it should takes about 10-15 minutes to install, depends on your system configration it may longer or shorter.</p>
  35. </div>
  36. <script>
  37. $.get( "cmd.php?step=1", function( data ) {
  38. if(data == "false"){
  39. window.location = "version.php?invaild=true";
  40. }else{
  41. $(".ts.indeterminate.progress").attr("class","ts active progress");
  42. $(".bar").animate({width:"10%"},3000);
  43. step2();
  44. }
  45. });
  46. function step2(){
  47. $.get( "cmd.php?step=2", function( data ) {
  48. if(data == "true"){
  49. $(".bar").animate({width:"30%"},5000);
  50. step3();
  51. }else{
  52. }
  53. });
  54. }
  55. function step3(){
  56. $.get( "cmd.php?step=3", function( data ) {
  57. if(data == "true"){
  58. $(".bar").animate({width:"70%"},8000);
  59. step4();
  60. }else{
  61. }
  62. });
  63. }
  64. function step4(){
  65. $.get( "cmd.php?step=4", function( data ) {
  66. if(data == "true"){
  67. $(".bar").width("100%");
  68. finish();
  69. }else{
  70. }
  71. });
  72. }
  73. </script>
  74. </body>
  75. </html>