Subham9126 commited on
Commit
bef1a4f
·
verified ·
1 Parent(s): db1bb7f

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -2
index.html CHANGED
@@ -40,7 +40,6 @@
40
 
41
  <!-- Input for API query -->
42
  <div class="mb-4">
43
- <input type="text" id="queryInput" class="form-control border border-gray-300 p-2 rounded-md w-full" placeholder="Enter your query" />
44
  <button type="button" class="btn btn-info mt-2 w-full flex items-center justify-center" onclick="fetchSuggestion()">
45
  <svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
46
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 21a2 2 0 01-2-2V5a2 2 0 012-2h6a2 2 0 012 2v14a2 2 0 01-2 2h-6z"></path>
@@ -278,7 +277,7 @@ $(document).ready(function() {
278
  });
279
  // Fetch suggestion from the API and dynamically adjust the input boxes
280
  async function fetchSuggestion() {
281
- const queryValue = document.getElementById('queryInput').value;
282
  const apiKey = document.getElementById('apiKeyInput').value;
283
  if (!queryValue) {
284
  alert("Please enter a query!");
 
40
 
41
  <!-- Input for API query -->
42
  <div class="mb-4">
 
43
  <button type="button" class="btn btn-info mt-2 w-full flex items-center justify-center" onclick="fetchSuggestion()">
44
  <svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
45
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 21a2 2 0 01-2-2V5a2 2 0 012-2h6a2 2 0 012 2v14a2 2 0 01-2 2h-6z"></path>
 
277
  });
278
  // Fetch suggestion from the API and dynamically adjust the input boxes
279
  async function fetchSuggestion() {
280
+ const queryValue = document.getElementById('query').value;
281
  const apiKey = document.getElementById('apiKeyInput').value;
282
  if (!queryValue) {
283
  alert("Please enter a query!");