Changeset 13903 for trunk/FACT++/www/smartfact
- Timestamp:
- 05/26/12 10:56:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r13895 r13903 164 164 function trim(str) { return str.replace("/^\s\s*/", '').replace("/\s\s*$/", ''); } 165 165 function valid(str) { if (str==undefined) return false; if (str.length==0) return false; return true;} 166 function isSliding() { var z = $("body").getAttribute("data-visible"); return $("table"+z) .offsetLeft!=0; }166 function isSliding() { var z = $("body").getAttribute("data-visible"); return $("table"+z) ? $("table"+z).offsetLeft!=0 : false; } 167 167 function htmlDecode(input) { var e = $new('div'); e.innerHTML = input; return e.firstChild==undefined ? input : e.firstChild.nodeValue; } 168 168 function setUTC(el, time) { var str = time.toUTCString(); var utc = str.substr(str.length-12, 8); el.innerHTML = "• "+utc+" UTC •"; } … … 196 196 catch(e) 197 197 { 198 // FIXME: Add a message to the body. 198 199 alert("Your browser doesn't support dynamic reload."); 199 200 return; … … 248 249 function loadPage(name, z, dz) 249 250 { 251 if (isSliding()) 252 return; 253 250 254 var xmlPage = new XMLHttpRequest(); 251 255 xmlPage.open('POST', "struct/"+name+'.page', true);
Note:
See TracChangeset
for help on using the changeset viewer.