...
|
...
|
@@ -8,7 +8,7 @@ var $searchBox = $('.search-box'), |
|
|
$indexSearch = $('.index-search'),
|
|
|
$indexLogo = $('.index-logo');
|
|
|
|
|
|
$searchBox.find('input').on('focus', function() {
|
|
|
function showBigSearch() {
|
|
|
$indexLogo.css({
|
|
|
width: 0
|
|
|
});
|
...
|
...
|
@@ -19,7 +19,9 @@ $searchBox.find('input').on('focus', function() { |
|
|
width: '15.5rem'
|
|
|
});
|
|
|
$('.clear-text, .no-search').show();
|
|
|
}).on('blur', function() {
|
|
|
}
|
|
|
|
|
|
function hideBigSearch() {
|
|
|
$indexLogo.css({
|
|
|
width: '5.4rem'
|
|
|
});
|
...
|
...
|
@@ -30,12 +32,22 @@ $searchBox.find('input').on('focus', function() { |
|
|
width: '9.6rem'
|
|
|
});
|
|
|
$('.clear-text, .no-search').hide();
|
|
|
}
|
|
|
|
|
|
$searchBox.find('input').on('focus', function() {
|
|
|
showBigSearch();
|
|
|
});
|
|
|
$searchBox.find('.clear-text').click(function() {
|
|
|
$searchBox.find('input').val('').trigger('focus');
|
|
|
|
|
|
$searchBox.find('.clear-text').on('touchend', function() {
|
|
|
$searchBox.find('input').val('');
|
|
|
});
|
|
|
$searchBox.find('.search-icon').click(function() {
|
|
|
$searchBox.find('.search-icon').on('touchend', function() {
|
|
|
$indexSearch.submit();
|
|
|
});
|
|
|
|
|
|
$('.no-search').on('touchend', function() {
|
|
|
$searchBox.find('input').val('');
|
|
|
hideBigSearch();
|
|
|
});
|
|
|
|
|
|
window.rePosFooter(); |
...
|
...
|
|