Ignore:
Timestamp:
05/26/12 18:51:16 (13 years ago)
Author:
tbretz
Message:
Added semi-colons behind inline functions.
File:
1 edited

Legend:

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

    r13925 r13926  
    429429    div2.setAttribute("style", "background-position:-396px 50%;");
    430430    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); };
    433433
    434434    if (name=="fact")
     
    441441        div3.setAttribute("class", "icon_white");
    442442        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); };
    444444    }
    445445
     
    458458    if (is_cmd)
    459459    {
    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=''; };
    461461    }
    462462    else
    463463    {
    464464        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); };
    466466    }
    467467
     
    470470    div1.appendChild($txt("---"));
    471471
    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=''; };
    473473
    474474    htd0.appendChild(sp0);
     
    537537    fdiv3.setAttribute("class", "icon_white");
    538538    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=''; };
    540540    if (is_cmd)
    541541    {
    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=''; };
    543543        fdiv3.setAttribute("style", "background-position:-109px 50%;");
    544544    }
    545545    else
    546546    {
    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); };
    548548        fdiv3.setAttribute("style", "background-position:-288px 50%;");
    549549    }
     
    559559        fdivH.setAttribute("class", "icon_white");
    560560        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); };
    562562    }
    563563
     
    12601260    case 0: this.x =  ring*0.5 + i*0.5;  this.y = -ring + i; break;
    12611261    }
    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; });
    12631263}
    12641264
Note: See TracChangeset for help on using the changeset viewer.