|
@@ -8,7 +8,8 @@ var $ = require('jquery'); |
|
@@ -8,7 +8,8 @@ var $ = require('jquery'); |
8
|
var $searchBox = $('.search-box'),
|
8
|
var $searchBox = $('.search-box'),
|
9
|
$box = $('.box'),
|
9
|
$box = $('.box'),
|
10
|
$indexSearch = $('.index-search'),
|
10
|
$indexSearch = $('.index-search'),
|
11
|
- $indexLogo = $('.index-logo');
|
11
|
+ $indexLogo = $('.index-logo'),
|
|
|
12
|
+ $channelLink = $('.index-channel a');
|
12
|
|
13
|
|
13
|
var $search = $searchBox.children('input[type="text"]'),
|
14
|
var $search = $searchBox.children('input[type="text"]'),
|
14
|
$cancelSearch = $box.children('.no-search'),
|
15
|
$cancelSearch = $box.children('.no-search'),
|
|
@@ -42,6 +43,25 @@ $searchBox.children('.search-icon').on('touchstart', function() { |
|
@@ -42,6 +43,25 @@ $searchBox.children('.search-icon').on('touchstart', function() { |
42
|
$indexSearch.submit();
|
43
|
$indexSearch.submit();
|
43
|
});
|
44
|
});
|
44
|
|
45
|
|
|
|
46
|
+$channelLink.on('touchstart', function() {
|
|
|
47
|
+ $channelLink.css({
|
|
|
48
|
+ background: '#000',
|
|
|
49
|
+ color: '#fff',
|
|
|
50
|
+ borderColor: '#fff'
|
|
|
51
|
+ });
|
|
|
52
|
+ $(this).css({
|
|
|
53
|
+ background: 'rgba(255, 255, 255, 0.5)',
|
|
|
54
|
+ color: '#000',
|
|
|
55
|
+ borderColor: '#000'
|
|
|
56
|
+ });
|
|
|
57
|
+}).on('touchend touchcancel', function() {
|
|
|
58
|
+ $(this).css({
|
|
|
59
|
+ background: '#000',
|
|
|
60
|
+ color: '#fff',
|
|
|
61
|
+ borderColor: '#fff'
|
|
|
62
|
+ });
|
|
|
63
|
+});
|
|
|
64
|
+
|
45
|
$('.index-channel img').on('load error', function() {
|
65
|
$('.index-channel img').on('load error', function() {
|
46
|
window.rePosFooter && window.rePosFooter();
|
66
|
window.rePosFooter && window.rePosFooter();
|
47
|
}); |
67
|
}); |