add file.

This commit is contained in:
jaywcjlove
2016-02-25 00:16:45 +08:00
parent f3f454dab5
commit 50fe4a89ba
8 changed files with 90 additions and 0 deletions

20
js/popup.js Normal file
View File

@@ -0,0 +1,20 @@
$('.warpper a.btn_del_family').on('click',function(){
var self = this
chrome.tabs.getSelected(null, function (tab) {
chrome.tabs.sendRequest(tab.id, {"hello": "btn_del_family"}, function (response) {
$(self).find('span').html(response.msg);
setTimeout(function(){
$(self).find('span').html('');
}, 2000);
});
});
})
$('.warpper a.btn_del_fonts').on('click',function(){
console.log("btn_del_fonts");
chrome.tabs.getSelected(null, function (tab) {
chrome.tabs.sendRequest(tab.id, {"hello": "btn_del_fonts"}, function (response) {
console.log("response",response);
});
});
})