var helangSearch = {
els: {},
searchIndex: 0,
hot: {
color: ['#ff2c00', '#ff5a00', '#ff8105', '#fd9a15', '#dfad1c', '#6bc211', '#3cc71e', '#3cbe85', '#51b2ef', '#53b0ff'],
list: ['木子的忧伤', 'macUI', '猿码云', 'apecloud.cn', 'win10ui', 'https://github.com/1099438829/macUI']
},
searchObj : [
//废弃百度,百度不允许iframe
// {
// logo : 'img/baidu.png',
// ico : 'img/ico_baidu.png',
// title : '百度',
// url : 'https://www.baidu.com/s?wd=',
// },
{
logo : 'img/sougou.png',
ico : 'img/ico_sougou.png',
title : '搜狗',
url : 'https://www.sogou.com/web?query=',
},
{
logo : 'img/360.png',
ico : 'img/ico_360.ico',
title : '360',
url : 'https://www.so.com/s?ie=utf-8&q=',
},
{
logo : 'img/bing.png',
ico : 'img/ico_bing.png',
title : '必应',
url : 'https://cn.bing.com/search?q=',
},
{
logo : 'img/google.png',
ico : 'img/ico_google.ico',
title : '谷歌',
url : 'https://www.google.com/search?q=',
},
],
init: function() {
var _this = this;
this.els = {
pickerBtn: $(".picker"),
pickerList: $(".picker-list"),
logo: $(".logo"),
hotList: $(".hot-list"),
input: $("#search-input"),
button: $(".search")
};
function renderHotList(){
_this.els.hotList.html(function() {
var str = '';
$.each(_this.hot.list, function(index, item) {
str += '' + '