Initial version of coldcalling app
This commit is contained in:
25
static/main.css
Normal file
25
static/main.css
Normal file
@@ -0,0 +1,25 @@
|
||||
body {
|
||||
background: Linen;
|
||||
margin-top: 50px;
|
||||
margin-left: 100px;
|
||||
margin-right: 100px;
|
||||
font-family: Georgia, serif;
|
||||
color: DarkSlateGray;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 1em;
|
||||
color: DarkSlateGray;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: Verdana, Geneva, sans-serif;
|
||||
font-size: 2.5em;
|
||||
color: FireBrick;
|
||||
}
|
||||
|
||||
.rand-button {
|
||||
font-size: .8em;
|
||||
}
|
||||
23
static/process_button.js
Normal file
23
static/process_button.js
Normal 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);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user