Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <meta charset="utf-8" />
  5. <meta http-equiv="x-ua-compatible" content="ie=edge" />
  6. <meta http-equiv="refresh" name="viewport" content="width=device-width, initial-scale=1" />
  7.  
  8. <title>Go car</title>
  9.  
  10.  
  11. <style type="text/css">
  12.  
  13. .title {
  14. background-color: #f1f1f1;
  15. padding: 60px;
  16. font: arial;
  17. font-size: 30px;
  18. text-align: center;
  19. }
  20. .body {
  21. text-align: center;
  22. background-color: #043564;
  23. padding: 200px;
  24.  
  25. }
  26.  
  27. .label {
  28. color : white;
  29. font-size : 20px;
  30. font-family : arial;
  31. }
  32. .button {
  33. size: 30px;
  34. float: right;
  35. border: 1px solid #80006f;
  36. box-shadow: 0 8px 16px 0 hsla(0, 0%, 0%, 0.219), 0 6px 20px 0 rgba(0,0,0,0.19);
  37. color: rgb(162, 0, 255);
  38. box-align: right;
  39. }
  40.  
  41.  
  42. .button1{
  43. text-align: center;
  44. color: #80006f;
  45. }
  46.  
  47. .footer {
  48. text-align: center;
  49. }
  50. .header {
  51. text-align: right;
  52. background-color: rgb();
  53.  
  54. }
  55. .globalForm {
  56. display: inline-block;
  57. }
  58.  
  59. </style>
  60.  
  61.  
  62. <body>
  63. <header>
  64.  
  65.  
  66. <div class="field is-grouped is-grouped-right">
  67. <p class="control">
  68.  
  69. <nav>
  70. <a class="button" href="file:///F:/isn/isn.html">Home </a>
  71.  
  72. <a class="button is-danger is-selected" href="file:///F:/isn/thewebsite.html">The Website</a>
  73.  
  74. <a class="button is-success is-selected" href="file:///F:/isn/Allcars.html">All Cars</a>
  75. </nav> </p></div>
  76.  
  77. <div class="title">
  78. GO car
  79. <br> Car Selector
  80. </div>
  81.  
  82.  
  83.  
  84. <div class="body">
  85. <section class="section">
  86. <div class="container">
  87. <div class="content">
  88. <div class="columns">
  89. <div class="column">
  90. <div class="field">
  91. <label class="label" > Marque </label>
  92. <div class="control">
  93. <div class="select is-multiple"> <!-- add is-multiple class to the div and ... -->
  94. <select id="select-marque" multiple="size=8"> <!-- ... add add multiple size="8" attributes to get a multiple choice select box -->
  95. <option value="Volkswagen">Volkswagen</option>
  96. <option value="Renault">Renault</option>
  97. <option value="Peugeot">Peugeot</option>
  98. <option value="Citroen">Citroen</option>
  99. <option value="BMW">BMW</option>
  100. <option value="Mercedez">Mercedez</option>
  101. <option value="Fiat">Fiat</option>
  102. <option value="Opel">Opel</option>
  103. <option value="Ford">Ford</option>
  104. <option value="Nissan">Nissan</option>
  105. <option value="Porshe">Porshe</option>
  106. <option value="Audi">Audi</option>
  107. </select>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="column">
  113. <div class="field">
  114. <label class="label">Type</label>
  115. <div class="control">
  116. <div class="select is-multiple"> <!-- add is-multiple class to the div and ... -->
  117. <select id="select-type" multiple="size=8"> <!-- ... add add multiple size="8" attributes to get a multiple choice select box -->
  118. <option value="SUV">SUV</option>
  119. <option value="4x4">4x4</option>
  120. <option value="Monospace">Monospace</option>
  121. <option value="Berline">Berline</option>
  122. <option value="Citadine">Citadine</option>
  123. <option value="Sport">Sport</option>
  124. </select>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="column">
  130. <div class="field">
  131. <label class="label">Nombre de places</label>
  132. <div class="control has-icons-left">
  133. <input class="input is-primary" type="number" placeholder="Ex: 5" id="input-places">
  134. <span class="icon is-small is-left">
  135. <i class="fas fa-users"></i>
  136. </span>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="column">
  141. <div class="field">
  142. <label class="label">Prix</label>
  143. <div class="control has-icons-left">
  144. <input class="input is-primary" type="number" placeholder="Ex: 23000" id="input-prix">
  145. <span class="icon is-small is-left">
  146. <i class="fas fa-euro-sign"></i>
  147. </span>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <div class="field">
  153. <div class="control">
  154. <button type="submit" class="button1"
  155. onclick="analyse()" id="catalogue"> Submit </button>
  156. </div>
  157. </div>
  158. </form>
  159. </div>
  160. </div>
  161. </section>
  162.  
  163. <footer class="footer">
  164. <div class="content has-text-centered">
  165. <p>
  166. By lut&egrave;ce &amp; brune
  167. </p>
  168. </div>
  169.  
  170.  
  171. </footer>
  172.  
  173.  
  174.  
  175. <script type="text/javascript">
  176. // analyse les données du formulaire
  177. function analyse() {
  178. var catalogue = [
  179. {"nom":"208","select-marque":"Peugeot","select-type":"Citadine","input-prix":"16 000€","image":"peugeot 208.jpg"},
  180. {"nom":"Panda","select-marque":"Fiat","select-type":"Citadine","input-prix":"10 000€","image":"fiat panda.jpg" },
  181. {"nom":"Fiesta","select-marque":"Ford","select-type":"Citadine","input-prix":"13 000€","image":"ford fiesta.jpg" },
  182. {"nom":"X5","select-marque":"BMW","select-type":"SUV","input-prix":"72 000€","image":"bmw x5.jpg"},
  183. {"nom":"Corsa","select-marque":"Opel","select-type":"Citadine","input-prix":"17 000€","image":"opel corsa.jpg" },
  184. {"nom":"Polo","select-marque":"Volkswagen","select-type":"Citadine","input-prix":"16 000€","image":"polo.jpg"},
  185. {"nom":"5008","select-marque":"Peugeot","select-type":"Monospace","input-prix":"38 000€","image":"5008.jpg"},
  186. {"nom":"espace","select-marque":"Renault","select-type":"Monospace","input-prix":"45 000€","image":"espace.jpg"},
  187. {"nom":"Gle","select-marque":"Mercedes","select-type":"SUV","input-prix":"72 000€","image":"Gle.jpg"},
  188. {"nom":"508","select-marque":"Peugeot","select-type":"Berline","input-prix":"33 000€","image":"508.jpg"},
  189. {"nom":"serie 3","select-marque":"BMW","select-type":"Berline","input-prix":"38 000€","image":"serie 3.jpg"},
  190. {"nom":"R8","select-marque":"Audi","select-type":"Sport","input-prix":"190 000€","image":"R8.jpg"},
  191. {"nom":"carrera","select-marque":"Porshe","select-type":"Sport","input-prix":"130 000€","image":"carrera.jpg"},
  192. {"nom":"Tcross","select-marque":"Volkswagen","select-type":"4X4","input-prix":"25 000€","image":"Tcross.jpg"}];
  193. // var text = "";
  194. //var i;
  195. //for (i=0; i < catalogue.length; i++){text += catalogue[i]+ "<br>";
  196. }
  197. if (select-mark== Peugeot && select-type == Citadine)
  198. //document.getElementById("catalogue").innerHTML = "The car type is" + "catalogue.select-type"
  199.  
  200. // document.getElementById("input-marque").innerHTML = text;
  201. //document.getElementById("input-nom").innerHTML =text;
  202. //document.getElementById("input-type").innerHTML = text;
  203. //document.getElementById("input-places").innerHTML = text;
  204. //document.getElementById("input-prix").innerHTML = text;
  205.  
  206.  
  207.  
  208. //for (var catalogue = 0; catalogue < input-prix.length; catalogue++) {input-prix[catalogue] }
  209. //for (var icatalogue = 0; catalogue < input-places.length; catalogue++) {input-places[catalogue]}
  210. //for (var catalogue=0; catalogue< input-marque.length; catalogue++){input-marque[i]}
  211. //for (var catalogue=0; catalogue < input-type.length; catalogue++){input-type[catalogue]}
  212. //for (var i=0; catalogue < input-nom.length; catalogue++){input-nom[catalogue]}
  213.  
  214.  
  215. /////if (catalogue[i]["marque"]=="Peugeot")
  216. //alert ( catalogue[i]["nom"]);
  217.  
  218.  
  219. ///alert("Vous avez choisi:\n" +
  220. /// "\n- Marque: " + marque +
  221. // "\n- Type: " + type +
  222. // "\n- Places: " + places +
  223. // "\n- Prix: " + prix + " €");
  224.  
  225. </script>
  226.  
  227. </div>
  228. </header>
  229.  
  230.  
  231. </body>
  232.  
  233. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement