diff options
Diffstat (limited to 'module/web/templates/default/base.html')
-rw-r--r-- | module/web/templates/default/base.html | 57 |
1 files changed, 44 insertions, 13 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 5d79e8b6a..ef2685a83 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -6,13 +6,48 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/default.css">
-<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
+<script src="{{ MEDIA_URL }}/js/jquery-1.3.2.min.js"></script>
{% block head %}
{% endblock %}
<title>{% block title %}pyLoad Webinterface{% endblock %}</title>
<script type="text/javascript">
+function LoadJsonToContent(data)
+{
+ JSONDATA = data;
+ $("#speed").text(Math.round(data.speed/0.01)*0.01);
+ $("#aktiv").text(data.queue);
+ $("#aktiv_from").text(data.total);
+
+ /*if( data.pause == false )
+ {
+ $("#action_play").hide();
+ $("#action_pause").show();
+ }
+ else
+ {
+ $("#action_play").show();
+ $("#action_pause").hide();
+ }*/
+}
+
$(document).ready(function(){
- $.getJSON('/json/status', LoadJsonToContent );
+ //$('#action_pause').hide();
+
+
+ /*$("#play").hover(
+ function()
+ { // mouseover
+ $(this).attr("id", "highlight");
+ },
+ function()
+ { // mouseout
+ $(this).attr("id", "");
+ });*/
+ var refreshId = setInterval(function()
+ {
+ $.getJSON('/json/status', LoadJsonToContent );
+ }, 1000);
+
});
</script>
</head>
@@ -63,27 +98,23 @@ $(document).ready(function(){ <div style="clear:both;"></div>
</div>
-{% if perms.pyload.can_change_status %}
<ul id="page-actions2">
- <li><a href="" class="action play" accesskey="o" rel="nofollow">Play</a></li>
- <li><a href="" class="action pause" accesskey="o" rel="nofollow">Pause</a></li>
+ <li id="action_play"><a href="/json/unpause" class="action play" accesskey="o" rel="nofollow">Play</a></li>
+ <li id="action_stop"><a href="" class="action stop" accesskey="o" rel="nofollow">Stop</a></li>
+ <li id="action_stop"><a href="/json/pause" class="action stop" accesskey="o" rel="nofollow" name="Stop after ending last one" alt="Stop after ending last one">SAELO</a></li>
</ul>
-{% endif %}
-{% if perms.pyload.can_see_dl %}
<ul id="page-actions">
- <li><a href="" class="action backlink" accesskey="o" rel="nofollow">Speed: <b id="speed">485</b> kb/s</a></li>
- <li><a href="" class="action cog" accesskey="o" rel="nofollow">Aktiv: <b id="aktiv">1</b> / <b id="aktiv_from">4</b></a></li>
+ <li><a href="" class="action backlink" accesskey="o" rel="nofollow">Speed: <b id="speed">0</b> kb/s</a></li>
+ <li><a href="" class="action cog" accesskey="o" rel="nofollow">Aktiv: <b id="aktiv">0</b> / <b id="aktiv_from">0</b></a></li>
<li><a href="" class="action revisions" accesskey="o" rel="nofollow">Reload page</a></li>
-</ul>
-{% endif %}
+</ul><br />
<div id="body-wrapper" class="dokuwiki">
<div id="content" lang="en" dir="ltr">
-<h1><a name="pyload_download_manager_for_1_click_hoster" id="pyload_download_manager_for_1_click_hoster">pyLoad — Webinterface</a>
-</h1
+<h1>Queue</h1>
{% block statusbar %}
{% endblock %}
|