coupons.js 477 Bytes
var $ = require('jquery'),
    Hammer = require('yoho.hammer');
var employ;

window.rePosFooter();
$('.yoho-footer').css('border-top', '1px solid #e0e0e0');
$('.employ span').each(function(index) {
    employ = new Hammer($('.employ span')[index]);
    employ.on('tap', function(e) {
        $('.employ-list').addClass('none').eq(index).removeClass('none');
        $('.employ span').removeClass('active').eq(index).addClass('active');
        window.rePosFooter();
    });
});