Permalink
Browse files

style update

  • Loading branch information...
1 parent 70611e4 commit 08a324eae17d2ad34d1f98fd8255ce317be5f905 Binux committed Feb 12, 2012
Showing with 11 additions and 6 deletions.
  1. +1 −1 main.py
  2. +2 −1 static/css/base.css
  3. +1 −1 static/js/common.js
  4. +2 −2 templates/front.html
  5. +5 −1 templates/lixian.html
View
@@ -38,7 +38,7 @@
help="the interval of getting the task list")
define("downloading_task_check_interval", default=5*60,
help="the interval of getting the downloading task list")
-define("task_list_limit", default=10000,
+define("task_list_limit", default=500,
help="the max limit of get task list each time")
define("always_update_lixian_url", default=False,
help="always update lixian url")
View
@@ -228,7 +228,8 @@ a.cross-cookie { color: #c00 !important; text-decoration: none !important; paddi
#layout-list .paused { background-color: #E6F4FF; }
#layout-list .task-list a { color: #000000; text-decoration: none; }
#layout-list .task-list a:visited { color: #888; }
- #layout-list .task-list a:hover { color: #888; text-decoration: underline; }
+ #layout-list .task-list a:hover,
+ #layout-list .task-list a:hover span { color: #888; text-decoration: underline; }
#layout-list .task-list .tname {
position: relative;
overflow: hidden;
View
@@ -37,7 +37,7 @@ var LE = {
},
default_script: function sample(taskname, links, cookie) {
- var str = "====== sample script ======\n";
+ var str = "====== sample output ======\n== 双击\"自定义\"编辑 ==\n";
str += "taskname = "+taskname+"\n";
str += "escape_command(taskname) = "+escape_command(taskname)+"\n";
str += "cookie = "+cookie+"\n";
@@ -28,9 +28,9 @@
<li><a href="/uploader/{{ current_user['id'] }}">{{ current_user['name'] }}</a></li>
<li><a href="/login?logout=1">登出</a></li>
<li><a href="/add_task" class="iframe add-task">发布资源</a></li>
- <li class="last"><a href="/add_task_anonymous" class="iframe add-task-anonymous">太麻烦了,直接获取离线地址</a></li>
+ <li class="last"><a href="/add_task_anonymous" class="iframe add-task-anonymous">获取离线地址</a></li>
{% else %}
- <li class="last"><a href="/login">登录</a></li>
+ <li class="last"><a href="/login">Google OpenID 登录</a></li>
{% end %}
</ul>
</div>
@@ -25,6 +25,10 @@
$("#link-text").show();
$("#link-text").get(0).style.height=$("#link-text").get(0).scrollHeight+"px"
};
+ LE.hide = function() {
+ $(".file-list").show();
+ $("#link-text").hide();
+ };
LS.share_url = {% raw json_encode(request.protocol+"://"+request.host+"/share/"+str(task.id)) %};
LS.share_title = {% raw json_encode(task.taskname+u" - 迅雷离线下载分享 - "+options.site_name) %};
</script>
@@ -52,7 +56,7 @@
</div>
</div>
<div id="batch-button" class="task-button">
- <div>批量下载</div>
+ <a href="javascript:LE.hide();"><div>批量下载</div></a>
<div id="batch-links" class="more-links" style="display: none;">
<a href="javascript:LE.wget_links();"><div class="task-button">wget</div></a>
<a href="javascript:LE.aria2_links();"><div class="task-button">aria2x10</div></a>

0 comments on commit 08a324e

Please sign in to comment.