Changeset 551 in tmcsimulator for trunk/webapps/einotebook/scripts


Ignore:
Timestamp:
12/26/2019 03:14:52 PM (6 years ago)
Author:
jdalbey
Message:

Multi-file commit to implement saving evaluation ratings from einotebook to a log file and merging with unified log. Also fix defect #212. cgi-bin/saveEvals.py cgi-bin/saveRatingsToLog.py common/js/displayutils.js common/js/fileutils.js common/js/revision_number.dat common/unifiedlog.css dynamicdata/CADcomments.log dynamicdata/caddetails.csv dynamicdata cms_messages.json dynamicdata/har_messages.json dynamicdata highway_status.json dynamicdata/ratings.csv dynamicdata/unifiedlog.csv dynamicdata/unifiedlog_final.csv einotebook/roles/index.html einotebook roles/roles.js einotebook/script/index.html einotebook/script scrollframe.js einotebook/scripts/Evaluation.js einotebook/scripts/Event.js mergelogs.bash unifiedlogdisplay.html unifiedlogmonitor.html

Location:
trunk/webapps/einotebook/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/einotebook/scripts/Evaluation.js

    r548 r551  
    1010     
    1111    //========== public constants ==========// 
     12    this.ratingQualities = ["", "Worst","Poor","Average","Good","Best"]; 
    1213    this.id = Evaluation.id; 
    1314    this.ratingGroupName = "evaluationGroup" + this.id;     
     
    7576 
    7677        this.rating = givenRating; 
    77  
    78         console.log(this.ratingGroupName + " recordRating of " + this.rating ) 
     78        //console.log(this.ratingGroupName + " recordRating of " + this.rating ) 
    7979    } 
    8080 
     
    103103               "<table align='right' class='evaluationScale'>" + 
    104104               "<tr>" + 
    105                "<td class='eventRadioButtonSmallScale'>Best</td>" + 
    106                "<td class='eventRadioButtonSmallScale'>Good</td>" + 
    107                "<td class='eventRadioButtonSmallScale'>Average</td>" + 
    108                "<td class='eventRadioButtonSmallScale'>Poor</td>" + 
    109                "<td class='eventRadioButtonSmallScale'>Worst</td>" + 
     105               "<td class='eventRadioButtonSmallScale'>"+this.ratingQualities[5]+"</td>" + 
     106               "<td class='eventRadioButtonSmallScale'>"+this.ratingQualities[4]+"</td>" + 
     107               "<td class='eventRadioButtonSmallScale'>"+this.ratingQualities[3]+"</td>" + 
     108               "<td class='eventRadioButtonSmallScale'>"+this.ratingQualities[2]+"</td>" + 
     109               "<td class='eventRadioButtonSmallScale'>"+this.ratingQualities[1]+"</td>" + 
    110110               "</tr>" + 
    111111               "<tr>" + 
  • trunk/webapps/einotebook/scripts/Event.js

    r540 r551  
    178178        function focus() 
    179179        { 
    180                 /* This method was discarded because it moved the scroll bar of the parent of 
     180                /* This next 3 lines were discarded because it moved the scroll bar of the parent of 
    181181                 * the given window in addition to the scroll bar of the given window.. 
    182182                var positionOfPound = window.location.indexOf("#"); 
     
    184184                window.location = rootLocation + "#" + eventAnchorName; 
    185185                */ 
    186                 events.win.scrollTo(0, absoluteTop(events.doc.getElementById(this.eventHeaderID))); 
     186                events.win.scrollTo(0, absoluteTop(events.doc.getElementById(this.eventHeaderID))); 
    187187        } 
    188188         
     
    195195        if (events.doc.getElementById(this.eventHeaderID) != null) 
    196196        { 
    197                 events.doc.getElementById(this.eventHeaderID).style.borderColor = "blue"; 
     197                events.doc.getElementById(this.eventHeaderID).style.borderColor = "blue"; 
    198198                events.doc.getElementById(this.eventHeaderID).style.backgroundColor = "yellow"; 
    199199                events.doc.getElementById(this.eventHeaderID).style.color = "black"; 
Note: See TracChangeset for help on using the changeset viewer.