Skip to content

Commit

Permalink
Update application.js
Browse files Browse the repository at this point in the history
  • Loading branch information
znagler committed May 15, 2023
1 parent c801dfb commit 8a5328a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions predict2016/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ function setPredictButton() {
const i2 = $('.i2').dropdown('get value')
const i3 = $('.i3').dropdown('get value').split('*').join(' ')
const i4 = $('.i4').val()
const o = { i1, i2, i3, i4 }
console.log(o)
const userInput = { i1, i2, i3, i4 }
console.log(userInput)

// make an AJAX request to get predictions
$.ajax({
dataType: 'text',
url: 'https://hq33siilacynsmmt4rkgewxcoi0optah.lambda-url.us-east-1.on.aws/',
data: o,
data: userInput,
success: displayResults,
})
// set a timeout to show an alert if the response takes too long
Expand Down

0 comments on commit 8a5328a

Please sign in to comment.