Changeset 633 in tmcsimulator
- Timestamp:
- 02/05/2021 11:52:19 AM (5 years ago)
- Location:
- trunk/webapps
- Files:
-
- 2 edited
-
dynamicdata/evalratings.csv (modified) (1 diff)
-
einotebook/scripts/Evaluation.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/dynamicdata/evalratings.csv
r631 r633 7 7 01:53:00, Evaluation, ATMS, Good 8 8 01:53:00, Evaluation, CAD, Best 9 00:24:00, Evaluation, RADIO, 'Had trouble finding phone number' 10 00:36:00, Evaluation, FACILITATOR, 'Put cones on heads' 11 00:36:00, Evaluation, FACILITATOR, 'Prefer chocolate ice cream in the cone' -
trunk/webapps/einotebook/scripts/Evaluation.js
r632 r633 58 58 + "</td>"; 59 59 */ 60 text += "<tr>" 61 /* Displays the ranking bubbles */ 62 text += "</td>" 63 + "<td class='evaluationScale'>" + this.evaluationForm() 64 + "</td>" 65 text += "<td colspan='2' class='evaluationResponse'>" 66 + "<input id='" + this.textID + "' type='text' value='" + this.text + "'" 67 + " class='evaluationResponseText' " 68 + " onchange='events.getEvaluation(" + this.id + ").recordText();' />" 69 + "</td>"; 70 text += "</tr>"; 60 71 text += "</table>"; 61 /* Displays the ranking bubbles */62 text += "</td>" +63 "<td class='evaluationScale'>" + this.evaluationForm() + "</td>" +64 "</tr>";65 72 66 text += "</table>";73 text += "</table>"; 67 74 68 75 … … 78 85 // Build a string for the log in this format: 79 86 //03:01:00, Evaluation, CMS, Poor 80 logString = this.evttime.format() + ", Evaluation, " + this.type + ", " + this.ratingQualities[givenRating] + "\n" 87 logString = this.evttime.format() + ", Evaluation, " + this.type + ", " 88 + this.ratingQualities[givenRating] + "\n" 89 postMessage(logString) 90 } 91 92 /** 93 * Stores the text in the written response text box. 94 */ 95 function recordText() 96 { 97 this.text = events.doc.getElementById(this.textID).value; 98 // Build a string for the log in this format: 99 //03:01:00, Evaluation, CMS, 'comment' 100 logString = this.evttime.format() + ", Evaluation, " + this.type + ", '" 101 + this.text + "'\n" 102 postMessage(logString) 103 } 104 105 function postMessage(logString) 106 { 81 107 // Using POST to send the data 82 108 var xhr = new XMLHttpRequest(); … … 87 113 } 88 114 89 /**90 * Stores the text in the written response text box.91 */92 function recordText()93 {94 this.text = events.doc.getElementById(this.textID).value;95 }96 97 115 /** 98 116 * @return The html for appropriate evaluation form for grading.
Note: See TracChangeset
for help on using the changeset viewer.
