coupons.js
641 Bytes
var $ = require('jquery'),
Hammer = require('yoho.hammer'),
ellipsis = require('mlellipsis');
var employ;
ellipsis.init();
setTimeout(function() {
$('.coupon-name').each(function() {
this.mlellipsis(2);
});
}, 0);
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();
});
});