18
0

added flask app from jeremy

This commit is contained in:
2024-09-28 12:32:19 -07:00
parent 92e65de771
commit e756c448c0
7 changed files with 336 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
$(document).ready(function() {
$('#goodButton, #badButton, #neutralButton, #absentButton').on('click', function() {
var studentName = $('#studentName').text();
console.log(studentName);
var buttonValue = $(this).val();
var courseCode = window.location.pathname.split('/').pop();
$.ajax({
url: '/response_quality',
type: 'POST',
data: {
studentName: studentName,
buttonValue: buttonValue,
course: courseCode
},
success: function(response) {
console.log(response);
},
error: function(error) {
console.log(error);
}
});
});
});