Skip to content

Commit

Permalink
http response fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edd-ie committed Apr 16, 2023
1 parent b2b2141 commit ca47c5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let key = 'fa300f402d5b49d896870327231004'
let key = '389ec37add1d48738ad183101231604'

let form = document.querySelector('#searchbar');

Expand All @@ -7,8 +7,8 @@ form.addEventListener('submit', function(e){
let input = document.querySelector('#search');
let value = input.value;

let current = `https://api.weatherapi.com/v1/current.json?key=${key}&q=${value}&aqi=yes`;
let future = `https://api.weatherapi.com/v1/forecast.json?key=${key}&q=${value}&days=7&aqi=no&alerts=no`;
let current = `http://api.weatherapi.com/v1/current.json?key=${key}&q=${value}&aqi=yes`;
let future = `http://api.weatherapi.com/v1/forecast.json?key=${key}&q=${value}&days=7&aqi=no&alerts=no`;

currentWeather(current)
forcast(future)
Expand Down

0 comments on commit ca47c5b

Please sign in to comment.