" : "",
delHTML: (19 == k % that.spearate || k == (that.values.length - 1)) ? '
' : ''
}
});
$("#list_emotion").html('
' + res + '
');
var nav_span = new Array(Math.ceil(that.values.length / that.spearate));
$("#nav_emotion").html('
' + nav_span.join("") + '');
that.bind();
window.swiper = new Swipe(document.getElementById('page_emotion'), {
speed: 500,
callback: function() {
$("#nav_emotion span").removeClass("on").eq(this.index).addClass("on")
}
});
return that
},
bind: function() {
$("#list_emotion").on("click", function(evt) {
if ("SPAN" == evt.target.tagName) {
var val = evt.target.getAttribute("data-key").split('_');
myInput.listen(this, {
keyCode: -10,
srcElement: document.getElementById("form_article"),
value: val[2],
imgUrl: '/public/static/images/arclist/' + val[0] + ".png"
});
this.focus()
}
})
}
}
return new fe()
})();