- Timestamp:
- 05/16/12 09:09:18 (12 years ago)
- Location:
- trunk/FACT++/www/smartfact
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.css
r13697 r13747 128 128 width: 18px; 129 129 height: 18px; 130 zoom: 1.5; 131 display:table-cell; 130 zoom: 1.; 132 131 } 133 132 … … 153 152 */ 154 153 .tfoot { 155 background: #737373 url( gradient.png) bottom left repeat-x;154 background: #737373 url(img/gradient.png) bottom left repeat-x; 156 155 color: #fff; 157 156 border-color: #525252; -
trunk/FACT++/www/smartfact/index.js
r13716 r13747 373 373 var htd2 = document.createElement("td"); 374 374 var htd3 = document.createElement("td"); 375 var htd4 = document.createElement("td"); 375 376 htd0.setAttribute("class", "tcell1"); 376 377 htd1.setAttribute("class", "tcell2"); … … 379 380 htd3.setAttribute("class", "tcell1"); 380 381 htd3.setAttribute("width", "1px"); 382 htd4.setAttribute("width", "1px"); 383 hhtr.appendChild(htd4); 381 384 hhtr.appendChild(htd3); 382 385 hhtr.appendChild(htd0); … … 387 390 var div2 = document.createElement("div"); 388 391 var div3 = document.createElement("div"); 392 var div4 = document.createElement("div"); 393 div4.id = "warn"+z; 389 394 div2.setAttribute("class", "icon_white"); 390 395 div3.setAttribute("class", "icon_white"); 396 div4.setAttribute("class", "icon_color"); 391 397 div2.setAttribute("style", "background-position:-396px 50%;"); 392 398 div3.setAttribute("style", "background-position:-575px 50%;"); 399 div4.setAttribute("style", "display:none;background-position:-12px -12px;"); 393 400 div3.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('fact', z, -z); } 394 401 div2.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage(fname, z, -dz); } … … 407 414 sp2.appendChild(document.createTextNode(" \u2022 ")); 408 415 if (title[1]!=undefined) 409 sp1.onclick = function() { submit(title[1]); } 416 { 417 // sp1.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('fact', z, -1); } 418 } 419 else 420 { 421 if (name!='control') 422 sp1.onclick = function() { this.style.backgroundColor='rgba(0,0,0,0.15)'; loadPage('control', z, +1); } 423 } 410 424 411 425 div1.setAttribute("style", "font-size:small;"); … … 422 436 if (lines[0]!="FACT") 423 437 htd3.appendChild(div3); // home 438 htd4.appendChild(div4); // Warning 424 439 425 440 // ----------------------------------------------------- … … 587 602 if (check.length==0 || check[0]!="input") 588 603 { 589 cell1.appendChild(document.createTextNode(cols[1])); 604 var div = document.createElement("div"); 605 div.innerHTML = cols[1]; 606 cell1.appendChild(div); 607 //cell1.appendChild(document.createTextNode(cols[1])); 590 608 591 609 if (cols.length>2 && cols[2].length>0) … … 606 624 alert("Argument name missing for'"+check[1]+"'"); 607 625 608 cell1.appendChild(document.createTextNode(opt[0])); 626 var div = document.createElement("div"); 627 div.innerHTML = opt[0]; 628 cell1.appendChild(div); 629 //cell1.appendChild(document.createTextNode(opt[0])); 609 630 610 631 var input = document.createElement("input"); … … 896 917 var date1 = new Date(); 897 918 898 if (tokens[0].length!=13) 919 var header = tokens[0].split('\t'); 920 921 // File corrupted /should we remove the date?) 922 if (header.length!=2 && header.length!=1 && header[0].length!=13) 899 923 { 900 924 if (date0 != null) 901 925 strike(time, date0.getTime()+60000>date1.getTime()); 902 // FIXME: Reset display to "---" values -- no connection903 926 return; 904 927 } 905 928 906 929 var date2 = new Date(); 907 date2.setTime(tokens[0]); 930 date2.setTime(header[0]); 931 932 $("warn"+z).style.display = header.length!=2 || header[1]=='1' ? "none" : ""; 908 933 909 934 strike(time, date2.getTime()+60000>date1.getTime()); … … 1320 1345 } 1321 1346 1322 var gfxtime0 = null;1323 1324 1347 function process_eventdata(result) 1325 1348 { … … 1338 1361 1339 1362 var data = result.split('\n'); 1340 if (result.length< 3)1341 return; 1342 1343 var l = data[0].length+1+data[1].length+1 ;1363 if (result.length<4) 1364 return; 1365 1366 var l = data[0].length+1+data[1].length+1+data[2].length+1; 1344 1367 1345 1368 switch (type) … … 1347 1370 //case "camera": drawCam(result); break; 1348 1371 case "hist": 1349 drawGraph(canv, data[ 0], data[1], result.substr(l));1372 drawGraph(canv, data[1], data[2], result.substr(l)); 1350 1373 break; 1351 1374 case "camera": 1352 1375 drawFullCam(result.substr(l)); 1353 drawCamLegend(canv, data[ 0], data[1]);1376 drawCamLegend(canv, data[1], data[2]); 1354 1377 break; 1355 1378 } 1356 1379 1357 var date = new Date(); 1358 if (gfxtime0 != null && gfxdate0.getTime()+60000>date.getTime()) 1359 { 1360 ctx.fillStyle = "rgba(255, 255, 255, 0.75)"; 1380 var now = new Date(); 1381 var tm = new Date(); 1382 tm.setTime(data[0]); 1383 if (tm.getTime()+60000<now.getTime()) 1384 { 1385 ctx.fillStyle = "rgba(255, 255, 255, 0.85)"; 1361 1386 ctx.fillRect(0, 0, canv.width, canv.height); 1362 1387 }
Note:
See TracChangeset
for help on using the changeset viewer.