...
|
...
|
@@ -11,6 +11,8 @@ var $input = $('#search-input input'); |
|
|
|
|
|
var $clear = $('#search-input .clear-input');
|
|
|
|
|
|
var $icon = $('.search-icon');
|
|
|
|
|
|
var $form = $('#search-form');
|
|
|
|
|
|
var $history = $('.history');
|
...
|
...
|
@@ -32,8 +34,10 @@ chHammer.on('tap', function() { |
|
|
|
|
|
$input.on('input', function() {
|
|
|
if ($input.val() === '') {
|
|
|
$icon.css('color','#b2b2b2');
|
|
|
$clear.addClass('hide');
|
|
|
} else {
|
|
|
$icon.css('color','#000');
|
|
|
$clear.removeClass('hide');
|
|
|
}
|
|
|
});
|
...
|
...
|
|