Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <title>Standard Int</title>
  6.  
  7. <header>
  8. <h1 class="bubu">Standard Int</h1><form>User name:<br>
  9. <input type="text" name="username" class="focus"><br>
  10. User password: <br>
  11. <input type="password" name="psw">
  12. </form>
  13. <button onclick="loginFunction()">Login</button>
  14. <button onclick="regFunction()">Sign in</button>
  15. <!--E-mail: <input type="text" id="e-mail"><br>
  16. Password: <input type="text" id="password"><br> -->
  17. <img src="tirol1.jpg" align="middle">
  18.  
  19. </header>
  20.  
  21. </head>
  22. <style>
  23. body {background-color: powderblue;}
  24.  
  25. input [type="text"] {
  26.  
  27. display: block;
  28. margin: 0;
  29. width: 100%;
  30. appearance: none;
  31. box-shadow: none;
  32. border-radius: none;
  33. }
  34.  
  35. input[type="text"]:focus {
  36. outline: none;
  37.  
  38.  
  39. }
  40.  
  41.  
  42. <!-- border: 2px solid red;
  43. border-radius: 4px;
  44. text-align: right;
  45. position: absolute;
  46. right: 20px; -->
  47.  
  48.  
  49. <!--E-mail:. {
  50.  
  51. position: absolute;
  52. right: 20px;
  53. } -->
  54.  
  55.  
  56. h1 {color: blue;
  57. text-align: center;
  58. font-size: 90px;
  59. border: 1px solid red;
  60. }
  61.  
  62. .bubu {
  63. margin: 0;
  64. padding: 0;
  65.  
  66. }
  67.  
  68. img {
  69. display: block;
  70. margin: auto;
  71. width: 100%;
  72. height: 220px;
  73. border: 3px solid red;
  74.  
  75. }
  76.  
  77.  
  78. ul {
  79. list-style-type: none;
  80. margin: 0;
  81. padding: 0;
  82. overflow: hidden;
  83. background-color: #333;
  84. }
  85.  
  86. li {
  87. float: left;
  88. }
  89.  
  90. li a, .dropbtn {
  91. display: inline-block;
  92. color: white;
  93. text-align: center;
  94. padding: 14px 16px;
  95. text-decoration: none;
  96. }
  97.  
  98. li a:hover, .dropdown:hover .dropbtn {
  99. background-color: red;
  100. }
  101.  
  102. li.dropdown {
  103. display: inline-block;
  104. }
  105.  
  106. .dropdown-content {
  107. display: none;
  108. position: absolute;
  109. background-color: #f9f9f9;
  110. min-width: 160px;
  111. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  112. }
  113.  
  114. .dropdown-content1 {
  115. display: none;
  116. position: absolute;
  117. background-color: #f9f9f9;
  118. min-width: 160px;
  119. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  120. }
  121.  
  122. .dropdown-content2 {
  123. display: none;
  124. position: absolute;
  125. background-color: #f9f9f9;
  126. min-width: 160px;
  127. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  128. }
  129.  
  130. .dropdown-content a {
  131. color: black;
  132. padding: 12px 16px;
  133. text-decoration: none;
  134. display: block;
  135. text-align: left;
  136. }
  137.  
  138. .dropdown-content1 a {
  139. color: black;
  140. padding: 12px 16px;
  141. text-decoration: none;
  142. display: block;
  143. text-align: left;
  144. }
  145.  
  146. .dropdown-content2 a {
  147. color: black;
  148. padding: 12px 16px;
  149. text-decoration: none;
  150. display: block;
  151. text-align: left;
  152. }
  153.  
  154.  
  155.  
  156. .dropdown-content a:hover {background-color: #f1f1f1}
  157.  
  158. .dropdown-content1 a:hover {background-color: #f1f1f1}
  159.  
  160. .dropdown-content2 a:hover {background-color: #f1f1f1}
  161.  
  162.  
  163.  
  164.  
  165.  
  166. .show {display:block;}
  167. </style>
  168.  
  169. <body>
  170. <!-- <body background="backgrgeorgi.png"> */ -->
  171.  
  172.  
  173. <ul>
  174.  
  175. <li class="dropdown1">
  176. <a href="javascript:void(0)" class="dropbtn1" onclick="myFunction1()">Actual Projects</a>
  177. <div class="dropdown-content1" id="myDropdown1">
  178. <a href="#">Link 1</a>
  179. <a href="#">Link 2</a>
  180. <a href="#">Link 3</a>
  181. </div>
  182. </li>
  183.  
  184. <li class="dropdown2">
  185. <a href="javascript:void(0)" class="dropbtn2" onclick="myFunction2()">Applications</a>
  186. <div class="dropdown-content2" id="myDropdown2">
  187. <a href="#">Link 1</a>
  188. <a href="#">Link 2</a>
  189. <a href="#">Link 3</a>
  190. </div>
  191. </li>
  192. <li class="dropdown">
  193. <a href="javascript:void(0)" class="dropbtn" onclick="myFunction()">About Me</a>
  194. <div class="dropdown-content" id="myDropdown">
  195. <a href="#">Biography</a>
  196. <a href="#">CV</a>
  197. <a href="#">Ideology</a>
  198. </div>
  199. </li>
  200. </ul>
  201.  
  202. <script>
  203. /* When the user clicks on the button,
  204. toggle between hiding and showing the dropdown content */
  205. function myFunction() {
  206. document.getElementById("myDropdown").classList.toggle("show");
  207. }
  208.  
  209. // Close the dropdown if the user clicks outside of it
  210. window.onclick = function(e) {
  211. if (!e.target.matches('.dropbtn')) {
  212.  
  213. var dropdowns = document.getElementsByClassName("dropdown-content");
  214. for (var d = 0; d < dropdowns.length; d++) {
  215. var openDropdown = dropdowns[d];
  216. if (openDropdown.classList.contains('show')) {
  217. openDropdown.classList.remove('show');
  218. }
  219. }
  220. }
  221. }
  222.  
  223. function myFunction1() {
  224. document.getElementById("myDropdown1").classList.toggle("show");
  225. }
  226.  
  227. // Close the dropdown if the user clicks outside of it
  228. window.onclick = function(e) {
  229. if (!e.target.matches('.dropbtn1')) {
  230.  
  231. var dropdowns1 = document.getElementsByClassName("dropdown-content1");
  232. for (var d = 0; d < dropdowns1.length; d++) {
  233. var openDropdown1 = dropdowns1[d];
  234. if (openDropdown1.classList.contains('show')) {
  235. openDropdown1.classList.remove('show');
  236. }
  237. }
  238. }
  239. }
  240.  
  241.  
  242. function myFunction2() {
  243. document.getElementById("myDropdown2").classList.toggle("show");
  244. }
  245.  
  246. // Close the dropdown if the user clicks outside of it
  247. window.onclick = function(e) {
  248. if (!e.target.matches('.dropbtn2')) {
  249.  
  250. var dropdowns2 = document.getElementsByClassName("dropdown-content2");
  251. for (var d = 0; d < dropdowns2.length; d++) {
  252. var openDropdown2 = dropdowns2[d];
  253. if (openDropdown2.classList.contains('show')) {
  254. openDropdown2.classList.remove('show');
  255. }
  256. }
  257. }
  258. }
  259.  
  260. </script>
  261.  
  262. <footer id="thefooter">
  263. <p>@Copy; 2015, Georgi Georgiev</p>
  264. </footer>
  265.  
  266. </body>
  267. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement