Changeset 13870 for trunk/FACT++/www


Ignore:
Timestamp:
05/24/12 15:18:52 (12 years ago)
Author:
tbretz
Message:
Added a link to the error page at the warning sign; set timeout to refresh graphics to 3s in case of a page without graphics; added more specialchars for the units
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.js

    r13850 r13870  
    414414    div3.setAttribute("style", "background-position:-575px 50%;");
    415415    div4.setAttribute("style", "display:none;background-position:-12px -12px;");
    416     div3.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('fact', z, -z); }
    417     div2.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage(fname, z, -dz); }
     416    div3.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('fact',  z,  -z); }
     417    div2.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage(fname,   z, -dz); }
     418    div4.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('error', z,  +1); }
    418419
    419420    var sp0 = document.createElement("span");
     
    970971    date2.setTime(header[0]);
    971972
    972     $("warn"+z).style.display = header.length!=2 || header[1]=='1' ? "none" : "";
     973    $("warn"+z).style.display = header.length!=2 || header[1]=='0' ? "none" : "";
    973974
    974975    strike(time, date2.getTime()+60000>date1.getTime());
     
    10381039    {
    10391040        // invalidate?
    1040         timeoutGraphics = setTimeout(refresh_graphics, 1000);
     1041        timeoutGraphics = setTimeout(refresh_graphics, 3000);
    10411042        return;
    10421043    }
     
    12741275
    12751276    var unit = canv.getAttribute("data-data");//.split("/");
    1276     unit = unit.replace("°", "\u00B0");
    1277     unit = unit.replace("°", "\u00B5");
     1277    unit = unit.replace("°",   "\u00B0");
     1278    unit = unit.replace("µ", "\u00B5");
     1279    unit = unit.replace("²",  "\u00B2");
     1280    unit = unit.replace("³",  "\u00B3");
    12781281
    12791282    var min = data[3]+unit
     
    13181321    unit = unit.replace("°",   "\u00B0");
    13191322    unit = unit.replace("µ", "\u00B5");
     1323    unit = unit.replace("²",  "\u00B2");
     1324    unit = unit.replace("³",  "\u00B3");
    13201325
    13211326    var umin = vals[1]+unit;
Note: See TracChangeset for help on using the changeset viewer.