Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.28 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" name="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" ><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 alertstring = "";
  167. var blocknumber = /\d/;
  168. //////////////////Val for Firstname
  169. var Firstname = document.forms["myForm"] ["fname"].value;
  170. if (Firstname == "") {
  171. alertstring+="The Firstname cannot be empty" +"\n";
  172. }
  173. else if (Firstname => 0 )
  174. {
  175. alertstring += "The firstname you entered is not valid : "+"\n";
  176. }
  177.  
  178. else if (length.Firstname != 0){
  179. alertstring += "Firstname you entered is: " + Firstname+"\n";
  180. }
  181.  
  182.  
  183. //////////////////Val for Lastname
  184. var Lastname = document.forms["myForm"] ["lname"].value;
  185.  
  186. if (Lastname == "") {
  187. alertstring+="The Lastname cannot be empty" +"\n";
  188. }
  189. else if (Lastname => 0 )
  190. {
  191. alertstring += "The Lastname you entered is not valid : "+"\n";
  192. }
  193. else if (length.Lastname != 0){
  194. alertstring += "Lastname you entered is: " + Lastname+"\n";
  195. }
  196.  
  197.  
  198.  
  199. //////////////////Val for Username
  200. var Username = document.forms["myForm"] ["username"].value;
  201. if (Username == "") {
  202. alertstring+="The Username cannot be empty" +"\n";
  203. }
  204. else if (length.Username != 0){
  205. alertstring += "Username you entered is: " + Username+"\n";
  206. }
  207.  
  208.  
  209.  
  210. //////////////////Val for Password
  211. var Password = document.forms["myForm"] ["password"].value;
  212. if(Password=="")
  213. {
  214. alertstring+="The Password cannot be empty" +"\n";
  215. }
  216. else if (length.Password != 0){
  217. alertstring += "Password you entered is: " + Password+"\n";
  218. }
  219.  
  220.  
  221.  
  222. //////////////////Val for postal code
  223. var Postal = document.forms["myForm"] ["postal"].value;
  224. if( Postal == "")
  225. {
  226. alertstring+="The Postal code cannot be empty" +"\n";
  227. }
  228. else if (length.Postal != 0){
  229. alertstring += "Postal you entered is: " + Postal+"\n";
  230. }
  231.  
  232.  
  233.  
  234.  
  235. //////////////////Val for address
  236. var addres = document.forms["myForm"] ["add"].value;
  237. if( addres == "")
  238. {
  239. alertstring+="The Address cannot be empty" +"\n";
  240. }
  241. else if (length.addres != 0){
  242. alertstring += "Addres you entered is: " + addres+"\n";
  243. }
  244.  
  245. //////////////////Val for province
  246. var province = document.forms["myForm"] ["province"].value;
  247. if (province == province ){
  248. alertstring += "The Province is: " + province + "\n";
  249. }
  250.  
  251.  
  252.  
  253. //////////////////Val for city
  254. var city123 = document.forms["myForm"] ["city"].value;
  255. if( city123 == "")
  256. {
  257. alertstring+="The City cannot be empty" +"\n";
  258. }
  259. else if (length.city123 != 0){
  260. alertstring += "City you entered is: " + city123+"\n";
  261. }
  262. else if (city123 = isNaN){
  263. alertstring += "The City you entered is not valid";
  264. }
  265.  
  266.  
  267.  
  268. ///////////////////Val for age
  269. var age = document.forms["myForm"] ["bday"].value;
  270. if (age == "" ){
  271. alertstring += "The Birthday cannot be empty" + "\n";
  272. }
  273. else if (age == age){
  274. alertstring += "The Birthday is: " + age + "\n";
  275. }
  276.  
  277.  
  278. //////////////////Val for email
  279. var email = document.forms["myForm"] ["email"].value;
  280. if(email == "")
  281. {
  282. alertstring+="The Email cannot be empty" +"\n";
  283. }
  284. else if (length.email != 0){
  285. alertstring += "Email you entered is: " + email+"\n";
  286. }
  287. alert(alertstring);
  288. }
  289.  
  290. </script>
  291. <script src=http://my.gblearn.com/js/loadscript.js></script>
  292. </body>
  293. </body>
  294. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement