jt
2023-08-21 e48615ec0a07b304b0287271f7f3833f8587b376
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* To avoid CSS expressions while still supporting IE 7 and IE 6, use this script */
/* The script tag referencing this file must be placed before the ending body tag. */
 
/* Use conditional comments in order to target IE 7 and older:
    <!--[if lt IE 8]><!-->
    <script src="ie7/ie7.js"></script>
    <!--<![endif]-->
*/
 
(function() {
    function addIcon(el, entity) {
        var html = el.innerHTML;
        el.innerHTML = '<span style="font-family: \'mobox-plm\'">' + entity + '</span>' + html;
    }
    var icons = {
        'mobox-plm-bom': '&#xe900;',
        'mobox-plm-bom2': '&#xe901;',
        'mobox-plm-cube': '&#xe902;',
        'mobox-plm-cubes': '&#xe903;',
        'mobox-plm-factory': '&#xe904;',
        'mobox-plm-factory2': '&#xe905;',
        'mobox-plm-gb-part1': '&#xe906;',
        'mobox-plm-tree': '&#xe907;',
        'mobox-plm-tree2': '&#xe908;',
        'mobox-plm-tree3': '&#xe909;',
        'mobox-plm-tree4': '&#xe90a;',
        'mobox-plm-treeitem_add': '&#xe90b;',
        'mobox-plm-workflow': '&#xe90c;',
        '0': 0
        },
        els = document.getElementsByTagName('*'),
        i, c, el;
    for (i = 0; ; i += 1) {
        el = els[i];
        if(!el) {
            break;
        }
        c = el.className;
        c = c.match(/mobox-plm-[^\s'"]+/);
        if (c && icons[c[0]]) {
            addIcon(el, icons[c[0]]);
        }
    }
}());