Advertisement
Guest User

login

a guest
Mar 26th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style type="text/css">
  7. html{
  8. }
  9. body{
  10. background-image: url("http://i.imgur.com/xhosJsK.jpg");
  11. height:100%;
  12. max-width:100%;
  13. background-position: middle;
  14. background-size: auto;
  15. background-repeat: no-repeat;
  16. padding:0;
  17. margin:0;
  18. }
  19. @media (max-width: 1100px){
  20. body{
  21. background-image: url("http://i.imgur.com/9MlmGbx.jpg");
  22. background-size: auto;
  23. background-position: middle;
  24. background-repeat: no-repeat;
  25. padding:0;
  26. margin:0;
  27. height:100%;
  28. max-width:100%;
  29. }
  30. form{
  31. display:block;
  32. background:#ccc;
  33. border:2px solid red;
  34. padding:0 0 25px 0;
  35. width:500px;
  36. font-family:helvetica,sans-serif;
  37. font-size:14px;
  38. margin:400px 100px;
  39. }
  40. }
  41. .oc{
  42. display:table;
  43. width:100%;
  44. height:100%;
  45. }
  46. .ic{
  47. display:table-cell;
  48. vertical-align:middle;
  49. height:100%;
  50. }
  51. form{
  52. display:block;
  53. background:#ccc;
  54. border:2px solid red;
  55. padding:0 0 25px 0;
  56. width:500px;
  57. font-family:helvetica,sans-serif;
  58. font-size:14px;
  59. margin:400px 100px;
  60. }
  61. .fel,.fer,.fec{
  62. text-align:center;
  63. width:350px;
  64. margin:0 auto;
  65. padding:10px;
  66. }
  67. .fel{
  68. text-align:left;
  69. }
  70. .fer{
  71. text-align:right;
  72. }
  73. h1{
  74. font-weight:bold;
  75. font-size:21px;
  76. margin:0;
  77. padding:20px 10px;
  78. text-align:center;
  79. }
  80. p{
  81. margin:15px auto;
  82. width:75%;
  83. text-align:left;
  84. }
  85. ul{
  86. margin:15px auto;
  87. width:75%;
  88. }
  89. h2{
  90. margin:25px 10px;
  91. font-weight:bold;
  92. text-align:center;
  93. }
  94. label,h2{
  95. font-size:16px;
  96. }
  97. .logo{
  98. background:#eee center 25px url(%%IMAGE:logo_fw_auth%%) no-repeat;
  99. padding-top:80px;
  100. }
  101. </style>
  102. <title>
  103. Firewall Authentication
  104. </title>
  105. </head>
  106. <body>
  107. <div class="oc">
  108. <div class="ic">
  109. <form action="%%AUTH_POST_URL%%" method="post">
  110. <input type="hidden" name="%%REDIRID%%" value="%%PROTURI%%">
  111. <input type="hidden" name="%%MAGICID%%" value="%%MAGICVAL%%">
  112. <input type="hidden" name="%%METHODID%%" value="%%METHODVAL%%">
  113. <h1 class="logo">
  114. BUKASEMPAK
  115. </h1>
  116. <h2>
  117. %%QUESTION%%
  118. </h2>
  119. <div class="fel">
  120. <label for="ft_un">
  121. Username:
  122. </label>
  123.  
  124. <input name="%%USERNAMEID%%" id="ft_un" type="text" autocorrect="off" autocapitalize="off" style="width:230px">
  125. <br>
  126. </div>
  127. <div class="fel">
  128. <label for="ft_pd">
  129. Password:
  130. </label>
  131.  
  132. <input name="%%PASSWORDID%%" id="ft_pd" type="password" autocomplete="off" style="width:230px">
  133. </div>
  134. <div class="fer">
  135. <input type="submit" value= "Continue">
  136. </div>
  137. </form>
  138. </div>
  139. </div>
  140. <script>
  141. var src = $('body').css('background-image');
  142. var url = src.match(/\((.*?)\)/)[1].replace(/('|")/g,'');
  143.  
  144. var img = new Image();
  145. img.onload = function() {
  146. alert('image loaded');
  147. }
  148. img.src = url;
  149. if (img.complete) img.onload();
  150. </script>
  151. </body>
  152. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement