18
0

Initial version of coldcalling app

This commit is contained in:
Jeremy Foote
2023-03-02 15:16:39 -05:00
commit 23b91425d8
8 changed files with 339 additions and 0 deletions

23
static/process_button.js Normal file
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);
}
});
});
});