Authored by uedxwg

update

... ... @@ -33,4 +33,12 @@ navHammer.on('tap', function(e) {
$contents.toggleClass('hide');
$(document).trigger('scroll'); //Trigger lazyLoad
});
$('#nav-tab').on('touchstart', function(e) {
var target = e.target || e.srcElement;
target.className = 'bytouch ' + target.className;
console.log(target);
}).on('touchend touchcancel', function() {
$navs.removeClass('bytouch');
});
\ No newline at end of file
... ...
... ... @@ -373,3 +373,11 @@ $(window).scroll(function() {
//初始请求最新第一页数据
search();
$listNav.on('touchstart', function(e) {
var target = e.target || e.srcElement;
target.parentNode.parentNode.className = 'bytouch ' + target.parentNode.parentNode.className;
}).on('touchend touchcancel', function() {
$listNav.find('li').removeClass('bytouch');
});
... ...
... ... @@ -385,3 +385,11 @@ $(window).scroll(function() {
//初始请求最新第一页数据
search();
$listNav.on('touchstart', function(e) {
var target = e.target || e.srcElement;
target.parentNode.className = 'bytouch ' + target.parentNode.className;
}).on('touchend touchcancel', function() {
$listNav.find('li').removeClass('bytouch');
});
... ...
... ... @@ -25,7 +25,9 @@
color: #000;
}
}
.bytouch{
background:#eee;
}
.star-nav {
border-right: 1px solid #ccc;
}
... ...
... ... @@ -43,7 +43,9 @@
text-align: center;
font-size: 14px;
}
.bytouch{
background:#eee;
}
a {
display: block;
box-sizing: border-box;
... ...
... ... @@ -34,7 +34,7 @@
.list-nav {
border-top:2px solid #fff;
border-bottom:1px solid #e6e6e6;
> li {
float: left;
width: 25%;
... ... @@ -44,7 +44,9 @@
font-size: 14px;
color: #999;
}
.bytouch{
background:#eee;
}
a {
display: inline-block;
box-sizing: border-box;
... ...