<commit_before>/**
 * Created by yfyuan on 2017/3/24.
 */
$(function () {
    var el = {
        win: window,
        nav: '.n_fixed_area',
        nBtnN1: '.n_btn_n1',
        nBtnN2: '.n_btn_n2',
        nBtnN3: '.n_btn_n3',
        timeItem: '.timeline-item',
        timeBody: '.timeline-body',
        itemTree: '.n_maptree_item',
        wrapTree: '.n_maptree_wrap',
        itemTreeS: '.n_maptree_item_s'
    };

    var cls = {
        nFixedNav: 'n_fixednav',
        faDown: 'fa-chevron-circle-down',
        faUp: 'fa-chevron-circle-up'
    };
    var status = {
        data: 'unfold',
        fold: '收起',
        unfold: '展开'
    };

    $(el.win).on('scroll', function () {
        if ($(this).scrollTop() >= 106) {
            $(el.nav).addClass(cls.nFixedNav);
        } else {
            $(el.nav).removeClass(cls.nFixedNav);
        }
    });

    $(document).on('click', el.nBtnN1, function (ev) {
        ev.preventDefault();
        var self = $(this),
            selfTimeItem = self.parents(el.timeItem),
            selfTimeBody = selfTimeItem.find(el.timeBody);

        if (!!selfTimeItem.data(status.data)) {
            selfTimeBody.slideDown(function () {
                self.removeClass(cls.faDown)<commit_msg>timeline layout<commit_after>/**
 * Created by yfyuan on 2017/3/24.
 */
$(function () {
    var el = {
        win: window,
        nav: '.n_fixed_area',
        nBtnN1: '.n_btn_n1',
        nBtnN2: '.n_btn_n2',
        nBtnN3: '.n_btn_n3',
        timeItem: '.timeline-item',
        timeBody: '.timeline-body',
        itemTree: '.n_maptree_item',
        wrapTree: '.n_maptree_wrap',
        itemTreeS: '.n_maptree_item_s'
    };

    var cls = {
        nFixedNav: 'n_fixednav',
        faDown: 'fa-chevron-circle-down',
        faUp: 'fa-chevron-circle-up'
    };
    var status = {
        data: 'unfold',
        fold: '收起',
        unfold: '展开'
    };

    // $(el.win).on('scroll', function () {
    //     if ($(this).scrollTop() >= 106) {
    //         $(el.nav).addClass(cls.nFixedNav);
    //     } else {
    //         $(el.nav).removeClass(cls.nFixedNav);
    //     }
    // });

    $(document).on('click', el.nBtnN1, function (ev) {
        ev.preventDefault();
        var self = $(this),
            selfTimeItem = self.parents(el.timeItem),
            selfTimeBody = selfTimeItem.find(el.timeBody);

        if (!!selfTimeItem.data(status.data)) {
            selfTimeBody.slideDown(function () {
                self.removeClass(cls.faDown)
{'fraction_non_alphanumeric': 0.1683286796968488, 'fraction_numerical': 0.013562026326286399, 'mean_word_length': 1.8211473565804275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7310999', 'n_tokens_mistral': 901, 'n_tokens_neox': 879, 'n_words': 138}