JSFiddle - React, Tailwind, and code Playground

by Jeremy Bolanos

JavaScript

var userID = $.cookie('rttwebuserid'); // get userID from the login generated cookie
var dayLightSavings = true; // set to true or false to adjust local time
var activeState = {}; // currently running session active data
var activeProfile = {}; // currently active profile
activeProfile.zoom = {}; // copy of data for graphs used when rendering zoom
var plotCache = {}; // USED TO STORE THE CURRENT SET OF CHART VALUES
plotCache.plots = {}; // USED TO STORE THE SELECTED PLOTS
plotCache.kpi = {}; // Used to store the KPIs

function newDiv() {
    return document.createElement('div');
}

function newElement(ele, id, className) {
    var element = document.createElement(ele);
    if (id) element.id = id;
    if (className) element.className = className;
    return element;
}

function newTextNode(string) {
    return document.createTextNode(string);
}

/**
 * Create support ticket
 */
function createSupportTicket() {
    var mSupportUrl = "http://nssportal.vzwnet.com/nssportal/index.php?option=com_nss_helpdesk&Itemid=114&case_type=Problem" +
        "&user=" + userID + // USWIN ID
    "&application=REAL TIME TOOL (RTT)-AGGREGATION PORTAL" + // Application
    "&component=APPLICATION" + // Component
    "&summary=Market: " + // Summary
    "&bdriver=Customer Satisfaction" + // Business Driver
    "&r_priority=low" + // Request Priority
    "&cus_serv=Yes" + // Does this affect ability to support the network or customer service
    "&security=No" + // Does this affect security
    "&compliance=No" + // Does this affect government compliance
    "&eff=No"; // Does this affect ability to use the application

    window.open(mSupportUrl);
    return;

}

/** IE8 Fix for indexOf **/
if (!Array.prototype.indexOf) {
    Array.prototype.indexOf = function (elt /*, from*/ ) {
        var len = this.length >>> 0;
        var from = Number(arguments[1]) || 0;
        from = (from < 0) ? Math.ceil(from) : Math.floor(from);
        if (from < 0) from += len;
        for (; from <...