JSFiddle - React, Tailwind, and code Playground

by bombo

JavaScript

(function (sitrion, core, $) {
    
    var indicators = {
        None: 0,
        Team: 1,
        Employee: 2
    }
    
    core.Viewer = function (indicator, selector) {
        if (arguments.length === 1) {
            selector = indicator;
            indicator = indicators.None;
        }
    };
    
    core.Viewer.Indicator = indicators;
        
})(Sitrion = window.Sitrion || {}, Core = Sitrion.Core || {}, window.jQuery);