You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
3.6 KiB

6 years ago
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <!-- Required meta tags -->
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- Bootstrap CSS -->
  8. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  9. <title>tor-eth-online-shop</title>
  10. </head>
  11. <body>
  12. <div class="container">
  13. <h1>tor-eth-online-shop</h1>
  14. <div class="row" id="mainView">
  15. <div class="col-md-9">
  16. <div class="row">
  17. <div class="col-md-4">
  18. <div class="card">
  19. <img class="card-img-top" src="https://vignette.wikia.nocookie.net/joke-battles/images/f/f7/711MkPTJ4OL._SL1500_.jpg" alt="Card image cap">
  20. <div class="card-body">
  21. <h5 class="card-title">Product 1</h5>
  22. <p class="card-text">Description.</p>
  23. <a onclick="addProduct('id1')" href="#" class="btn btn-outline-success float-right">Add to card</a>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="col-md-4">
  28. <div class="card">
  29. <img class="card-img-top" src="https://5.imimg.com/data5/YX/SD/MY-2492706/slotted-carton-box-500x500.jpg" alt="Card image cap">
  30. <div class="card-body">
  31. <h5 class="card-title">Product 2</h5>
  32. <p class="card-text">Description.</p>
  33. <a onclick="addProduct('id2')" href="#" class="btn btn-outline-success float-right">Add to card</a>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="col-md-4">
  38. <div class="card">
  39. <img class="card-img-top" src="https://image.shutterstock.com/image-photo/closed-cardboard-box-taped-isolated-260nw-168691364.jpg" alt="Card image cap">
  40. <div class="card-body">
  41. <h5 class="card-title">Product 3</h5>
  42. <p class="card-text">Description.</p>
  43. <a onclick="addProduct('id3')" href="#" class="btn btn-outline-success float-right">Add to card</a>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="col-md-3">
  50. <div class="card">
  51. <div class="card-body">
  52. <h3>Selected products</h3>
  53. <p id="list" class="card-text"></p>
  54. <a onclick="purchase()" href="#" class="btn btn-outline-success float-right">Purchase</a>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <!-- Optional JavaScript -->
  61. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  62. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  63. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
  64. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  65. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  66. <script src="index.js"></script>
  67. </body>
  68. </html>