Guest User

Untitled

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