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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<style>
/* position the bars and balls correctly (rotate them and translate them outward)*/
.bar1 {
-moz-transform:rotate(0deg) translate(0, -40px);
-webkit-transform:rotate(0deg) translate(0, -40px);opacity:0.12;
}
.bar2 {
-moz-transform:rotate(45deg) translate(0, -40px);
-webkit-transform:rotate(45deg) translate(0, -40px);opacity:0.25;
}
.bar3 {
-moz-transform:rotate(90deg) translate(0, -40px);
-webkit-transform:rotate(90deg) translate(0, -40px);opacity:0.37;
}
.bar4 {
-moz-transform:rotate(135deg) translate(0, -40px);
-webkit-transform:rotate(135deg) translate(0, -40px);opacity:0.50;
}
.bar5 {
-moz-transform:rotate(180deg) translate(0, -40px);
-webkit-transform:rotate(180deg) translate(0, -40px);opacity:0.62;
}
.bar6 {
-moz-transform:rotate(225deg) translate(0, -40px);
-webkit-transform:rotate(225deg) translate(0, -40px);opacity:0.75;
}
.bar7 {
-moz-transform:rotate(270deg) translate(0, -40px);
-webkit-transform:rotate(270deg) translate(0, -40px);opacity:0.87;
}
.bar8 {
-moz-transform:rotate(315deg) translate(0, -40px);
-webkit-transform:rotate(315deg) translate(0, -40px);opacity:1;
}
#div4 {
position:relative;
width:100px;
height:100px;
-moz-border-radius:100px;
-webkit-border-radius:100px;
margin:25px auto;
-moz-transform:scale(0.5);
-webkit-transform:scale(0.5);
-webkit-animation-name: rotateThis;
-webkit-animation-duration:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:linear;
}
#div4 div {
width:20px;
height:20px;
background:#000;
-moz-border-radius:40px;
-webkit-border-radius:40px;
position:absolute;
left:40px;
top:40px;
}
/* add a shadow to the first */
#div4 div {
-moz-box-shadow:black 0 0 4px;
-webkit-box-shadow:black 0 0 4px;
}
/* uncomment this to use css animation in webkit browsers */
/* @-webkit-keyframes rotateThis {
from {-webkit-transform:scale(0.5) rotate(0deg);}
to {-webkit-transform:scale(0.5) rotate(360deg);}
} */
</style>
<script>
//simple script to rotate all spinners 45 degrees on each tick
//this works differently from the css transforms, which is smooth
var count = 0;
function rotate() {
var elem4 = document.getElementById('div4');
elem4.style.MozTransform = 'scale(0.5) rotate('+count+'deg)';
elem4.style.WebkitTransform = 'scale(0.5) rotate('+count+'deg)';
if (count==360) { count = 0 }
count+=45;
window.setTimeout(rotate, 100);
}
window.setTimeout(rotate, 100);
function updateProgress(p, s, u){
if (p >= 0 && p <= 100)
$("#progressbar").progressbar({ value: p });
else
$("#progressbar").progressbar({ value: 0 });
}
$(document).ready(function() {
$("#progressbar").progressbar({ value: 0 });
});
</script>
<div id="div4">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
<div class="bar4"></div>
<div class="bar5"></div>
<div class="bar6"></div>
<div class="bar7"></div>
<div class="bar8"></div>
</div>
<a href='/fbgui'>back</a>
<div id="progressbar" style="height: 15px;"></div>
<h1>Downloading</h1>
<script>
fbgui.setCallbackOnFinished('foo();');
fbgui.startDownload('http://<?php echo $this->host; ?>/resource/getkernel/alpha/<?php echo $this->alphaid; ?>/file/kernel');
fbgui.startDownload('http://<?php echo $this->host; ?>/resource/getinitramfs/alpha/<?php echo $this->alphaid; ?>/file/initramfs');
fbgui.startDownload('http://<?php echo $this->host; ?>/resource/getkcl/alpha/<?php echo $this->alphaid; ?>/file/kcl');
function foo(){
fbgui.quit();
}
</script>";
|