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 <...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.