aboutsummaryrefslogtreecommitdiff
blob: 676b528ab883818d248e8f802418ad6b45ec4c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
	require_once "config.php";
	require_once GENTOASTER_PATH."/ui/status.php";
?>
<html>
    <head>
        <title>Gentoaster</title>
        <link rel="stylesheet" type="text/css" href="css/style.css">
        <link rel="stylesheet" type="text/css"
          href="css/ui-lightness/jquery-ui-1.8.14.custom.css">
        <script type="text/javascript" src="/js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="/js/jquery-ui-1.8.14.js"></script>
        <?php if ($inprogress) { ?>
        <script>
          var UUID = "<?php echo $buildID; ?>"; 
        
          $(document).ready(function() {
            $("#progressbar").progressbar({ value: <?php echo $percentage; ?> });
          });
          
          function bar_update() {
                $.getJSON('ajax.php?uuid='+UUID, function(data) {
                    if(data.status == 1) {
                        percent = Math.floor((data.num/data.den)*100);
                        $("#progressbar").progressbar({ value: percent });
                        $("#percent").html(percent);
                    } else {
                        window.location.reload();
                    }
                });
                setTimeout("bar_update();", 3000);
          }
          
          bar_update();
        </script>
        <?php } ?>
        
    </head>
    <body>
        <div id="container">
            <div id="header"></div>
            <div id="content">
                <div id="main">
                    <div id="status" class="step">
                        <h1><?php echo $titleString; ?></h1>
                        <p>
                            <?php echo $simultaneousString; ?>
                            <?php echo $bres; ?>
                            <div id="progressbar"></div>
                        </p>
                    </div>
                </div>
                <div id="navigation">

                </div>
            </div>
        </div>
        </script>
    </body>
</html>