diff options
author | mkaay <mkaay@mkaay.de> | 2010-01-27 20:05:23 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-01-27 20:05:23 +0100 |
commit | 6d1ec2baa795b0d90d5da33b0447120b50f10c17 (patch) | |
tree | 5fceb5474c83e709fda396f70121a6923b0be106 /module/web/static/default | |
parent | First Version, works but doesn't reconnect (diff) | |
parent | fix (diff) | |
download | pyload-6d1ec2baa795b0d90d5da33b0447120b50f10c17.tar.xz |
merge
Diffstat (limited to 'module/web/static/default')
28 files changed, 0 insertions, 312 deletions
diff --git a/module/web/static/default/Button-Add-grey.png b/module/web/static/default/Button-Add-grey.png Binary files differdeleted file mode 100644 index 6659e230e..000000000 --- a/module/web/static/default/Button-Add-grey.png +++ /dev/null diff --git a/module/web/static/default/Button-Add.png b/module/web/static/default/Button-Add.png Binary files differdeleted file mode 100644 index 602da4131..000000000 --- a/module/web/static/default/Button-Add.png +++ /dev/null diff --git a/module/web/static/default/Button-Pause-grey.png b/module/web/static/default/Button-Pause-grey.png Binary files differdeleted file mode 100644 index d1017e974..000000000 --- a/module/web/static/default/Button-Pause-grey.png +++ /dev/null diff --git a/module/web/static/default/Button-Pause.png b/module/web/static/default/Button-Pause.png Binary files differdeleted file mode 100644 index 68f3ffc3a..000000000 --- a/module/web/static/default/Button-Pause.png +++ /dev/null diff --git a/module/web/static/default/Button-Play-grey.png b/module/web/static/default/Button-Play-grey.png Binary files differdeleted file mode 100644 index 9f44c2289..000000000 --- a/module/web/static/default/Button-Play-grey.png +++ /dev/null diff --git a/module/web/static/default/Button-Play.png b/module/web/static/default/Button-Play.png Binary files differdeleted file mode 100644 index 1ce1ed913..000000000 --- a/module/web/static/default/Button-Play.png +++ /dev/null diff --git a/module/web/static/default/head-login.png b/module/web/static/default/head-login.png Binary files differdeleted file mode 100644 index b59b7cbbf..000000000 --- a/module/web/static/default/head-login.png +++ /dev/null diff --git a/module/web/static/default/head-menu-development.png b/module/web/static/default/head-menu-development.png Binary files differdeleted file mode 100644 index 8ef08e2e5..000000000 --- a/module/web/static/default/head-menu-development.png +++ /dev/null diff --git a/module/web/static/default/head-menu-download.png b/module/web/static/default/head-menu-download.png Binary files differdeleted file mode 100644 index 98c5da9db..000000000 --- a/module/web/static/default/head-menu-download.png +++ /dev/null diff --git a/module/web/static/default/head-menu-home.png b/module/web/static/default/head-menu-home.png Binary files differdeleted file mode 100644 index 9d62109aa..000000000 --- a/module/web/static/default/head-menu-home.png +++ /dev/null diff --git a/module/web/static/default/head-menu-index.png b/module/web/static/default/head-menu-index.png Binary files differdeleted file mode 100644 index 44d631064..000000000 --- a/module/web/static/default/head-menu-index.png +++ /dev/null diff --git a/module/web/static/default/head-menu-news.png b/module/web/static/default/head-menu-news.png Binary files differdeleted file mode 100644 index 43950ebc9..000000000 --- a/module/web/static/default/head-menu-news.png +++ /dev/null diff --git a/module/web/static/default/head-menu-recent.png b/module/web/static/default/head-menu-recent.png Binary files differdeleted file mode 100644 index fc9b0497f..000000000 --- a/module/web/static/default/head-menu-recent.png +++ /dev/null diff --git a/module/web/static/default/head-menu-wiki.png b/module/web/static/default/head-menu-wiki.png Binary files differdeleted file mode 100644 index 07cf0102d..000000000 --- a/module/web/static/default/head-menu-wiki.png +++ /dev/null diff --git a/module/web/static/default/head-search-noshadow.png b/module/web/static/default/head-search-noshadow.png Binary files differdeleted file mode 100644 index aafdae015..000000000 --- a/module/web/static/default/head-search-noshadow.png +++ /dev/null diff --git a/module/web/static/default/head_bg1.png b/module/web/static/default/head_bg1.png Binary files differdeleted file mode 100644 index f2848c3cc..000000000 --- a/module/web/static/default/head_bg1.png +++ /dev/null diff --git a/module/web/static/default/home.js b/module/web/static/default/home.js deleted file mode 100644 index 0d74aa17a..000000000 --- a/module/web/static/default/home.js +++ /dev/null @@ -1,212 +0,0 @@ -var dwProgressBar = new Class({ - - //implements - Implements: [Options], - - //options - options: { - container: $$('body')[0], - boxID:'', - percentageID:'', - displayID:'', - startPercentage: 0, - displayText: false, - speed:10 - }, - - //initialization - initialize: function(options) { - //set options - this.setOptions(options); - //create elements - this.createElements(); - }, - - //creates the box and percentage elements - createElements: function() { - var box = new Element('div', { - id:this.options.boxID + this.options.id, - 'class' : this.options.boxID - }); - var perc = new Element('div', { - id:this.options.percentageID + this.options.id, - 'style':'width:0px;', - 'class' : this.options.percentageID - }); - perc.inject(box); - box.inject(this.options.container); - if(this.options.displayText) { - var text = new Element('div', { - id:this.options.displayID + this.options.id, - 'class' : this.options.displayID - }); - text.inject(this.options.container); - } - this.set(this.options.startPercentage); - }, - - //calculates width in pixels from percentage - calculate: function(percentage) { - return (document.id(this.options.boxID+ this.options.id).getStyle('width').replace('px','') * (percentage / 100)).toInt(); - }, - - //animates the change in percentage - animate: function(to) { - document.id(this.options.percentageID+ this.options.id).set('morph', { - duration: this.options.speed, - link:'cancel' - }).morph({ - width:this.calculate(to.toInt()) - }); - if(this.options.displayText) { - document.id(this.options.displayID+ this.options.id).set('text', to.toInt() + '%'); - } - }, - - //sets the percentage from its current state to desired percentage - set: function(to) { - this.animate(to); - } - -}); - - -req = new Request.JSON({ - onSuccess: renderTable, - method: 'get', - url: '/json/links', - initialDelay: 0, - delay: 1000, - limit: 20000 -}); - - -var dls = [] -var pbs = [] - -function renderTable(data){ - - data.downloads.each(function(dl){ - - if (dls.contains(dl.id)){ - - var div = $('dl'+dl.id) - - pbs[dl.id].set(dl.percent) - - div.getChildren("b")[0].textContent = dl.name - - if (dl.status == "downloading"){ - - size = Math.round((dl.size - dl.kbleft) / 1024) + "/" + Math.round(dl.size / 1024) + " MB" - speed = Math.round(dl.speed) + " kb/s" - eta = dl.eta - - - }else if (dl.status == "waiting"){ - - size = "waiting "+ dl.wait - speed = "" - eta = "" - - } - div.getChildren(".dlsize")[0].textContent = size - div.getChildren(".dlspeed")[0].textContent = speed - div.getChildren(".dltime")[0].textContent = eta - - }else{ - - dls.push(dl.id) - - container = $("dlcontainer") - - dldiv = new Element('div', { - 'id' : 'dl'+dl.id, - 'class': 'download', - 'styles': { - 'display': 'None' - } - }) - - new Element('p').inject(dldiv) - - new Element('b', { - 'html': dl.name - }).inject(dldiv) - - new Element('br').inject(dldiv) - - dldiv.inject(container) - - pbs[dl.id] = new dwProgressBar({ - container: $(dldiv), - startPercentage: 0, - speed: 1000, - id: dl.id, - boxID: 'box', - percentageID: 'perc', - displayText: true, - displayID: 'boxtext' - }); - - new Element('div', { - 'class': 'dlsize', - 'html': Math.round((dl.size - dl.kbleft) / 1024) + "/" + Math.round(dl.size / 1024) + " MB" - }).inject(dldiv) - - new Element('div', { - 'class': 'dlspeed', - 'html': Math.round(dl.speed) + " kb/s" - }).inject(dldiv) - - new Element('div', { - 'class': 'dltime', - 'html': dl.eta - }).inject(dldiv) - - //dldiv.dissolve({duration : 0}) - - dldiv.reveal() - - } - }) - - dls.each(function(id, index){ - - if (data.ids.contains(id)){ - - }else{ - - //$("dl"+id).reveal() - dls.erase(id) - $('dl'+id).nix() - - } - - }) - -} - -window.addEvent('domready', function(){ - - /* -//create the progress bar for example 1 -pb = new dwProgressBar({ - container: $$('.level1 p')[0], - startPercentage: 25, - speed: 1000, - id: 1, - boxID: 'box', - percentageID: 'perc', - displayText: true, - displayID: 'boxtext' -}); -*/ - - req.startTimer(); - - -}); - - - diff --git a/module/web/static/default/page-tools-backlinks.png b/module/web/static/default/page-tools-backlinks.png Binary files differdeleted file mode 100644 index 3eb6a9ce3..000000000 --- a/module/web/static/default/page-tools-backlinks.png +++ /dev/null diff --git a/module/web/static/default/page-tools-edit.png b/module/web/static/default/page-tools-edit.png Binary files differdeleted file mode 100644 index 188e1c12b..000000000 --- a/module/web/static/default/page-tools-edit.png +++ /dev/null diff --git a/module/web/static/default/page-tools-revisions.png b/module/web/static/default/page-tools-revisions.png Binary files differdeleted file mode 100644 index 5c3b8587f..000000000 --- a/module/web/static/default/page-tools-revisions.png +++ /dev/null diff --git a/module/web/static/default/progress-bar-back.gif b/module/web/static/default/progress-bar-back.gif Binary files differdeleted file mode 100644 index 0c8f68211..000000000 --- a/module/web/static/default/progress-bar-back.gif +++ /dev/null diff --git a/module/web/static/default/progress-bar.gif b/module/web/static/default/progress-bar.gif Binary files differdeleted file mode 100644 index 746f77175..000000000 --- a/module/web/static/default/progress-bar.gif +++ /dev/null diff --git a/module/web/static/default/pyload-logo-edited3.5-new-font-small.png b/module/web/static/default/pyload-logo-edited3.5-new-font-small.png Binary files differdeleted file mode 100644 index 2443cd8b1..000000000 --- a/module/web/static/default/pyload-logo-edited3.5-new-font-small.png +++ /dev/null diff --git a/module/web/static/default/status.js b/module/web/static/default/status.js deleted file mode 100644 index 31a4e0032..000000000 --- a/module/web/static/default/status.js +++ /dev/null @@ -1,100 +0,0 @@ -/* hover! */ -Element.implement({ - 'hover': function(fn1,fn2) { - return this.addEvents({ - 'mouseenter': function(e) { - fn1.attempt(e,this); - }, - 'mouseleave': function(e) { - fn2.attempt(e,this); - } - }) - } -}); - -function updateStatus(data){ - - document.id("status").textContent = "Status: "+ data.status; - document.id("speed").textContent = "Speed: "+ data.speed +" kb/s"; - document.id("queue").textContent = "Files in queue: "+ data.queue; - -} - - -status_req = new Request.JSON({ - onSuccess: updateStatus, - method: 'get', - url: '/json/status', - initialDelay: 0, - delay: 2000, - limit: 20000 -}); - -window.addEvent('domready', function(){ - - status_req.startTimer(); - - - document.id("btAdd").addEvent("click", function(e){ - - new Request({ - method: 'post', - url: '/json/addlinks', - onSuccess: function(){ - document.id('linkarea').value = "" - } - }).send('links='+document.id('linkarea').value) - - - }) - - $$('.statusbutton').each(function(item){ - - item.hover(function(e){ - this.tween('opacity',1) - },function(e){ - this.tween('opacity',0.01) - } - ) - }) - - fx_reveal = new Fx.Reveal($('addlinks')); - //fx_reveal.dissolve() - - - $$('#addlinks .closeSticky').each(function(el){ - - el.addEvent('click',function(e){ - - fx_reveal.dissolve(); - - }); - - }); - - $$('.statusbutton')[2].addEvent('click',function(e){ - - $('addlinks').setStyle('top', e.page.y + 5) - $('addlinks').setStyle('left', e.page.x + 5) - - fx_reveal.reveal() - - }); - - $$('.statusbutton')[0].addEvent('click', function(e){ - - new Request({ - 'url' : '/json/play', - 'method' : 'get' - }).send() - }) - - $$('.statusbutton')[1].addEvent('click', function(e){ - - new Request({ - 'url' : '/json/pause', - 'method' : 'get' - }).send() - }) - -});
\ No newline at end of file diff --git a/module/web/static/default/tab-background.png b/module/web/static/default/tab-background.png Binary files differdeleted file mode 100644 index 29a5d1991..000000000 --- a/module/web/static/default/tab-background.png +++ /dev/null diff --git a/module/web/static/default/tabs-border-bottom.png b/module/web/static/default/tabs-border-bottom.png Binary files differdeleted file mode 100644 index 02440f428..000000000 --- a/module/web/static/default/tabs-border-bottom.png +++ /dev/null diff --git a/module/web/static/default/user-actions-logout.png b/module/web/static/default/user-actions-logout.png Binary files differdeleted file mode 100644 index 0010931e2..000000000 --- a/module/web/static/default/user-actions-logout.png +++ /dev/null diff --git a/module/web/static/default/user-actions-profile.png b/module/web/static/default/user-actions-profile.png Binary files differdeleted file mode 100644 index 46573fff6..000000000 --- a/module/web/static/default/user-actions-profile.png +++ /dev/null |