Changeset 351 in tmcsimulator for trunk/webapps/gotoxmltime.html


Ignore:
Timestamp:
03/31/2019 10:20:47 AM (7 years ago)
Author:
jdalbey
Message:

updated ei notebook proof of concepts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/gotoxmltime.html

    r348 r351  
    88    overflow-x:hidden; 
    99} 
     10#clockdiv { 
     11    font-size: xx-large; 
     12    font-weight: bold; 
     13    font-family: "Lucida Console", Monaco, monospace; 
     14} 
    1015</style> 
    1116<body> 
    1217<!-- Prototype for a display that scrolls to the current time --> 
    13 <div id="timediv">0:00</div> 
     18<div id="clockdiv">0:00</div> 
    1419<div> <button onclick="scrollToCurrent()">Goto Current Item</button></div> 
    1520<div id="main" class="pic-container"></div> 
     
    2025var xmlDoc; 
    2126var currElement; 
    22 var timeDiv = document.getElementById("timediv"); 
     27var clockdiv = document.getElementById("clockdiv"); 
    2328/** Load the sim clock file and extract the clock string */ 
    2429function gettime() 
     
    2833        simclockjson = JSON.parse(response); 
    2934        clockstring = simclockjson.clock; 
    30         timeDiv.innerHTML = clockstring;  // Display current time 
     35        clockdiv.innerHTML = clockstring;  // Display current time 
    3136        // Extract the seconds digits 
    3237        digits = clockstring.substring(clockstring.length-2) 
     
    5560            div.style.color = "black"; 
    5661            div.style.background = "GhostWhite"; 
     62            div.style.height = 30; 
    5763            div.innerHTML = MHSTime + " " + xmlDoc.getElementsByTagName("description")[idx].childNodes[0].nodeValue; 
    5864            // Append it to the parent div 
     
    6874    if (currElement != null) 
    6975    { 
    70         currTime = timediv.innerHTML; 
     76        currTime = clockdiv.innerHTML; 
    7177        // Find the element with the id = seconds digits 
    7278        target = findNearestElem(); 
Note: See TracChangeset for help on using the changeset viewer.