From f65fd35a12972cbed89e4555be0e2fbe03ca3cdf Mon Sep 17 00:00:00 2001 From: bingo <2547567493@qq.com> Date: Sat, 4 Sep 2021 21:48:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=B7=E6=AD=8C=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ownerindex/images/logo_2.png | Bin 0 -> 2607 bytes ownerindex/js.js | 113 ++++++++++++++++++----------------- 2 files changed, 57 insertions(+), 56 deletions(-) create mode 100644 ownerindex/images/logo_2.png diff --git a/ownerindex/images/logo_2.png b/ownerindex/images/logo_2.png new file mode 100644 index 0000000000000000000000000000000000000000..3fabc6e12d67756f1d9e4bb4b7fbdd236dfd59b8 GIT binary patch literal 2607 zcmV+~3efe5P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf5&!@T5&_cPe*6Fc3B*Z6K~#8N?VSs7 z6!jg)zq|LoT$&Q%TNEtNL_-Bw`lz82nqZaD1gnfDSYVH4<**P#hHWB(ZY4n-Ikx;=r&ms8D9t3x7 zjXVmWAbmyw7zX;39CW^NRFA3S->5<2f`pQDGl2T{Q zBh=M`v8K>0{>1dI1fBz02lPi))xgs&WGyd8a&;`q2 z9$5j~qzmNDM8709LiW21SA0TxL=&Tx;bDE` z0#YV?2gXEejWCnGYv|R7W_Lfb1q;rtG-?`SKPT+Zp9b4DOe@5_(SQ^(*KJM67R=P_ zqfzs)Hb3dhr(nvdj^vif`J`rx#H|Hc^I*nCUw zJ#5+t8nsMHuFyatvIMhS6^){YP3c9WmdSTcKaHdzOK>RYqfzt-sY7YhGI7;5G3Sf| zS%P_TkdsQ-bRUgc7qSE!b<#gBI+KG&tqXYvIbQk(x^Pfl4{Pbj5**gGqfzvjxU)2B zUC0t_wzi>B^lz$bt&9_56xO0juh$3WD(gHJ;Oz*O`i{Lf~|qBSaf|L77Uq%$GeZF)x@!E zi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1&_;Qz$XYw0X% R(p3Ne002ovPDHLkV1h5>@{Irh literal 0 HcmV?d00001 diff --git a/ownerindex/js.js b/ownerindex/js.js index 79932c4..69cb8ef 100644 --- a/ownerindex/js.js +++ b/ownerindex/js.js @@ -181,65 +181,66 @@ $('#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] -//}) -//}) +$(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 != ''){ + debugger; window.open(thisSearch + $('#txt').val()) // $('#txt').val(''); $('#box ul').html('') -- Gitee