Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  6. <title>Samsung Galaxy Note 5</title>
  7. <style>
  8. #picture{float: left; width: 33%}
  9. img{width: 100%}
  10. a{padding-left: 30%}
  11. .nav-tabs { border-bottom: none; }
  12. footer {}
  13. #specs_p{display: none}
  14. #regis_p{display: none}
  15.  
  16. body {
  17. background-image: url("http://science-all.com/images/wallpapers/samsung-hd-wallpaper/samsung-hd-wallpaper-20.jpg");
  18. background-repeat: no-repeat;
  19. }
  20. .border1{
  21. padding-right: 30px;
  22. padding-left: 15px;
  23. }
  24. .border2{
  25. padding-bottom: 65px;
  26. padding-left:65px;
  27. }
  28. .border3{
  29. padding-top:15px;
  30. padding-left:45px;
  31. }
  32. </style>
  33.  
  34. </head>
  35.  
  36. <body>
  37.  
  38. <header>
  39. <h1 class= "border2"><b>Your World Just Getting Bigger By Using Samsung Galaxy Note 5</b></h1>
  40. </header>
  41.  
  42. <div id="picture">
  43. <p class="border1" ><img src="http://www.vodafone.co.nz/cms/images/sam-gal-note-5-intro/" alt="samsung"><br> </p>
  44. <p class="border3"><b> <a href="http://www.samsung.com/ca/consumer/mobile-devices/smartphones/galaxy-note/SM-N920WZKAXAC">here</a> is the official link</b></p>
  45. </div>
  46.  
  47. <div id="tabs">
  48. <ul class="nav nav-tabs">
  49. <li id="intro" class="active"><a href="#">Intro</a>
  50. <p id="intro_p">The new Samsung Galaxy note <br>
  51. series Note 5 has released on 13 August 2015. <br>
  52. Note 5 is the bigest size of all Galaxy series, <br>
  53. and and faster. The Galaxy note 5 with <br>
  54. out the S-pen is just like a huge phone as other.<br>
  55. Therefore Note 5 has improve the tradition<br>
  56. feature of note 5, S-pen. The S-pen has faster response, <br>
  57. reaction, and more accurate.<br>
  58. Also added more functions to work with the <br>
  59. S-pen and makes note 5 more outstaning and unique.<br>
  60. On the Galaxy note 5. Not just the S-pen got uptaded, <br>
  61. also the camera, battery, cpu, and note 5<br>
  62. can support the newest android OS.<br>
  63. For more information check out our specs tab.
  64. </p> <!--WRITE THE INTRO OF THE PHONE INSIDE THERE-->
  65. </li>
  66.  
  67. <li id="specs"><a href="#">Specs</a>
  68. <p id="specs_p">
  69. Battery<br>
  70. Li-Po 3020 mAh<br>
  71. Talk Time:Up to 28 hours<br>
  72. Standby time:Up to 1 week<br>
  73. Music Playback:Up to 57 hours<br><br>
  74.  
  75. Rear Camera<br>
  76. 16 megapixel Sony Exmor RS IMX240<br><br>
  77.  
  78. Front Camera<br>
  79. 5 megapixel, 1440p@30fps, dual video call, Auto HDR<br><br>
  80.  
  81. Processor<br>
  82. CPU: Octa-Core (Exynos 7420)<br>
  83. GPU: Mali-T760 MP8<br>
  84. RAM: 4 GB LPDDR4<br><br>
  85.  
  86. Operating System:<br>
  87. Android v5.1 Lolipop</p> <!--WRITE THE SPECS OF THE PHONE INSIDE THERE-->
  88.  
  89. </li>
  90.  
  91. <li id="regis"><a href="#">Registration Form</a>
  92. <form name="myForm" id="regis_p" method="POST" autocomplete="on" onsubmit="submitFunction()"><br>
  93. Username:<input type="text" name="username" ><br>
  94. Password:<input type="password" name="password" ><br>
  95. First Name:<input type="text" name="fname" ><br>
  96. Last Name:<input type="text" name="lname" ><br>
  97. Email:<input type="email" name="email" ><br>
  98. Address:<input type="text" name="add" ><br>
  99. Postal code:<input type="text" name="postal" ><br>
  100. City:<input type="text" name="city" ><br>
  101. Province: <select id = "province" >
  102. <option Value="Ontario">Ontario</option>
  103. <option Value="Quebec">Quebec</option>
  104. <option Value="Nova Scotia">Nova Scotia</option>
  105. <option Value="New Brunswick">New Brunswick</option>
  106. <option Value="Manitoba">Manitoba</option>
  107. <option Value="British Columbia">British Columbia</option>
  108. <option Value="Prince Edward Island">Prince Edward Island</option>
  109. <option Value="Saskatchewan">Saskatchewan</option>
  110. <option Value="Alberta">Alberta</option>
  111. <option Value="Newfoundland and Labrador">Newfoundland and Labrador</option>
  112. </select><br>
  113. Birthday: <input type="date" name="bday" max="2000-01-01"><br>
  114. <br>
  115. <input type="submit" value="Register Now!">
  116. </form>
  117. </li>
  118.  
  119. </ul>
  120.  
  121. </div>
  122.  
  123.  
  124. <footer>
  125. <h3><p>&copy; 2016-Carlos and Hao Jie Cao</P></h3>
  126. </footer>
  127.  
  128. <script>
  129. document.getElementById("intro").addEventListener("click", display_intro);
  130. document.getElementById("specs").addEventListener("click", display_specs);
  131. document.getElementById("regis").addEventListener("click", display_regis);
  132.  
  133. function display_intro()
  134. {
  135. document.getElementById("intro").setAttribute("class", "active");
  136. document.getElementById("specs").setAttribute("class", "");
  137. document.getElementById("regis").setAttribute("class", "");
  138. document.getElementById("intro_p").style.display = "inline-block";
  139. document.getElementById("regis_p").style.display = "none";
  140. document.getElementById("specs_p").style.display = "none";
  141. }
  142.  
  143. function display_specs()
  144. {
  145. document.getElementById("intro").setAttribute("class", "");
  146. document.getElementById("specs").setAttribute("class", "active");
  147. document.getElementById("regis").setAttribute("class", "");
  148. document.getElementById("intro_p").style.display = "none";
  149. document.getElementById("regis_p").style.display = "none";
  150. document.getElementById("specs_p").style.display = "inline-block";
  151. }
  152.  
  153. function display_regis()
  154. {
  155. document.getElementById("intro").setAttribute("class", "");
  156. document.getElementById("specs").setAttribute("class", "");
  157. document.getElementById("regis").setAttribute("class", "active");
  158. document.getElementById("intro_p").style.display = "none";
  159. document.getElementById("regis_p").style.display = "inline-block";
  160. document.getElementById("specs_p").style.display = "none";
  161. }
  162.  
  163.  
  164.  
  165. function submitFunction() {
  166. var fistandlastname = document.forms["myForm"] ["fname"] + ["lname"].value;
  167. var alertstring = "";
  168. if (fistandlastname == "") {
  169. alertstring += "First or/and last name are missing <br>";
  170. }
  171.  
  172. var Username = document.forms["myForm"] ["username"].value;
  173. if (Username == "") {
  174. alertstring+="the username cannot be empty <br>";
  175. }
  176.  
  177. var Password = document.forms["myForm"] ["password"].value;
  178. if(Password=="")
  179. {
  180. alertstring+="the password cannot be empty <br>";
  181. }
  182. var Postal = document.forms["myForm"] ["postal"].value;
  183. if( Postal == "")
  184. {
  185. alertstring+="the postal code cannot be empty <br>";
  186. }
  187. var addres = document.forms["myForm"] ["add"].value;
  188. if( addres == "")
  189. {
  190. alertstring+="The address cannot be empty <br>";
  191. }
  192. var city123 = document.forms["myForm"] ["city"].value;
  193. if( city123 == "")
  194. {
  195. alertstring+="The city cannot be empty <br>";
  196. }
  197.  
  198. var email = document.forms["myForm"] ["email"].value;
  199. if(email == "")
  200. {
  201. alertstring+="The email cannot be empty <br>";
  202. }
  203. alert(alertstring);
  204. }
  205.  
  206. </script>
  207. <script src=http://my.gblearn.com/js/loadscript.js></script>
  208. </body>
  209. </body>
  210. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement