Guest User

Untitled

a guest
Nov 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="description" content="Model Homepage">
  5. <style>
  6.  
  7. </style>
  8. <style id="jsbin-css">
  9. body {
  10. font-family: "Lato", sans-serif;
  11. transition: background-color .5s;
  12. }
  13.  
  14. .sidenav {
  15. height: 100%;
  16. width: 0;
  17. position: fixed;
  18. z-index: 1;
  19. top: 0;
  20. left: 0;
  21. background-color: #111;
  22. overflow-x: hidden;
  23. transition: 0.5s;
  24. padding-top: 60px;
  25. }
  26.  
  27. .sidenav a {
  28. padding: 8px 8px 8px 32px;
  29. text-decoration: none;
  30. font-size: 25px;
  31. color: #818181;
  32. display: block;
  33. transition: 0.3s;
  34. }
  35.  
  36. .sidenav a:hover {
  37. color: #f1f1f1;
  38. }
  39.  
  40. .sidenav .closebtn {
  41. position: absolute;
  42. top: 0;
  43. right: 25px;
  44. font-size: 36px;
  45. margin-left: 50px;
  46. }
  47.  
  48. #main {
  49. transition: margin-left .5s;
  50. padding: 16px;
  51. }
  52.  
  53. @media screen and (max-height: 450px) {
  54. .sidenav {padding-top: 15px;}
  55. .sidenav a {font-size: 18px;}
  56. }
  57. </style>
  58. </head>
  59. <body>
  60.  
  61. <div id="mySidenav" class="sidenav">
  62. <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
  63. <a href="#">Residential</a>
  64. <a href="#">Multi-Family Housing (WIP)</a>
  65. <a href="#">Small Business (WIP)</a>
  66. <a href="#">Large Business (WIP)</a>
  67. <a href="#">Contact Us (WIP)</a>
  68. </div>
  69.  
  70. <div id="main">
  71. <h2>Solar with Storage Model</h2>
  72. <p>Welcome to this Work in Progress. Please select a load profile to continue</p>
  73. <button style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776; Select a load profile</button>
  74. </div>
  75.  
  76. <script>
  77.  
  78. </script>
  79.  
  80. <script id="jsbin-javascript">
  81. function openNav() {
  82. document.getElementById("mySidenav").style.width = "250px";
  83. document.getElementById("main").style.marginLeft = "250px";
  84. document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
  85. }
  86.  
  87. function closeNav() {
  88. document.getElementById("mySidenav").style.width = "0";
  89. document.getElementById("main").style.marginLeft= "0";
  90. document.body.style.backgroundColor = "white";
  91. }
  92. </script>
  93.  
  94. <script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
  95. <html>
  96. <head>
  97. <meta name="description" content="Model Homepage">
  98. <style>
  99.  
  100. </style>
  101. </head>
  102. <body>
  103.  
  104. <div id="mySidenav" class="sidenav">
  105. <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
  106. <a href="#">Residential</a>
  107. <a href="#">Multi-Family Housing (WIP)</a>
  108. <a href="#">Small Business (WIP)</a>
  109. <a href="#">Large Business (WIP)</a>
  110. <a href="#">Contact Us (WIP)</a>
  111. </div>
  112.  
  113. <div id="main">
  114. <h2>Solar with Storage Model</h2>
  115. <p>Welcome to this Work in Progress. Please select a load profile to continue</p>
  116. <button style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776; Select a load profile</button>
  117. </div>
  118.  
  119. <script>
  120.  
  121. <\/script>
  122.  
  123. </body>
  124. </html>
  125. </script>
  126.  
  127. <script id="jsbin-source-css" type="text/css">body {
  128. font-family: "Lato", sans-serif;
  129. transition: background-color .5s;
  130. }
  131.  
  132. .sidenav {
  133. height: 100%;
  134. width: 0;
  135. position: fixed;
  136. z-index: 1;
  137. top: 0;
  138. left: 0;
  139. background-color: #111;
  140. overflow-x: hidden;
  141. transition: 0.5s;
  142. padding-top: 60px;
  143. }
  144.  
  145. .sidenav a {
  146. padding: 8px 8px 8px 32px;
  147. text-decoration: none;
  148. font-size: 25px;
  149. color: #818181;
  150. display: block;
  151. transition: 0.3s;
  152. }
  153.  
  154. .sidenav a:hover {
  155. color: #f1f1f1;
  156. }
  157.  
  158. .sidenav .closebtn {
  159. position: absolute;
  160. top: 0;
  161. right: 25px;
  162. font-size: 36px;
  163. margin-left: 50px;
  164. }
  165.  
  166. #main {
  167. transition: margin-left .5s;
  168. padding: 16px;
  169. }
  170.  
  171. @media screen and (max-height: 450px) {
  172. .sidenav {padding-top: 15px;}
  173. .sidenav a {font-size: 18px;}
  174. }</script>
  175.  
  176. <script id="jsbin-source-javascript" type="text/javascript">function openNav() {
  177. document.getElementById("mySidenav").style.width = "250px";
  178. document.getElementById("main").style.marginLeft = "250px";
  179. document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
  180. }
  181.  
  182. function closeNav() {
  183. document.getElementById("mySidenav").style.width = "0";
  184. document.getElementById("main").style.marginLeft= "0";
  185. document.body.style.backgroundColor = "white";
  186. }</script></body>
  187. </html>
Add Comment
Please, Sign In to add comment