2016-10-25 01:20:58 +08:00
|
|
|
|
$(function () {
|
2016-11-21 00:33:07 +08:00
|
|
|
|
var $iconList = $('#iconTab').find('div.fontawesome-icon-list');
|
2016-11-21 01:53:03 +08:00
|
|
|
|
var $main = $('#main-content');
|
|
|
|
|
var $tl = $('#timeline');
|
|
|
|
|
|
2016-11-21 00:33:07 +08:00
|
|
|
|
$iconList.on('click', 'a', function () {
|
2016-10-25 01:20:58 +08:00
|
|
|
|
window.console.log($(this).children('i').attr('class'));
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
2016-11-21 00:33:07 +08:00
|
|
|
|
$iconList.on('click', 'ul li', function () {
|
2016-10-25 01:20:58 +08:00
|
|
|
|
window.console.log($(this).children('span:first').attr('class'));
|
|
|
|
|
});
|
2016-11-21 00:33:07 +08:00
|
|
|
|
$iconList.find('ul li').addClass('col-md-3 col-sm-4 col-xs-6');
|
|
|
|
|
$iconList.find('div').addClass('col-xs-6');
|
2016-11-21 01:53:03 +08:00
|
|
|
|
|
|
|
|
|
$main.scrollspy({ offset: 150, target: '#timeline' });
|
|
|
|
|
$('a[data-toggle="tab"]').on('show.bs.tab', function (e) {
|
|
|
|
|
if (e.target.href.indexOf("#Glyphicons") > -1) $tl.attr('style', 'display: none;');
|
|
|
|
|
else $tl.removeAttr('style');
|
|
|
|
|
})
|
2016-10-25 01:20:58 +08:00
|
|
|
|
});
|