Changeset 633 in tmcsimulator


Ignore:
Timestamp:
02/05/2021 11:52:19 AM (5 years ago)
Author:
jdalbey
Message:

Evaluation.js implemented #253 evaluation comments

Location:
trunk/webapps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/dynamicdata/evalratings.csv

    r631 r633  
    7701:53:00, Evaluation, ATMS, Good 
    8801:53:00, Evaluation, CAD, Best 
     900:24:00, Evaluation, RADIO, 'Had trouble finding phone number' 
     1000:36:00, Evaluation, FACILITATOR, 'Put cones on heads' 
     1100:36:00, Evaluation, FACILITATOR, 'Prefer chocolate ice cream in the cone' 
  • trunk/webapps/einotebook/scripts/Evaluation.js

    r632 r633  
    5858            + "</td>"; 
    5959        */ 
     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>"; 
    6071        text +=    "</table>"; 
    61         /*  Displays the ranking bubbles  */ 
    62         text += "</td>" + 
    63                       "<td class='evaluationScale'>" + this.evaluationForm() + "</td>" + 
    64                    "</tr>"; 
    6572         
    66         text +=    "</table>"; 
     73        text += "</table>"; 
    6774 
    6875                 
     
    7885        // Build a string for the log in this format: 
    7986        //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    { 
    81107        // Using POST to send the data  
    82108        var xhr = new XMLHttpRequest(); 
     
    87113    } 
    88114 
    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      
    97115    /** 
    98116     * @return The html for appropriate evaluation form for grading. 
Note: See TracChangeset for help on using the changeset viewer.