...
|
...
|
@@ -10,6 +10,8 @@ var $footer = $('#yoho-footer'), |
|
|
$yohoPage = $('.yoho-page'),
|
|
|
$header = $('.yoho-header');
|
|
|
|
|
|
var backToTopHammer;
|
|
|
|
|
|
function cookie(name) {
|
|
|
var cookies = document.cookie,
|
|
|
cookieVal,
|
...
|
...
|
@@ -158,6 +160,15 @@ function reMarginFooter(fixedElement) { |
|
|
e.srcEvent.preventDefault();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
if ($op.find('.back-to-top').length > 0) {
|
|
|
backToTopHammer = new Hammer(document.getElementsByClassName('back-to-top')[0]);
|
|
|
backToTopHammer.on('tap', function(e) {
|
|
|
$(window).scrollTop(0);
|
|
|
return false;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$footer.removeClass('hide');
|
|
|
}());
|
|
|
|
...
|
...
|
|