GetUserName.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title class="loginStr"></title>
  6. <style type="text/css">
  7. body {
  8. font-family: Lucida Sans, Lucida Grande, Arial !important;
  9. font-size: 15px !important;
  10. background-color: #1A9BD7;
  11. }
  12. .container {
  13. width: 99%;
  14. position: absolute;
  15. top: 50%;
  16. transform: translateY(-50%);
  17. }
  18. .formContainer {
  19. width: 500px;
  20. padding: 20px 0 20px 0;
  21. border-radius: 5px;
  22. background-color: #fff;
  23. margin: auto;
  24. }
  25. .login {
  26. width: 400px;
  27. margin: auto;
  28. }
  29. .login input {
  30. margin-bottom: 20px;
  31. width: 300px;
  32. padding: 8px;
  33. border: 1px solid #bfbfbf;
  34. }
  35. .login form {
  36. margin: auto;
  37. width: 300px;
  38. }
  39. img {
  40. display: block;
  41. margin: auto;
  42. }
  43. p {
  44. text-align: center
  45. }
  46. #button {
  47. background-color: #1A9BD7;
  48. border: none;
  49. color: white;
  50. padding: 15px 32px;
  51. text-align: center;
  52. text-decoration: none;
  53. display: inline-block;
  54. font-size: 16px;
  55. border-radius: 4px;
  56. cursor: pointer;
  57. -webkit-transition-duration: 0.4s;
  58. /* Safari */
  59. transition-duration: 0.4s;
  60. margin: auto;
  61. display: block;
  62. }
  63. .button:hover {
  64. background-color: #13b1f9;
  65. color: white;
  66. }
  67. .visible {
  68. display: none;
  69. }
  70. </style>
  71. <script>dojoConfig = {async:true, parseOnLoad:false}</script>
  72. <script src="/esp/files/dist/dojoLib.eclwatch.js"></script>
  73. </head>
  74. <body>
  75. <div id="container" class="container visible">
  76. <div class="formContainer">
  77. <img id="logo" src="eclwatch/img/Loginlogo.png">
  78. <p id="loginStr" class="loginStr"></p>
  79. <div class="login">
  80. <form method="POST" action="/esp/login">
  81. <input id="username" type="text" name="username" placeholder="username" class="loginStr" autofocus></input>
  82. <button class="loginStr" id="button" type="submit"></button>
  83. </form>
  84. </div>
  85. </div>
  86. </div>
  87. <script type="text/javascript">
  88. require(["dojo/ready", "dojo/i18n", "dojo/i18n!hpcc/nls/hpcc"],
  89. function(ready, i18n, nlsHPCC){
  90. ready(function(){
  91. var HPCCSystems = document.getElementById("logo");
  92. var loginStr = document.getElementById("loginStr");
  93. var error = document.getElementById("hidden_msg");
  94. var username = document.getElementById("username");
  95. var button = document.getElementById("button");
  96. var enableCookies = "";
  97. HPCCSystems.setAttribute("alt", nlsHPCC.HPCCSystems);
  98. loginStr.innerHTML = nlsHPCC.PleaseLogIntoECLWatch;
  99. username.innerHTML = nlsHPCC.Username;
  100. button.innerHTML = nlsHPCC.Login;
  101. enableCookies = nlsHPCC.PleaseEnableCookies;
  102. var element = document.getElementById('container');
  103. if (navigator.cookieEnabled) {
  104. var element = document.getElementById("container");
  105. element.classList.remove("visible");
  106. } else {
  107. alert(enableCookies);
  108. }
  109. });
  110. }
  111. );
  112. </script>
  113. </body>
  114. </html>