// //document.querySelectorAll('.login-item').removeAttribute('style'); var lockedError=''; var secureLogin = true; $(document).ready(function(){ if (top.location.href.indexOf('Pittsburgh') != -1) { top.location = '/i7:Web,Cisco,CCHD,secureLogin~~'; } init(); // password reset from IW homepage if (window.location.hash.indexOf('useReset') !== -1 ) { pwdRec(); } $('#normalLoginClick').click(function() { $('#normalLogin').removeClass('hideLogin'); $('#pingFederateLogin').addClass('hideLogin'); return false; }); function checkEmpty( inputVal ){ return ! inputVal.replace(/\s/g, '') ? true : false; } $('[name="login"]').bind('submit', function(){ if ( checkEmpty( $('[name="_userid"]').val() ) || checkEmpty( $('[name="_passwd"]').val() ) ){ $('[name="_userid"]').focus(); return false; } }); // function manageFocus($input, name, $parent){ var focusClass = name+'-focus'; $input.bind('focus', function(){ $parent.addClass(focusClass); }).bind('blur', function() { if (!$input.val().length) { $parent.removeClass(focusClass); }else{ $parent.addClass(focusClass); } }); } if ( !hasPlaceholder() ) { $('body').addClass('no-placeholder'); var $form = $('form[name="login"]'); var $user = $form.find('[name="_userid"]'); var $password = $form.find('[name="_passwd"]'); $user.before(''); $password.before(''); manageFocus($user, 'username', $form); manageFocus($password, 'password', $form); } $('#overlay').click(function(){ if ( typeof logAnyWay === 'function' ){ logAnyWay(); } }); }); // function hasPlaceholder(){ return !!( 'placeholder' in ( document.createElement('input') ) && 'placeholder' in ( document.createElement('textarea') ) ); } function init() { // var enables = ';ccrsvm;usePC;Weather;Wayfinding;Powerpoint;SocialMedia;htmlToPNG;ApproveITHD;ControlITHD;ccrsma;use4310G;use4400G;exchangeMeetings;useAndroidMiniPC;dynamicXML;RedCoreBasicDaily;RedCoreDailyPlus;RedCore;RedCoreLegacy;useCanvasResolution;LDAP;ContentPlan;Globalcast;useIframe;useLinux;useSSSP;CounterModule;channelChanger;Directory;Event_Directory;feedBuilder;AccuWeather;ModuleInstagram;onDemandContent;RemoteEditor;RssPublisher;statsDashboard;SysDiaNotices;Twitter;htmlPRO;useWindowsApp;WebCache;useMediaUnLimit;useBrightsign;useLGwebOS;useTizen;FeedSubscriber;useVideoLayering;modeCCHD;Apps;useBrightsign;useLGwebOS;useLinux;useSSSP;useTizen;useWindowsApp;'; var fields = '{"advertisements":"https://cchdrsrc.channelshd.com/cchd/loginImages/OldCCHDLogin-TrainingAd.png;https://www.industryweapon.com/training/;https://cchdrsrc.channelshd.com/cchd/loginImages/OldCCHDLogin-TrainingAd.png;https://www.industryweapon.com/training/;https://cchdrsrc.channelshd.com/cchd/loginImages/OldCCHDLogin-TrainingAd.png;https://www.industryweapon.com/training/", "currentversion":"23.1.002", "endcap":"none"}'; var accountName = 'uic'; // var currentURL = window.location; var now = new Date(); var text = []; if(secureLogin && checkContains(currentURL)) { window.location = 'https://' + accountName + '.channelshd.com/i7:Web,Cisco,CCHD,secureLogin'; } $('#copyRight').html('Copyright © 2000-'+now.getFullYear()+' Industry Weapon, Inc. All rights reserved. Privacy Policy'); alerts(enables); checkBrowserVersion(); }//end function checkContains(x) { x = x+''; if(x.indexOf('https')!=-1) { return false; } else { return true; } }//end function alerts(enables) { // var rawVal = parseInt('300', 10); var loginLockoutTime = rawVal/60; // if(enables.indexOf(';expired;')!=-1) { var popUpText ='Your account subscription has expired. Please contact Industry Weapon at 1-877-344-8450 for details.'; document.getElementById('overlay').style.display='block'; document.getElementById('overlayTop').style.display='block'; } else { if(loginError) { // function defined in HTML page detailLoginAttempt(); var popUpText ='Sorry! The e-mail and/or password you entered is invalid.

Passwords are case sensitive. Check your login information and try again or click here to reset your password.'; document.getElementById('overlay').style.display='block'; document.getElementById('overlayTop').style.display='block'; } else { if(lockedError) { var popUpText ='Sorry! Your account has been temporarily locked due to exceeding the allowed number of login attempts.' + ' You may try again in '+loginLockoutTime+ ' minutes. You may also contact your CommandCenterHD administrator to unlock your account.'; document.getElementById('overlay').style.display='block'; document.getElementById('overlayTop').style.display='block'; } else { document.getElementById('overlay').style.display='none'; document.getElementById('overlayTop').style.display='none'; } } } $('#overlayTop').html('
CommandCenterHD'+popUpText+'
'); }//end function pwdRec() { var popUpText ='

Having trouble logging in?

Passwords are case sensitive, so ensure you don\'t have caps lock enabled.

Your account may be temporarily disabled from too many failed login attempts.

ContinueCancel'; var $overlay = $('#overlayTop'); $overlay.html('
CommandCenterHD'+popUpText+'
'); document.getElementById('overlay').style.display='block'; $overlay.show(); $('#Rec_username').focus(); }//end function recoverPassword() { var url ='/i7:Web,Cisco,CCHD,ajaxRecovery~~'; var parameters = 'userid='+document.getElementById('Rec_username').value; var responseText = makeCall(url,parameters); var $overlay = $('#overlayTop'); $overlay.html('
CommandCenterHD'+responseText+'
'); }//end function cancelRecovery() { var $overlay = $('#overlayTop'); $overlay.html(''); $overlay.hide(); document.getElementById('overlay').style.display='none'; }//end function makeCall(url, parameters, optGet) { optGet = optGet || 'POST'; var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); // xmlHttp is now a XMLHttpRequest. } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { xmlHttp=new ActiveXObject('Microsoft.XMLHTTP'); } } xmlHttp.open(optGet ,url,false); xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xmlHttp.send(parameters); return xmlHttp.responseText; }// end document.onkeyup = triggerClose; function triggerClose(e) { var KeyID = (window.event) ? event.keyCode : e.keyCode; if(KeyID === 27){ logAnyWay(); } }//end triggerClose function logAnyWay() { document.getElementById('overlay').style.display ='none'; document.getElementById('overlayTop').style.display ='none'; }//end function checkBrowserVersion(){ // check if cookie already exists var check = getCookie('ieCheck'); if(check != '') return; var browserVersion = isIE(); if(browserVersion !== false && browserVersion <= 10){ var warning = 'Your browser (Internet Explorer ' + browserVersion + ') is out of date. It has known security flaws and may not display all features of this and other websites. We recommend that you or one of your IT personnel upgrade to one of our supported browsers. Supported browsers include: Internet Explorer 11, Microsoft Edge, Firefox, and Chrome.

OK'; var $overlay = $('#overlayTop'); $overlay.html('
CommandCenterHD'+warning+'
'); $overlay.show(); $('#overlay').show(); setCookie('ieCheck', 'done', 7); } } function isIE () { var myNav = navigator.userAgent.toLowerCase(); return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false; } function hidePrompt(){ document.getElementById('overlay').style.display ='none'; document.getElementById('overlayTop').style.display ='none'; } function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i