// 导航
$('html').click(function(e) {
var val=$(e.target).attr('id');
if(val !="collapsiblenavbar"){
$("#collapsiblenavbar").removeclass("show");
}
})
$(document).ready(function(){
$('.counter-value').each(function(){
$(this).prop('counter',0).animate({
counter: $(this).text()
},{
duration: 3500,
easing: 'swing',
step: function (now){
$(this).text(math.ceil(now));
}
});
});
});
$(function() {
var accordion = function(el, multiple) {
this.el = el || {};
this.multiple = multiple || false;
// variables privadas
var links = this.el.find('.link');
// evento
links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
}
accordion.prototype.dropdown = function(e) {
var $el = e.data.el;
$this = $(this),
$next = $this.next();
$next.slidetoggle();
$this.parent().toggleclass('open');
if (!e.data.multiple) {
$el.find('.submenu').not($next).slideup().parent().removeclass('open');
};
}
var accordion = new accordion($('#accordion'), false);
});