{"size": 792, "ext": "js", "max_stars_repo_path": "yyy/sales.soolife.cn/public/mobile/js/investment/tooltips.js", "max_stars_repo_name": "yangyunpu/store", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "yyy/sales.soolife.cn/public/mobile/js/investment/tooltips.js", "max_issues_repo_name": "yangyunpu/store", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "yyy/sales.soolife.cn/public/mobile/js/investment/tooltips.js", "max_forks_repo_name": "yangyunpu/store", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.4, "max_line_length": 64, "alphanum_fraction": 0.6085858586}


function showTooltip(elem, msg) {
    elem.setAttribute('class', 'tooltipped tooltipped-s');
    elem.setAttribute('aria-label', msg);
	elem.addEventListener('mouseleave', function(e) {
        e.currentTarget.setAttribute('class', 'btn');
        e.currentTarget.removeAttribute('aria-label');
    });
}

// Simplistic detection, do not use it in production
function fallbackMessage(action) {
    var actionMsg = '';
    var actionKey = (action === 'cut' ? 'X' : 'C');

    if(/iPhone|iPad/i.test(navigator.userAgent)) {
        actionMsg = 'No support :(';
    }
    else if (/Mac/i.test(navigator.userAgent)) {
        actionMsg = 'Press ⌘-' + actionKey + ' to ' + action;
    }
    else {
        actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action;
    }

    return actionMsg;
}

