summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-05 19:55:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-05 19:55:13 +0200
commit9e5f89da147989697e319988c209511c4f700b95 (patch)
treed7316d0834a389e719c5fb5b69be1e3318aba76d /module/web/templates
parenthook config interface (diff)
downloadpyload-9e5f89da147989697e319988c209511c4f700b95.tar.xz
gregy's opera fix
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default/home.html24
1 files changed, 19 insertions, 5 deletions
diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html
index 0d987bd6a..6d77b4619 100644
--- a/module/web/templates/default/home.html
+++ b/module/web/templates/default/home.html
@@ -6,6 +6,7 @@
<script type="text/javascript">
var em;
+var operafix = (navigator.userAgent.toLowerCase().search("opera") >= 0);
document.addEvent("domready", function(){
em = new EntryManager();
@@ -157,7 +158,8 @@ var LinkEntry = new Class({
}
},
initEffects: function(){
- this.bar = new Fx.Morph(this.elements.pgb, {unit: '%', duration: 5000, link: 'link', fps:30});
+ if(!operafix)
+ this.bar = new Fx.Morph(this.elements.pgb, {unit: '%', duration: 5000, link: 'link', fps:30});
this.fade = new Fx.Tween(this.elements.tr);
this.fadeBar = new Fx.Tween(this.elements.pgbTr);
@@ -172,10 +174,22 @@ var LinkEntry = new Class({
this.elements.info.set('text', item.info);
this.elements.kbleft.set('text', item.format_size);
this.elements.percent.set('text', item.percent+ '% / '+ HumanFileSize((item.size-item.kbleft) / (1024)));
- this.bar.start({
- 'width': item.percent,
- 'background-color': [Math.round(120/100*item.percent),100,100].hsbToRgb().rgbToHex()
- });
+ if(!operafix)
+ {
+ this.bar.start({
+ 'width': item.percent,
+ 'background-color': [Math.round(120/100*item.percent),100,100].hsbToRgb().rgbToHex()
+ });
+ }
+ else
+ {
+ this.elements.pgb.set(
+ 'styles', {
+ 'height': '4px',
+ 'width': item.percent+'%',
+ 'background-color': [Math.round(120/100*item.percent),100,100].hsbToRgb().rgbToHex(),
+ });
+ }
},
remove: function(){
this.fade.start('opacity',0).chain(function(){this.elements.tr.dispose();}.bind(this));