mirror of
				https://gitee.com/bitdance-team/chrome-extension
				synced 2025-11-04 20:03:10 +08:00 
			
		
		
		
	翻译按钮点击绑定事件
This commit is contained in:
		@@ -87,6 +87,7 @@ $(function() {
 | 
				
			|||||||
        })
 | 
					        })
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // 番茄钟
 | 
				
			||||||
    $('#clock').click(function() {
 | 
					    $('#clock').click(function() {
 | 
				
			||||||
        $('#pomodoro').fadeIn(500);
 | 
					        $('#pomodoro').fadeIn(500);
 | 
				
			||||||
        $('#article').fadeOut(0);
 | 
					        $('#article').fadeOut(0);
 | 
				
			||||||
@@ -100,4 +101,4 @@ $(function() {
 | 
				
			|||||||
        $('#back').css("display", "none");
 | 
					        $('#back').css("display", "none");
 | 
				
			||||||
        chrome.storage.sync.set({ "clockState": "none" });
 | 
					        chrome.storage.sync.set({ "clockState": "none" });
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -88,12 +88,13 @@ document.getElementById("weatherSite").onclick = function() {
 | 
				
			|||||||
    searchWeatherfn()
 | 
					    searchWeatherfn()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// //天气end
 | 
					//天气end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//翻译
 | 
					//翻译
 | 
				
			||||||
//默认参数
 | 
					//默认参数
 | 
				
			||||||
// document.getElementById("TOtans").onclick = function () {
 | 
					document.getElementById("transform").onclick = function () {
 | 
				
			||||||
//   console.log(chrome.extension.getBackgroundPage())
 | 
					  console.log(chrome.extension.getBackgroundPage())
 | 
				
			||||||
//   chrome.extension.getBackgroundPage().tranBit()
 | 
					  chrome.extension.getBackgroundPage().tranBit()
 | 
				
			||||||
// }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//翻译end
 | 
					//翻译end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user