Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.65 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en-GB">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1"/>
  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 Brisbane Grammar School'/>
  12.  
  13. <title>Sign In</title>
  14. <script type='text/javascript'>
  15. //<![CDATA[
  16. function LoginErrors(){this.userNameFormatError = 'Enter your user ID in the format \u0026quot;domain\\user\u0026quot; or \u0026quot;user@domain\u0026quot;.'; this.passwordEmpty = 'Enter your password.'; this.passwordTooLong = 'Password is too long (\u0026gt; 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. InputUtil.updatePlaceholder = function (input, placeholderText) {
  135. var node = document.getElementById(input);
  136. if (node) {
  137. var ua = navigator.userAgent;
  138. if (ua != null &&
  139. (ua.match(/MSIE 9.0/) != null ||
  140. ua.match(/MSIE 8.0/) != null ||
  141. ua.match(/MSIE 7.0/) != null)) {
  142. var label = node.previousSibling;
  143. if (label != null) {
  144. label.value = placeholderText;
  145. }
  146. }
  147. else {
  148. node.placeholder = placeholderText;
  149. }
  150. }
  151. };
  152.  
  153. //]]>
  154. </script>
  155.  
  156.  
  157.  
  158. <link rel="stylesheet" type="text/css" href="/adfs/portal/css/style.css?id=D74D4D6943F32AE6F7F11D14D601DBB0E1A58919176EE512150366B6279AAF99" /><style>.illustrationClass {background-image:url(/adfs/portal/illustration/illustration.jpg?id=26BFAD5414EAAB0C464A81FE91274DB5DCEC50A9174216369D1DCF983FFBF916);}</style>
  159.  
  160. </head>
  161. <body dir="ltr" class="body">
  162. <div id="noScript" style="position:static; width:100%; height:100%; z-index:100">
  163. <h1>JavaScript required</h1>
  164. <p>JavaScript is required. This web browser does not support JavaScript or JavaScript in this web browser is not enabled.</p>
  165. <p>To find out if your web browser supports JavaScript or to enable JavaScript, see web browser help.</p>
  166. </div>
  167. <script type="text/javascript" language="JavaScript">
  168. document.getElementById("noScript").style.display = "none";
  169. </script>
  170. <div id="fullPage">
  171. <div id="brandingWrapper" class="float">
  172. <div id="branding"></div>
  173. </div>
  174. <div id="contentWrapper" class="float">
  175. <div id="content">
  176. <div id="header">
  177. <img class='logoImage' id='companyLogo' src='/adfs/portal/logo/logo.png?id=AEB8FF58F7714FC9C2B8E1949F93531E8AD98018848BB70DF0B75101880CD238' alt='Brisbane Grammar School'/>
  178. </div>
  179. <div id="workArea">
  180.  
  181. <div id="authArea" class="groupMargin">
  182.  
  183.  
  184.  
  185. <div id="loginArea">
  186. <div id="loginMessage" class="groupMargin">Sign in with your organizational account</div>
  187.  
  188. <form method="post" id="loginForm" autocomplete="off" novalidate="novalidate" onKeyPress="if (event && event.keyCode == 13) Login.submitLoginRequest();" action="/adfs/ls/?client-request-id=50a6d0b3-d89a-4ed2-8a73-a75818d08eba&username=&wa=wsignin1.0&wtrealm=urn%3afederation%3aMicrosoftOnline&wctx=estsredirect%3d2%26estsrequest%3drQIIAY2RO2_TUACFc-PEaiskClm6VDB0At34Onb8iMQQ11FqhbzT5rFEtmM7bmzfxHacx8zEgDpnZAApQwdYoD-hU4SEhFgQG2Jkgo1ELGxwhqMjfdv5HhF0ms6doD_JwF1DZJo01I3d-iv-_YPDt5tXtdWnD5XnwevO0ebFzQqkNN8ONNUzLF91XdVP69hdgwfDMBwHOYrC09DBeJTGpmnrxg5SeKZS7wDYALCO8xzDsUgQacRkUYZFHOLTuqkjVWV5yAucAbeUg6LGITgQTQ4JusAIjPE5frean4bDzK6wby-NH_F9E_tuf4yDcEVcA7kbSnKgWIXChcSLyqDXq3MofzHnB11Nlk_p1vnYLylMxxE6_EKPaiNUUlRYa44qUrEt11lLCqOulJ2dzWRJ9Iqlutzo9hqZhWrDSbl5iisFVnl66V_K5agdRS2o9FHQKkYZ3JyfYQX1h52SiwJdHNBwEohGz3HOvY7vLNq272GuulxOBXfYrtFhbylIszXxXwreEOT2QRd7twSJx4ZnDzYJ8D1xBxG5vb2Dw9hR7GHsZwK8TG5VpY5PiC_JX8r7ex-ffb1OxW6TVFkyKKeVnRcWFlNmR0Yw1xqPl2JoLbphXfGqMy7v1ydNy5qwT4QcfUWCK5L8RoKb_X_5_A01" >
  189. <div id="error" class="fieldMargin error smallText">
  190. <span id="errorText" for=""></span>
  191. </div>
  192.  
  193. <div id="formsAuthenticationArea">
  194. <div id="userNameArea">
  195. <label id="userNameInputLabel" for="userNameInput" class="hidden">User Account</label>
  196. <input id="userNameInput" name="UserName" type="email" value="" tabindex="1" class="text fullWidth"
  197. spellcheck="false" placeholder="someone@example.com" autocomplete="off"/>
  198. </div>
  199.  
  200. <div id="passwordArea">
  201. <label id="passwordInputLabel" for="passwordInput" class="hidden">Password</label>
  202. <input id="passwordInput" name="Password" type="password" tabindex="2" class="text fullWidth"
  203. placeholder="Password" autocomplete="off"/>
  204. </div>
  205. <div id="kmsiArea" style="display:none">
  206. <input type="checkbox" name="Kmsi" id="kmsiInput" value="true" tabindex="3" />
  207. <label for="kmsiInput">Keep me signed in</label>
  208. </div>
  209. <div id="submissionArea" class="submitMargin">
  210. <span id="submitButton" class="submit" tabindex="4" role="button"
  211. onKeyPress="if (event && event.keyCode == 32) Login.submitLoginRequest();"
  212. onclick="return Login.submitLoginRequest();">Sign in</span>
  213. </div>
  214. </div>
  215. <input id="optionForms" type="hidden" name="AuthMethod" value="FormsAuthentication"/>
  216. </form>
  217.  
  218. <div id="authOptions">
  219. <form id="options" method="post" action="https://sso.brisbanegrammar.com:443/adfs/ls/?client-request-id=50a6d0b3-d89a-4ed2-8a73-a75818d08eba&username=&wa=wsignin1.0&wtrealm=urn%3afederation%3aMicrosoftOnline&wctx=estsredirect%3d2%26estsrequest%3drQIIAY2RO2_TUACFc-PEaiskClm6VDB0At34Onb8iMQQ11FqhbzT5rFEtmM7bmzfxHacx8zEgDpnZAApQwdYoD-hU4SEhFgQG2Jkgo1ELGxwhqMjfdv5HhF0ms6doD_JwF1DZJo01I3d-iv-_YPDt5tXtdWnD5XnwevO0ebFzQqkNN8ONNUzLF91XdVP69hdgwfDMBwHOYrC09DBeJTGpmnrxg5SeKZS7wDYALCO8xzDsUgQacRkUYZFHOLTuqkjVWV5yAucAbeUg6LGITgQTQ4JusAIjPE5frean4bDzK6wby-NH_F9E_tuf4yDcEVcA7kbSnKgWIXChcSLyqDXq3MofzHnB11Nlk_p1vnYLylMxxE6_EKPaiNUUlRYa44qUrEt11lLCqOulJ2dzWRJ9Iqlutzo9hqZhWrDSbl5iisFVnl66V_K5agdRS2o9FHQKkYZ3JyfYQX1h52SiwJdHNBwEohGz3HOvY7vLNq272GuulxOBXfYrtFhbylIszXxXwreEOT2QRd7twSJx4ZnDzYJ8D1xBxG5vb2Dw9hR7GHsZwK8TG5VpY5PiC_JX8r7ex-ffb1OxW6TVFkyKKeVnRcWFlNmR0Yw1xqPl2JoLbphXfGqMy7v1ydNy5qwT4QcfUWCK5L8RoKb_X_5_A01">
  220. <script type="text/javascript">
  221. function SelectOption(option) {
  222. var i = document.getElementById('optionSelection');
  223. i.value = option;
  224. document.forms['options'].submit();
  225. return false;
  226. }
  227. </script>
  228. <input id="optionSelection" type="hidden" name="AuthMethod" />
  229. <div id='authOptionLinks' class='groupMargin'></div>
  230. </form>
  231. </div>
  232.  
  233. <div id="introduction" class="groupMargin">
  234. <p>Please sign-in to continue.</p><br><p><U>Parents:</U> <br> If you have forgotten your password, please click <A HREF='http://reset.brisbanegrammar.com/ResetPassword/Username'>HERE</A>, to reset it.</p><br><p>If you have forgotten your username, please click <A HREF='http://reset.brisbanegrammar.com/Home/RecoverUsername'> HERE</A>, to retrieve it.
  235. </div>
  236.  
  237. <script type="text/javascript">
  238. //<![CDATA[
  239.  
  240. function Login() {
  241. }
  242.  
  243. Login.userNameInput = 'userNameInput';
  244. Login.passwordInput = 'passwordInput';
  245.  
  246. Login.initialize = function () {
  247.  
  248. var u = new InputUtil();
  249.  
  250. u.checkError();
  251. u.setInitialFocus(Login.userNameInput);
  252. u.setInitialFocus(Login.passwordInput);
  253. }();
  254.  
  255. Login.submitLoginRequest = function () {
  256. var u = new InputUtil();
  257. var e = new LoginErrors();
  258.  
  259. var userName = document.getElementById(Login.userNameInput);
  260. var password = document.getElementById(Login.passwordInput);
  261.  
  262. if (!userName.value || !userName.value.match('[@\\\\]')) {
  263. u.setError(userName, e.userNameFormatError);
  264. return false;
  265. }
  266.  
  267. if (!password.value) {
  268. u.setError(password, e.passwordEmpty);
  269. return false;
  270. }
  271.  
  272. if (password.value.length > maxPasswordLength) {
  273. u.setError(password, e.passwordTooLong);
  274. return false;
  275. }
  276.  
  277. document.forms['loginForm'].submit();
  278. return false;
  279. };
  280.  
  281. InputUtil.makePlaceholder(Login.userNameInput);
  282. InputUtil.makePlaceholder(Login.passwordInput);
  283. //]]>
  284. </script>
  285. </div>
  286.  
  287. </div>
  288.  
  289. </div>
  290. <div id="footerPlaceholder"></div>
  291. </div>
  292. <div id="footer">
  293. <div id="footerLinks" class="floatReverse">
  294. <div><span id="copyright">&#169; 2016 Microsoft</span><a id="home" class="pageLink" href="https://brisbanegrammar.com">Home</a><a id="privacy" class="pageLink" href="https://brisbanegrammar.com/About/Policies/Documents/Privacy%20Policy.pdf">Privacy</a></div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. <script type='text/javascript'>
  300. //<![CDATA[
  301. // Copyright (c) Microsoft Corporation. All rights reserved.
  302.  
  303. // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
  304. "use strict";
  305.  
  306. // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
  307. // Note change input type does not work on all versions of all browsers.
  308. if (navigator.userAgent.match(/iPhone/i) != null) {
  309. var emails = document.querySelectorAll("input[type='email']");
  310. if (emails) {
  311. for (var i = 0; i < emails.length; i++) {
  312. emails[i].type = 'text';
  313. }
  314. }
  315. }
  316.  
  317. // In the CSS file we set the ms-viewport to be consistent with the device dimensions,
  318. // which is necessary for correct functionality of immersive IE.
  319. // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
  320. // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
  321. // Windows 8 phone has agent string 'IEMobile 10.0'
  322. if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  323. var msViewportStyle = document.createElement("style");
  324. msViewportStyle.appendChild(
  325. document.createTextNode(
  326. "@-ms-viewport{width:auto!important}"
  327. )
  328. );
  329. msViewportStyle.appendChild(
  330. document.createTextNode(
  331. "@-ms-viewport{height:auto!important}"
  332. )
  333. );
  334. document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
  335. }
  336.  
  337. // If the innerWidth is defined, use it as the viewport width.
  338. if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
  339. var viewport = document.querySelector("meta[name=viewport]");
  340. viewport.setAttribute('content', 'width=' + window.innerWidth + 'px; initial-scale=1.0; maximum-scale=1.0');
  341. }
  342.  
  343. // Gets the current style of a specific property for a specific element.
  344. function getStyle(element, styleProp) {
  345. var propStyle = null;
  346.  
  347. if (element && element.currentStyle) {
  348. propStyle = element.currentStyle[styleProp];
  349. }
  350. else if (element && window.getComputedStyle) {
  351. propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
  352. }
  353.  
  354. return propStyle;
  355. }
  356.  
  357. // The script below is used for downloading the illustration image
  358. // only when the branding is displaying. This script work together
  359. // with the code in PageBase.cs that sets the html inline style
  360. // containing the class 'illustrationClass' with the background image.
  361. var computeLoadIllustration = function () {
  362. var branding = document.getElementById("branding");
  363. var brandingDisplay = getStyle(branding, "display");
  364. var brandingWrapperDisplay = getStyle(document.getElementById("brandingWrapper"), "display");
  365.  
  366. if (brandingDisplay && brandingDisplay !== "none" &&
  367. brandingWrapperDisplay && brandingWrapperDisplay !== "none") {
  368. var newClass = "illustrationClass";
  369.  
  370. if (branding.classList && branding.classList.add) {
  371. branding.classList.add(newClass);
  372. } else if (branding.className !== undefined) {
  373. branding.className += " " + newClass;
  374. }
  375. if (window.removeEventListener) {
  376. window.removeEventListener('load', computeLoadIllustration, false);
  377. window.removeEventListener('resize', computeLoadIllustration, false);
  378. }
  379. else if (window.detachEvent) {
  380. window.detachEvent('onload', computeLoadIllustration);
  381. window.detachEvent('onresize', computeLoadIllustration);
  382. }
  383. }
  384. };
  385.  
  386. if (window.addEventListener) {
  387. window.addEventListener('resize', computeLoadIllustration, false);
  388. window.addEventListener('load', computeLoadIllustration, false);
  389. }
  390. else if (window.attachEvent) {
  391. window.attachEvent('onresize', computeLoadIllustration);
  392. window.attachEvent('onload', computeLoadIllustration);
  393. }
  394.  
  395.  
  396. var loginMessage = document.getElementById('loginMessage');
  397. if (loginMessage) {
  398. loginMessage.innerHTML = 'Sign in with your Brisbane Grammar account';
  399. }
  400. document.forms['loginForm'].UserName.placeholder = 'Account';
  401. if (typeof Login != 'undefined'){
  402. Login.submitLoginRequest = function () {
  403. var u = new InputUtil();
  404. var e = new LoginErrors();
  405. var userName = document.getElementById(Login.userNameInput);
  406. var password = document.getElementById(Login.passwordInput);
  407. if (userName.value && !userName.value.match('[@\\\\]')) {
  408. var userNameValue = 'bgs\\' + userName.value;
  409. document.forms['loginForm'].UserName.value = userNameValue;
  410. }
  411.  
  412. if (!userName.value) {
  413. u.setError(userName, e.userNameFormatError);
  414. return false;
  415. }
  416.  
  417.  
  418. if (!password.value) {
  419. u.setError(password, e.passwordEmpty);
  420. return false;
  421. }
  422. document.forms['loginForm'].submit();
  423. return false;
  424. };
  425. }
  426. //]]>
  427. </script>
  428.  
  429.  
  430. </body>
  431. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement