Advertisement
Guest User

Untitled

a guest
Jul 19th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en-IN">
  3. <head>
  4. <script>const inputs = document.getElementsByClassName("inputForListener");
  5. [...inputs].forEach(input => {
  6. input.addEventListener("change", () => {
  7. if (inputs[0].value == "Test" && inputs[1].value == "Tee") {
  8. document.getElementsByClassName("enabledWhenFilled")[0].disabled = false;
  9. }
  10. else {
  11. document.getElementsByClassName("enabledWhenFilled")[0].disabled = true;
  12. }
  13. });
  14. });</script>
  15. <meta charset="utf-8">
  16. <title>Serververwaltung Login</title>
  17. <link href='http://fonts.googleapis.com/css?family=Ropa+Sans' rel='stylesheet'>
  18. <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel='stylesheet'>
  19. <style>
  20. body {
  21. font-family: 'Ropa Sans', sans-serif;
  22. color: #666;
  23. font-size: 14px;
  24. color: #333
  25. }
  26.  
  27. li, ul, body, input {
  28. margin: 0;
  29. padding: 0;
  30. list-style: none
  31. }
  32.  
  33. #login-form {
  34. width: 350px;
  35. background: #FFF;
  36. margin: 0 auto;
  37. margin-top: 70px;
  38. background: #BEBEBE;
  39. overflow: hidden;
  40. border-radius: 7px
  41. }
  42.  
  43. .form-header {
  44. display: table;
  45. clear: both
  46. }
  47.  
  48. .form-header label {
  49. display: block;
  50. cursor: pointer;
  51. z-index: 999
  52. }
  53.  
  54. .form-header li {
  55. margin: 0;
  56. line-height: 60px;
  57. width: 175px;
  58. text-align: center;
  59. background: #eee;
  60. font-size: 18px;
  61. float: left;
  62. transition: all 600ms ease
  63. }
  64.  
  65. /*sectiop*/
  66. .section-out {
  67. width: 700px;
  68. float: left;
  69. transition: all 600ms ease
  70. }
  71.  
  72. .section-out:after {
  73. content: '';
  74. clear: both;
  75. display: table
  76. }
  77.  
  78. .section-out section {
  79. width: 350px;
  80. float: left
  81. }
  82.  
  83. .login {
  84. padding: 20px
  85. }
  86.  
  87. .ul-list {
  88. clear: both;
  89. display: table;
  90. width: 100%
  91. }
  92.  
  93. .ul-list:after {
  94. content: '';
  95. clear: both;
  96. display: table
  97. }
  98.  
  99. .ul-list li {
  100. margin: 0 auto;
  101. margin-bottom: 12px
  102. }
  103.  
  104. .input {
  105. background: #fff;
  106. transition: all 800ms;
  107. width: 247px;
  108. border-radius: 3px 0 0 3px;
  109. font-family: 'Ropa Sans', sans-serif;
  110. border: solid 1px #ccc;
  111. border-right: none;
  112. outline: none;
  113. color: #999;
  114. height: 40px;
  115. line-height: 40px;
  116. display: inline-block;
  117. padding-left: 10px;
  118. font-size: 16px
  119. }
  120.  
  121. .input, .login span.icon {
  122. vertical-align: top
  123. }
  124.  
  125. .login span.icon {
  126. width: 50px;
  127. transition: all 800ms;
  128. text-align: center;
  129. color: #999;
  130. height: 40px;
  131. border-radius: 0 3px 3px 0;
  132. background: #FFFF00;
  133. height: 40px;
  134. line-height: 40px;
  135. display: inline-block;
  136. border: solid 1px #ccc;
  137. border-left: none;
  138. font-size: 16px
  139. }
  140.  
  141. .input:focus:invalid {
  142. border-color: red
  143. }
  144.  
  145. .input:focus:invalid + .icon {
  146. border-color: red
  147. }
  148.  
  149. .input:focus:valid {
  150. border-color: green
  151. }
  152.  
  153. .input:focus:valid + .icon {
  154. border-color: green
  155. }
  156.  
  157. #check, #check1 {
  158. top: 1px;
  159. position: relative
  160. }
  161.  
  162. .btn {
  163. border: none;
  164. outline: none;
  165. background: #0099CC;
  166. border-bottom: solid 4px #006699;
  167. font-family: 'Ropa Sans', sans-serif;
  168. margin: 0 auto;
  169. display: block;
  170. height: 40px;
  171. width: 100%;
  172. padding: 0 10px;
  173. border-radius: 3px;
  174. font-size: 16px;
  175. color: #FFF
  176. }
  177.  
  178. .social-login {
  179. padding: 15px 20px;
  180. background: #f1f1f1;
  181. border-top: solid 2px #e8e8e8;
  182. text-align: right
  183. }
  184.  
  185. .social-login a {
  186. display: inline-block;
  187. height: 35px;
  188. text-align: center;
  189. line-height: 35px;
  190. width: 35px;
  191. margin: 0 3px;
  192. text-decoration: none;
  193. color: #FFFFFF
  194. }
  195.  
  196. .form a i.fa {
  197. line-height: 35px
  198. }
  199.  
  200. .fb {
  201. background: #305891
  202. }
  203.  
  204. .tw {
  205. background: #2ca8d2
  206. }
  207.  
  208. .gp {
  209. background: #ce4d39
  210. }
  211.  
  212. .in {
  213. background: #006699
  214. }
  215.  
  216. .remember {
  217. width: 50%;
  218. display: inline-block;
  219. clear: both;
  220. font-size: 14px
  221. }
  222.  
  223. .remember:nth-child(2) {
  224. text-align: right
  225. }
  226.  
  227. .remember a {
  228. text-decoration: none;
  229. color: #666
  230. }
  231.  
  232. .hide {
  233. display: none
  234. }
  235.  
  236. /*swich form*/
  237. #signup:checked ~ .section-out {
  238. margin-left: -350px
  239. }
  240.  
  241. #login:checked ~ .section-out {
  242. margin-left: 0px
  243. }
  244.  
  245. #login:checked ~ div .form-header li:nth-child(1), #signup:checked ~ div .form-header li:nth-child(2) {
  246. background: #e8e8e8
  247. }
  248. </style>
  249. </head>
  250. <body>
  251. <div id="login-form">
  252.  
  253. <input type="radio" checked id="login" name="switch" class="hide">
  254. <input type="radio" id="signup" name="switch" class="hide">
  255.  
  256. <div>
  257. <ul class="form-header">
  258. </ul>
  259. </div>
  260.  
  261. <div class="section-out">
  262. <section class="login-section">
  263. <div class="login">
  264. <form action="">
  265. <ul class="ul-list">
  266. <li><input type="text" required class="input" class="inputForListener" placeholder="Server Admin" /><span class="icon"><i class="fa fa-user"></i></span></li>
  267. <li><input type="password" required class="input" class="inputForListener" placeholder="Server Password" /><span class="icon"><i class="fa fa-lock"></i></span></li>
  268. <li><span class="remember"><input type="checkbox" id="check"> <label for="check">An mich erinnern</label></span><span class="remember"><a href=""></a></span></li>
  269. <li><input type="submit" onclick="location.href = './dashboard.html'" value="ANMELDEN" class="btn" class="enabledWhenFilled" disabled></li>
  270. </ul>
  271. </form>
  272. </div>
  273. </section>
  274.  
  275. <section class="signup-section">
  276. <div class="login">
  277. <form action="">
  278. <ul>
  279. </ul>
  280. </form>
  281. </div>
  282.  
  283. <div>
  284. </div>
  285. </section>
  286. </div>
  287.  
  288. </div>
  289.  
  290. </body>
  291. </html>
  292.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement