
<%@ Page Language="C#" %>	
<script runat="server">
  string GetPath()
  {
    string path = "";
    string[] urlSegments = HttpContext.Current.Request.Url.Segments;
    
    for (int i = 0; i < urlSegments.Length - 1; i++) {
      path += urlSegments[i];
    }
    
    return path.Substring(1);
  }
</script>
<!doctype html>
<html>
<head>
  <title>Password Server</title>
  <base href="/<%= GetPath() %>">  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;lang=en"/>
  <link id="favicon" rel="icon" type="image/png" href="./assets/favicon.png"/>
  <!--[if IE]>
  <link rel="shortcut icon" type="image/x-icon" href="./assets/favicon.ico"/>
  <![endif]-->
  <!-- DO NOT MODIFY OR REMOVE THE NEXT LINE; IT'S NECESSARY FOR THE BUILD PROD -->
  <style>
@font-face {
     font-family: 'devolutions-icons';
     src:  url('<%= GetPath() %>/assets/fonts/devolutions-icons.eot?g1lk3t');
     src:  url('<%= GetPath() %>/assets/fonts/devolutions-icons.eot?g1lk3t#iefix') format('embedded-opentype'),
     url('<%= GetPath() %>/assets/fonts/devolutions-icons.ttf?g1lk3t') format('truetype'),
     url('<%= GetPath() %>/assets/fonts/devolutions-icons.woff?g1lk3t') format('woff'),
     url('<%= GetPath() %>/assets/fonts/devolutions-icons.svg?g1lk3t#devolutions-icons') format('svg');
     font-weight: normal;
     font-style: normal;
   }</style>
  <script>
    // For BE
    var storageKey = ((location.hostname === 'localhost') ? 'dvls' : '<%= GetPath() %>').toLowerCase();
    (function () {
      if (window.self !== window.top) {
        var storage = JSON.parse(localStorage.getItem(storageKey));
        if (storage._tokenId && storage._tokenId.length > 0) {
          var req = new XMLHttpRequest();
          req.addEventListener("load", function () {
            if (this.status === 200) {
              var jsonResponse = JSON.parse(this.responseText);
              if (jsonResponse === true) {
                window.parent.postMessage({
                  tokenId: storage._tokenId,
                  sessionKey: storage._sessionKey
                }, '*');
              }
            }
          });
          req.open("GET", "api/is-logged");
          req.setRequestHeader('tokenId', storage._tokenId);
          req.send();
        }
      }
    }());
  </script>
<link rel="stylesheet" href="styles.f262ebd2acb75deec008.css"></head>
<body>
<asm-app>
  <div id="dvl-loading" class="loader">
    <div class="loader-10x"></div>
    <i class="dvl-icon dvl-icon-logo-dvls"></i>
  </div>
</asm-app>
<script type="text/javascript" src="runtime.94768c0eb5235e731266.js"></script><script type="text/javascript" src="polyfills.78dbaa1015e713cf5cb0.js"></script><script type="text/javascript" src="scripts.b800c894d8b659ac9c93.js"></script><script type="text/javascript" src="main.b39eae15145d7862218e.js"></script></body>
</html>
