Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. $(function () {
  2. $("#homeButton").click(function (event) {
  3. $("#homeDiv").show();
  4. $("#yourTracksDiv").hide();
  5. $("#profileDiv").hide();
  6. $("#headerHomeDiv").show();
  7. $("#headerYourTracksDiv").hide();
  8. $("#headerProfileDiv").hide();
  9. });
  10. $("#yourTracksButton").click(function (event) {
  11. $("#homeDiv").hide();
  12. $("#yourTracksDiv").show();
  13. $("#profileDiv").hide();
  14. $("#headerHomeDiv").hide();
  15. $("#headerYourTracksDiv").show();
  16. $("#headerProfileDiv").hide();
  17. });
  18. $("#profileButton").click(function (event) {
  19. $("#homeDiv").hide();
  20. $("#yourTracksDiv").hide();
  21. $("#profileDiv").show();
  22. $("#headerHomeDiv").hide();
  23. $("#headerYourTracksDiv").hide();
  24. $("#headerProfileDiv").show();
  25. });
  26. });
  27. ---------------------------------------------------------------------
  28. input[type=text] {
  29. width: 130px;
  30. -webkit-transition: width 0.4s ease-in-out;
  31. transition: width 0.4s ease-in-out;
  32. }
  33. body{
  34. overflow: hidden;
  35. }
  36. #headerHomeDiv{
  37. position: absolute;
  38. background-color: black;
  39. background-position: center;
  40. background-repeat: no-repeat;
  41. background-size: cover;
  42. width: 99%;
  43. height: 97%;
  44. }
  45. #headerYourTracksDiv{
  46. position: absolute;
  47. background-color: black;
  48. background-position: center;
  49. background-repeat: no-repeat;
  50. background-size: cover;
  51. width: 99%;
  52. height: 97%;
  53. }
  54. #headerProfileDiv{
  55. position: absolute;
  56. background-color: black;
  57. background-position: center;
  58. background-repeat: no-repeat;
  59. background-size: cover;
  60. width: 99%;
  61. height: 97%;
  62. }
  63. #homeDiv{
  64. position: absolute;
  65. background-position: center;
  66. background-repeat: no-repeat;
  67. background-size: cover;
  68. width: 99%;
  69. height: 97%;
  70. }
  71. #yourTracksDiv{
  72. position: absolute;
  73. background-position: center;
  74. background-repeat: no-repeat;
  75. background-size: cover;
  76. width: 99%;
  77. height: 97%;
  78. }
  79. #profileDiv{
  80. position: absolute;
  81. background-position: center;
  82. background-repeat: no-repeat;
  83. background-size: cover;
  84. width: 99%;
  85. height: 97%;
  86. }
  87. #searchDiv{
  88.  
  89. }
  90. ------------------------------------------------------------------
  91. <!DOCTYPE html>
  92. <html lang="en">
  93. <head>
  94. <title>Aria</title>
  95. <link rel="icon" href="../stockHack/images/icon.ico" />
  96. <meta charset="UTF-8">
  97. <script src="js/libraries/jquery-3.2.1.js"></script>
  98. <script src="js/libraries/jquery-ui-1.12.1.custom/jquery-ui-1.12.1.custom/jquery-ui.js"></script>
  99. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.13.3/math.js"></script>
  100. <script src="js/main.js"></script>
  101. <link rel="stylesheet" href="js/libraries/jquery-ui-1.12.1.custom/jquery-ui-1.12.1.custom/jquery-ui.css">
  102. <link rel="stylesheet" href="css/design.css">
  103. </head>
  104. <body>
  105. <div id='homeDiv'>
  106. <div id='headerHomeDiv'>
  107. <button id='homeButton'>Home</button>
  108. <button id='yourTracksButton'>Your Tracks</button>
  109. <button id='profileButton'>Profile</button>
  110. </div>
  111. <div id='searchDiv'>
  112. <input type="text" name="search" placeholder="Search...">
  113. </div>
  114. </div>
  115. <div id='yourTracksDiv'>
  116. <div id='headerYourTracksDiv'>
  117. <button id='homeButton'>Home</button>
  118. <button id='yourTracksButton'>Your Tracks</button>
  119. <button id='profileButton'>Profile</button>
  120. </div>
  121. </div>
  122. <div id='profileDiv'>
  123. <div id='headerProfileDiv'>
  124. <button id='homeButton'>Home</button>
  125. <button id='yourTracksButton'>Your Tracks</button>
  126. <button id='profileButton'>Profile</button>
  127. </div>
  128. </div>
  129. </body>
  130. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement