Skip to content

Instantly share code, notes, and snippets.

@viperbe
Created July 26, 2018 16:45
Show Gist options
  • Save viperbe/548d92300df10a799d374522470fd241 to your computer and use it in GitHub Desktop.
Save viperbe/548d92300df10a799d374522470fd241 to your computer and use it in GitHub Desktop.
Adt Alarm frame page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html id="CHROME" class="v67">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no"/>
<link rel="stylesheet" type="text/css" href="/myhome/9.7.0-31/styles/portal.css" />
<link rel="stylesheet" type="text/css" href="/z/branding/adt/9.7.0/styles/portalCustomizable.css" />
<script type="text/javascript" src="/myhome/9.7.0-31/icjs/general.js"></script>
<script type="text/javascript">g.domain="portal.adtpulse.com";</script>
<script type="text/javascript">g.contextPath="/myhome/9.7.0-31";</script>
<script type="text/javascript">g.webApplicationContext="/myhome/9.7.0-31";</script>
<script type="text/javascript" src="/myhome/9.7.0-31/appcmn/ic_helper/ic_helper.js"></script>
<script type="text/javascript" src="/myhome/9.7.0-31/icjs/ajaxUpdate.js"></script>
<script type="text/javascript" src="/myhome/9.7.0-31/icjs/icDialog.js"></script>
<script type="text/javascript" src="/myhome/9.7.0-31/icjs/base64.js"></script>
<title>
ADT Pulse(TM) Interactive Solutions - Modes - Rebecca &amp; Ben Ellis Home
</title>
</head>
<body id="popup_window_body" class="p_popupWindowBody" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
onload="showMe()"
onunload=""
>
<div align="center">
<div id="popup_shim" class="p_popupHeaderShim" style="position:absolute;left:0px;top:0px;z-index:-10;"></div>
<div class="popupCdiv">
<div class="popupHeaderL">&nbsp;</div>
<div class="popupHeaderC"><span class="p_pageHeaderText"></span></div>
<div class="popupHeaderR">
<a class="p_helpIconPopup" title="View help for this page" href="../en_US/WebHelp/WebHelp_Advanced_CSH.htm#68" target="_blank">
<img src="/myhome/9.7.0-31/images/spacer.gif" width="16" height="13" border="0" alt="View help for this page"><span class="p_helpIconText">Help</span>
</a>
</div>
<div class="floatstop"></div>
<div id="p_display_controller">
<!-- BEGIN WHITE-BOX RENDER TOP -->
<table width="100%" cellpadding="0" border="0" cellspacing="0" class="p_whiteBoxBG">
<tr>
<td class="p_whiteBoxTopLeft"></td>
<td class="p_whiteBoxTopCenter"></td>
<td class="p_whiteBoxTopRight"></td>
</tr>
<tr>
<td class="p_whiteBoxMiddleLeft"></td>
<td class="p_whiteBoxMiddleCenter" align="center">
<!-- END WHITE-BOX RENDER TOP -->
<ul class="noStyleList" id="shiftList"><li><div class="buttonBorderTransparent buttonBorderHighlight"><input type="button" id="shift_button_0" name="shift_button_0" value="At Home" alt="At Home" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName1','At Home')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_0 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_0" class="p_btn p_btnXnormal" >At Home</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_1" name="shift_button_1" value="Out for the Day" alt="Out for the Day" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName2','Out for the Day')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_1 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_1" class="p_btn p_btnXnormal" >Out for the Day</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_2" name="shift_button_2" value="Asleep" alt="Asleep" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName3','Asleep')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_2 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_2" class="p_btn p_btnXnormal" >Asleep</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_3" name="shift_button_3" value="Be Right Back" alt="Be Right Back" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName4','Be Right Back')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_3 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_3" class="p_btn p_btnXnormal" >Be Right Back</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_4" name="shift_button_4" value="Vacation" alt="Vacation" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName5','Vacation')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_4 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_4" class="p_btn p_btnXnormal" >Vacation</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_5" name="shift_button_5" value="Custom 1" alt="Custom 1" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName6','Custom 1')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_5 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_5" class="p_btn p_btnXnormal" >Custom 1</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_6" name="shift_button_6" value="Custom 2" alt="Custom 2" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName7','Custom 2')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_6 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_6" class="p_btn p_btnXnormal" >Custom 2</div></div></li><li><div class="buttonBorderTransparent"><input type="button" id="shift_button_7" name="shift_button_7" value="Custom 3" alt="Custom 3" class="p_btn p_btnXnormal" onclick="doSubmit( 'shiftModes/shiftName8','Custom 3')" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="ellips"/><style type="text/css">#testSizeshift_button_7 {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_button_7" class="p_btn p_btnXnormal" >Custom 3</div></div></li></ul><div><br/><br/><input type="button" id="cancel_button" name="cancel_button" value="Cancel" alt="Cancel" class="p_btn p_btnXnormal" onclick="cancelDialog()" onmouseover="javascript:btnHover(this,'X')" onmouseout="javascript:btnNormal(this,'X')" onmousedown="javascript:btnDown(this,'X')" onmouseup="javascript:btnNormal(this,'X')" data-fitLabel="shrink"/><style type="text/css">#testSizecancel_button {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizecancel_button" class="p_btn p_btnXnormal" >Cancel</div></div><br/>
<!-- BEGIN WHITE-BOX RENDER BOTTOM -->
</td>
<td class="p_whiteBoxMiddleRight"></td>
</tr>
<tr>
<td class="p_whiteBoxBotLeft"></td>
<td class="p_whiteBoxBotCenter"></td>
<td class="p_whiteBoxBotRight"></td>
</tr>
</table>
<!-- END WHITE-BOX RENDER BOTTOM -->
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
function doSubmit( iParam, iLabel ) {
var shiftDiv = parent.document.getElementById('divOrbTopL'),
currentMode = parent.document.getElementById('shift_security_button').value;
if (currentMode != iLabel) {
if (shiftDiv) {
shiftDiv.className = 'p_btnBusy';
}
hideMe();
window.location.href = 'changeModeRRA.jsp' + decodeURIComponent("%3Fsat%3Dacb233d6-cf5c-4246-b842-fbac5a4a4698%26href%3Drest%2Fadt%2Fui%2Fclient%2Fshift%2FsetCurrentShiftMode") + '&pendingShiftMode=' + iParam;
} else {
// if the users select the mode that is already selected just close the popup
cancelDialog();
}
}
function cancelDialog() {
parent.postMessage( {"id": 'shift_security_button', "command": 'enableButton'}, '*' );
window.setTimeout( function() {closeDialog();}, 200 );
}
function updateContent() {
parent.postMessage( {"id":'invoke',"command":'updateContent'}, '*' );
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment