BootstrapAdmin/Bootstrap.Admin/wwwroot/js/icon.js

23 lines
857 B
JavaScript
Raw Normal View History

2018-06-07 00:45:47 +08:00
$(function () {
$.bc({
url: Menu.iconView,
contentType: 'text/html',
dataType: 'html',
callback: function (result) {
if (result) {
var $html = $('#main-content').html(result);
var $iconList = $('div.fontawesome-icon-list').on('click', 'a', function () {
window.console.log($(this).children('i').attr('class'));
return false;
});
2018-06-07 00:45:47 +08:00
$iconList.find('ul li').addClass('col-xl-2 col-md-3 col-sm-4 col-6');
$iconList.find('div').addClass('col-xl-2 col-6');
2018-06-07 00:45:47 +08:00
$('#main-content').scrollspy({ offset: 150, target: '.fa-nav' });
if (!$.browser.versions.ios) $html.find('.fa-nav .nav').mCustomScrollbar({ theme: 'minimal-dark' });
}
}
});
});