Changeset 386 in tmcsimulator for trunk/webapps/einotebook
- Timestamp:
- 04/20/2019 12:11:46 PM (7 years ago)
- Location:
- trunk/webapps/einotebook
- Files:
-
- 4 edited
-
index.html (modified) (3 diffs)
-
maps/index.html (modified) (1 diff)
-
scripts/Evaluation.js (modified) (1 diff)
-
scripts/LoadEvents.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/einotebook/index.html
r372 r386 1 1 <html> 2 2 <head> 3 <title>Electronic Instructor Notebook v 0.3</title>3 <title>Electronic Instructor Notebook v</title> 4 4 <meta name="apple-mobile-web-app-capable" content="yes"> 5 5 <meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=0;"> … … 9 9 <link rel="stylesheet" type="text/css" href="ipadapp.css"> 10 10 <script type="text/javascript" src="../common/js/fileutils.js"></script> 11 <script type="text/javascript" src="../common/js/displayutils.js"></script> 12 <script type="text/javascript" src="../common/js/revision.js"></script> 11 13 <script type="text/javascript" src="scripts/cookies.js"></script> 12 14 <script type="text/javascript" src="scripts/Events.js"></script> … … 25 27 <script type="text/javascript" src="notebook.js"></script> 26 28 </head> 27 <body onLoad="s etupNotebook(); run();">29 <body onLoad="showRevision(); setupNotebook(); run();"> 28 30 29 31 <table class="notebook"> -
trunk/webapps/einotebook/maps/index.html
r372 r386 31 31 32 32 <!-- The Map --> 33 <div id="googleMapContent" style="display:none;"><iframe frameborder=0 width=740 height=600 34 scrolling=no src=googleMap.html marginheight=0 marginwidth=0></iframe></div> 33 <div id="googleMapContent" style="display:none;"> 34 <iframe src="https://www.google.com/maps/d/embed?mid=11RLV4iMbnXW7HlZCATvTa9z1Y01gngzR&zoom=9" width="640" height="480"></iframe> 35 <div> 36 <!-- 37 <iframe frameborder=0 width=740 height=600 38 scrolling=no src="https://drive.google.com/open?id=11RLV4iMbnXW7HlZCATvTa9z1Y01gngzR&usp=sharing" marginheight=0 marginwidth=0></iframe> --> 35 39 36 40 <div id="atmsMapContent" style="display:inline;"><iframe frameborder=0 width=740 height=600 -
trunk/webapps/einotebook/scripts/Evaluation.js
r359 r386 37 37 var text = "<table class='evaluation'>" + 38 38 "<tr>" + 39 "<th class='evaluationType' colspan='2'>" + type + " Evalu tion</th>" +39 "<th class='evaluationType' colspan='2'>" + type + " Evaluation</th>" + 40 40 "</tr>" + 41 41 "<tr>" + -
trunk/webapps/einotebook/scripts/LoadEvents.js
r374 r386 24 24 if (currEvt.childNodes[child].localName != undefined) 25 25 { 26 var tagName = currEvt.childNodes[child].localName.toUpperCase(); 26 27 // Determine the tag type and dispatch it for further processing 27 switch( currEvt.childNodes[child].localName)28 switch(tagName) 28 29 { 29 30 case "TIME_INDEX": … … 54 55 break; 55 56 case "TELEPHONE": 56 telProp = new Evaluation("T elephone Conversation",57 telProp = new Evaluation("TELEPHONE CONVERSATION", 57 58 parseTelephone(currEvt.childNodes[child]) ); 58 59 evalarray.push(telProp); … … 66 67 } 67 68 break; 68 case "TMT_RADIO": break; 69 case "MAINTENANCE_RADIO": break; 70 // case *_EVALUATION: break; 71 69 70 case "TMT_RADIO": 71 case "MAINTENANCE_RADIO": 72 var result = new Array(); 73 result.push("Details:"); 74 result.push(currEvt.childNodes[child].textContent.trim()); 75 var radProp = new Property(tagName, result ); 76 proparray.push(radProp); 77 break; 78 79 case "FACILITATOR_EVALUATION": 80 case "CAD_EVALUATION": 81 case "ATMS_EVALUATION": 82 case "ACTIVITY_LOG_EVALUATION": 83 case "RADIO_EVALUATION": 84 // remove the suffix 85 var evalType = tagName.replace("_EVALUATION",""); 86 // Build the evaluation item 87 var facEval = new Evaluation(evalType, 88 parseEvaluation(currEvt.childNodes[child]) ); 89 evalarray.push(facEval); 90 break; 91 92 case "CMS_EVALUATION": 93 // TODO: Complete this partial implementation 94 var result = new Array(); 95 result.push("Expected Action:"); 96 result.push("Action will appear here."); 97 var cmsEval = new Evaluation("CMS", result); 98 evalarray.push(cmsEval); 99 break; 72 100 } 73 101 } … … 134 162 result.push(dialog[line].attributes["Role"].value); 135 163 result.push(dialog[line].textContent); 164 } 165 } 166 } 167 return result; 168 } 169 function parseEvaluation(element) 170 { 171 var result = new Array(); 172 var details = element.getElementsByTagName("EXPECTED_ACTION"); 173 if (details.length > 0) 174 { 175 for (detail in details) 176 { 177 if (details[detail].textContent != undefined) 178 { 179 result.push("Expected Action:"); 180 result.push(details[detail].textContent.trim()); 136 181 } 137 182 }
Note: See TracChangeset
for help on using the changeset viewer.
