diff --git a/ownerindex/images/logo_2.png b/ownerindex/images/logo_2.png
new file mode 100644
index 0000000000000000000000000000000000000000..3fabc6e12d67756f1d9e4bb4b7fbdd236dfd59b8
Binary files /dev/null and b/ownerindex/images/logo_2.png differ
diff --git a/ownerindex/js.js b/ownerindex/js.js
index 8db4d0696d762041d5dc6d64132ecde1539b4911..ba62a0230f61d40170cc1f5c58838d6da6decf48 100644
--- a/ownerindex/js.js
+++ b/ownerindex/js.js
@@ -183,69 +183,70 @@ $('#txt').keydown(function (ev) {
}
})
-//$(function(){
-////$('#box ul').html() === '' ? $('#box').css('height','0px') : $('#box').css('height','auto');
-//var search = {
-// data: [{
-// name: '百度',
-// img: '/images/logo.jpg',
-// url: 'https://www.baidu.com/s?wd='
-// }, {
-// name: '谷歌',
-// img: '/images/logo_2.jpg',
-// url: 'https://www.google.com/search?q='
-// }, {
-// name: '必应',
-// img: '/images/logo_3.jpg',
-// url: 'https://cn.bing.com/search?q='
-// }, {
-// name: '好搜',
-// img: '/images/logo_4.jpg',
-// url: 'https://www.so.com/s?q='
-// }, {
-// name: '搜狗',
-// img: '/images/logo_5.jpg',
-// url: 'https://www.sogou.com/web?query='
-// }]
-//}
-//for(var i = 0; i < search.data.length; i++){
-// var addList = '
' + search.data[i].name + ''
-// $('.search-engine-list').append(addList);
-//}
-//
-//$('.search-icon, .search-engine').hover(function() {
-// $('.search-engine').css('display', 'block')
-//}, function() {
-// $('.search-engine').css('display', 'none')
-//});
-//
-//$('#hot-btn').on('click', function() {
-// $(this).toggleClass('off');
-// if(storage.stopHot == 'true'){
-// storage.stopHot = false
-// }else{
-// storage.stopHot = true
-// }
-// console.log(storage.stopHot)
-//});
-//
-//$('.search-engine-list li').click(function() {
-// var _index = $(this).index();
-// var thisImg = $(this).children().attr('src');
-// $('.search-icon').attr('src', thisImg)
-// thisSearch = search.data[_index].url;
-// $('.search-engine').css('display', 'none')
-//
-// storage.searchEngine = [thisSearch, thisImg]
-//})
-//})
-$("#search-btn").click(function () {
+$(function(){
+$('#box ul').html() === '' ? $('#box').css('height','0px') : $('#box').css('height','auto');
+var search = {
+ data: [{
+ name: '百度',
+ img: './images/logo.jpg',
+ url: 'https://www.baidu.com/s?wd='
+ }, {
+ name: '谷歌',
+ img: './images/logo_2.png',
+ url: 'https://www.google.com/search?q='
+ }/*, {
+ name: '必应',
+ img: './images/logo_3.jpg',
+ url: 'https://cn.bing.com/search?q='
+ }, {
+ name: '好搜',
+ img: './images/logo_4.jpg',
+ url: 'https://www.so.com/s?q='
+ }, {
+ name: '搜狗',
+ img: './images/logo_5.jpg',
+ url: 'https://www.sogou.com/web?query='
+ }*/]
+}
+for(var i = 0; i < search.data.length; i++){
+ var addList = '
' + search.data[i].name + ''
+ $('.search-engine-list').append(addList);
+}
+
+$('.search-icon, .search-engine').hover(function() {
+ $('.search-engine').css('display', 'block')
+}, function() {
+ $('.search-engine').css('display', 'none')
+});
+
+$('#hot-btn').on('click', function() {
+ $(this).toggleClass('off');
+ if(storage.stopHot == 'true'){
+ storage.stopHot = false
+ }else{
+ storage.stopHot = true
+ }
+ console.log(storage.stopHot)
+});
+
+$('.search-engine-list li').click(function() {
+ var _index = $(this).index();
+ var thisImg = $(this).children().attr('src');
+ $('.search-icon').attr('src', thisImg)
+ thisSearch = search.data[_index].url;
+ $('.search-engine').css('display', 'none')
+
+ storage.searchEngine = [thisSearch, thisImg]
+})
+})
+$("#search-btn").click(function(){
var textValue = $('#txt').val();
- if (textValue != '') {
- window.open(thisSearch + $('#txt').val())
- // $('#txt').val('');
- $('#box ul').html('')
- } else {
+ if(textValue != ''){
+ debugger;
+ window.open(thisSearch + $('#txt').val())
+ // $('#txt').val('');
+ $('#box ul').html('')
+ }else{
new $.zui.Messager('请输入关键字', {
icon: 'bell', // 定义消息图标
type: 'danger',