Advertisement
Guest User

Untitled

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