Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.  
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6.  
  7. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  8.  
  9. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  10.  
  11. <style>
  12.  
  13. body{
  14.  
  15. font-size: 25px;
  16.  
  17. font-family: arial;
  18.  
  19. }
  20.  
  21. .button{
  22.  
  23. font-weight: bold;
  24.  
  25. margin: 4px;
  26.  
  27. padding: 3px;
  28.  
  29. cursor: pointer;
  30.  
  31. border-radius: 25px;
  32.  
  33. background-color: white;
  34.  
  35. color: black;
  36.  
  37. }
  38.  
  39. img{
  40.  
  41. height: 150px;
  42.  
  43. }
  44.  
  45. tr{
  46.  
  47. margin: 20px;
  48.  
  49. }
  50.  
  51. td{
  52.  
  53. padding: 25px;
  54.  
  55. font-size: 25px;
  56.  
  57. }
  58.  
  59. span{
  60.  
  61. font-family: Arial Rounded MT Bold;
  62.  
  63. color: white;
  64.  
  65. margin-left: 20px;
  66.  
  67. margin-right: 5px;
  68.  
  69. }
  70.  
  71. </style>
  72.  
  73. </head>
  74.  
  75. <body>
  76.  
  77. <script>
  78.  
  79. function loadCategories(){
  80.  
  81. var url = 'GETDATA 09.php?product=ALL';
  82.  
  83. $.get(url, function(data){
  84.  
  85. var myObj = JSON.parse(data);
  86.  
  87. for (i = 0; i < myObj.category.length; i++){
  88.  
  89. str = '<option ';
  90.  
  91. str += 'value="'
  92.  
  93. str += myObj.category[i].name
  94.  
  95. str += '">'
  96.  
  97. str += '</option>';
  98.  
  99. };
  100.  
  101. document.getElementById('categories').innerHTML = str;
  102.  
  103. });
  104.  
  105. };
  106.  
  107. </script>
  108.  
  109. <div id='menubar' class='w3-bar' style='position:fixed; top:0px; left:0px; z-index:0; background-color:rgb(34,47,62); padding:4px;'>
  110.  
  111. <span id='company name'>webazon</span>
  112.  
  113. <span id='prompt-0'>Select product</span>
  114.  
  115. <select id='categories'></select>
  116.  
  117. <span id='go' class='button' onclick="run(document.getElementById('categories').value);">Go</span>
  118.  
  119. <span id='load' class='button' onclick="loadCategories();">Load</span>
  120.  
  121. <span id='prompt-1'>Max Price</span>
  122.  
  123. <select id='maxPrice'>
  124. <option>10</option>
  125. <option>20</option>
  126. <option>50</option>
  127. <option>100</option>
  128. </select>
  129.  
  130. <span id='prompt-2'>Max to Display</span>
  131.  
  132. <select id='maxDisplay'>
  133. <option>2</option>
  134. <option>5</option>
  135. <option>10</option>
  136. <option selected>100</option>
  137. </select>
  138.  
  139. </div>
  140.  
  141. <script>loadCategories();</script>
  142.  
  143. <script src='http://www.gobongo3.net/src/347/13923/collect-homework 09-23.js'></script>
  144.  
  145. </body>
  146.  
  147. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement