Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed May 12, 2014
1 parent 6f94a5e commit d095ad3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions js/qiandao/tieba.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@
}
});
}



});
}(window, document, Zepto);
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "签到",
"version": "0.0.4",
"manifest_version": 2,
"description": "访问时如果已登陆则在淘宝,贴吧,点评,一号店,苏宁,虾米等网站自动签到。",
"description": "访问时如果已登陆则在淘宝,百度贴吧,点评,一号店,苏宁,虾米等网站自动签到。",
"homepage_url": "http://fayland.me/",
"icons": {
"16": "icons/icon16.png",
Expand Down
1 change: 1 addition & 0 deletions src/bg/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
if (data.no == 0 || data.no == 1101) {
var today = (new Date()).toDateString();
localStorage.setItem("tieba_" + encodeURIComponent(request.kw) + "_status", today);
localStorage.setItem("tieba_status", today);
}
},
error: function(err) {
Expand Down
4 changes: 4 additions & 0 deletions src/browser_action/browser_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<td>淘宝</td><td id='taobao_status'></td><td id='taobao_points'>-</td>
<td><a href='http://vip.taobao.com/vip_home.htm' target='_blank'>访问</a></td>
</tr>
<tr>
<td>百度贴吧</td><td id='tieba_status'></td><td id='tieba_points'>-</td>
<td><a href='http://tieba.baidu.com/' target='_blank'>访问</a></td>
</tr>
<tr>
<td>一号店</td><td id='yhd_status'></td><td id='yhd_points'>-</td>
<td><a href='http://vip.yhd.com/' target='_blank'>访问</a></td>
Expand Down
6 changes: 4 additions & 2 deletions src/browser_action/browser_action.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

var ele = [
'taobao_status', 'taobao_points',
'yhd_status', 'dianping_status',
'yhd_status',
'dianping_status',
'suning_status', 'suning_points',
'xiami_status'
'xiami_status',
'tieba_status'
];
$.each(ele, function(i, v) {
$('#' + v).text(localStorage.getItem(v));
Expand Down

0 comments on commit d095ad3

Please sign in to comment.