Changeset 13926 for trunk/FACT++/www/smartfact
- Timestamp:
- 05/26/12 18:51:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r13925 r13926 429 429 div2.setAttribute("style", "background-position:-396px 50%;"); 430 430 div4.setAttribute("style", "display:none;background-position:-12px -12px;"); 431 div2.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage(fname, z, -dz); } 432 div4.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('error', z, +1); } 431 div2.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage(fname, z, -dz); }; 432 div4.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('error', z, +1); }; 433 433 434 434 if (name=="fact") … … 441 441 div3.setAttribute("class", "icon_white"); 442 442 div3.setAttribute("style", "background-position:-575px 50%;"); 443 div3.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('fact', z, -1); } 443 div3.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('fact', z, -1); }; 444 444 } 445 445 … … 458 458 if (is_cmd) 459 459 { 460 sp1.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; submit(name); this.style.backgroundColor=''; } 460 sp1.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; submit(name); this.style.backgroundColor=''; }; 461 461 } 462 462 else 463 463 { 464 464 if (name!='control') 465 sp1.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.15)'; loadPage('control', z, +1); } 465 sp1.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.15)'; loadPage('control', z, +1); }; 466 466 } 467 467 … … 470 470 div1.appendChild($txt("---")); 471 471 472 div1.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; sendCommand('stop'); this.style.backgroundColor=''; } 472 div1.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; sendCommand('stop'); this.style.backgroundColor=''; }; 473 473 474 474 htd0.appendChild(sp0); … … 537 537 fdiv3.setAttribute("class", "icon_white"); 538 538 fdiv2.setAttribute("style", "background-position:-72px 50%;"); 539 fdiv2.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; sendCommand('stop'); this.style.backgroundColor=''; } 539 fdiv2.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; sendCommand('stop'); this.style.backgroundColor=''; }; 540 540 if (is_cmd) 541 541 { 542 fdiv3.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; submit(name); this.style.backgroundColor=''; } 542 fdiv3.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; submit(name); this.style.backgroundColor=''; }; 543 543 fdiv3.setAttribute("style", "background-position:-109px 50%;"); 544 544 } 545 545 else 546 546 { 547 fdiv3.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('control', z, +1); } 547 fdiv3.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('control', z, +1); }; 548 548 fdiv3.setAttribute("style", "background-position:-288px 50%;"); 549 549 } … … 559 559 fdivH.setAttribute("class", "icon_white"); 560 560 fdivH.setAttribute("style", "background-position:-611px 50%;"); 561 fdivH.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('help-'+name, z, +1); } 561 fdivH.onclick = function () { this.style.backgroundColor='rgba(0,0,0,0.77)'; loadPage('help-'+name, z, +1); }; 562 562 } 563 563 … … 1260 1260 case 0: this.x = ring*0.5 + i*0.5; this.y = -ring + i; break; 1261 1261 } 1262 this.d = (function () { return this.x*this.x + this.y*this.y*3/4; }) 1262 this.d = (function () { return this.x*this.x + this.y*this.y*3/4; }); 1263 1263 } 1264 1264
Note:
See TracChangeset
for help on using the changeset viewer.