{"size": 1086, "ext": "js", "max_stars_repo_path": "src/toolkit/J6.DevFw.WebResource/JS_Lib/exchange.js", "max_stars_repo_name": "atnet/devfw", "max_stars_repo_stars_event_min_datetime": "2015-03-04T10:05:21.000Z", "max_stars_repo_stars_event_max_datetime": "2015-07-26T02:10:15.000Z", "max_issues_repo_path": "src/toolkit/J6.DevFw.WebResource/JS_Lib/exchange.js", "max_issues_repo_name": "atnet/devfw", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/toolkit/J6.DevFw.WebResource/JS_Lib/exchange.js", "max_forks_repo_name": "atnet/devfw", "max_forks_repo_forks_event_min_datetime": "2015-03-04T10:02:05.000Z", "max_forks_repo_forks_event_max_datetime": "2015-06-09T02:15:26.000Z"}
{"max_stars_count": 13, "max_issues_count": null, "max_forks_count": 11, "avg_line_length": 29.3513513514, "max_line_length": 81, "alphanum_fraction": 0.3508287293}
﻿//交换信息

if (window.j6) {
    jr.event.add(window, 'load', function () {
        jr.each(document.getElementsByClassName('ui-exchange'), function (i, e) {
            var v = null;
            var ev = null;
            var attr = null;
            var exattr = 'exchange';

            switch (e.nodeName) {
                case 'IMG':
                    attr = 'src';
                    break;
                default:
                    attr = 'innerHTML';
                    break;
            }
            if (attr == null) return;
            v = e[attr];
            ev = e.getAttribute(exattr);
            if (ev) {
                jr.event.add(e, 'mouseover', (function (_e, _attr, _v) {
                    return function () {
                        _e[_attr] = _v;
                    };
                })(e, attr, ev));

                jr.event.add(e, 'mouseout', (function (_e, _attr, _v) {
                    return function () {
                        _e[_attr] = _v;
                    };
                })(e, attr, v));
            }
        });
    });
}