...
|
...
|
@@ -8,7 +8,8 @@ var $ = require('jquery'); |
|
|
var $searchBox = $('.search-box'),
|
|
|
$box = $('.box'),
|
|
|
$indexSearch = $('.index-search'),
|
|
|
$indexLogo = $('.index-logo');
|
|
|
$indexLogo = $('.index-logo'),
|
|
|
$channelLink = $('.index-channel a');
|
|
|
|
|
|
var $search = $searchBox.children('input[type="text"]'),
|
|
|
$cancelSearch = $box.children('.no-search'),
|
...
|
...
|
@@ -41,3 +42,22 @@ $searchBox.children('.clear-text').on('touchstart', function() { |
|
|
$searchBox.children('.search-icon').on('touchstart', function() {
|
|
|
$indexSearch.submit();
|
|
|
});
|
|
|
|
|
|
$channelLink.on('touchstart', function() {
|
|
|
$channelLink.css({
|
|
|
background: '#000',
|
|
|
color: '#fff',
|
|
|
borderColor: '#fff'
|
|
|
});
|
|
|
$(this).css({
|
|
|
background: 'rgba(255, 255, 255, 0.5)',
|
|
|
color: '#000',
|
|
|
borderColor: '#000'
|
|
|
});
|
|
|
}).on('touchend touchcancel', function() {
|
|
|
$(this).css({
|
|
|
background: '#000',
|
|
|
color: '#fff',
|
|
|
borderColor: '#fff'
|
|
|
});
|
|
|
}); |
...
|
...
|
|