Changes between Version 3 and Version 4 of HTMLGfx


Ignore:
Timestamp:
Dec 27, 2014, 1:46:39 PM (10 years ago)
Author:
romw
Comment:

Checkpoint

Legend:

Unmodified
Added
Removed
Modified
  • HTMLGfx

    v3 v4  
    22
    33== Introduction ==
    4 HTML and JavaScript have become the predominate rendering technologies on the web.  Used for everything from web browsing to mobile phone applications.  HTMLGfx attempts to bring HTML rendering technologies into the BOINC graphics and screensaver environment.
     4HTML and !JavaScript have become the predominate rendering technologies on the web.  Used for everything from web browsing to mobile phone applications.  HTMLGfx attempts to bring HTML rendering technologies into the BOINC graphics and screensaver environment.
    55
    66By providing precompiled binaries the barrier to entry is greatly reduced allowing projects to deploy customized graphics for their applications. All projects would need to supply is the HTML/CSS/JavaScript required to display something about what is going on with the currently executing job.
     
    129129    The port, if configured for it, vboxwrapper has assigned to the task for Remote Desktop requests. (RDP)
    130130
    131 === !JavaScript Extension ===
     131=== !JavaScript Extension on Windows ===
     132Currently HTMLGfx can pass information to the HTML DOM via the 'window.external' extension.
     133
     134==== Methods ====
     135
     136|| Name                  || Returns || Description ||
     137|| !IsAppInitDataUpdated || Boolean || Informs the HTML document to refresh all the UI state information ||
     138|| !IsScreensaver        || Boolean || Was the graphics application launched in screensaver mode    ||
     139|| !IsSuspended          || Boolean || Whether the task is currently suspended ||
     140|| !IsNetworkSuspended   || Boolean || Should the UI suspend Internet activity ||
     141|| !IsExiting            || Boolean || Should the UI prepare to exit ||
     142|| !IsVboxwrapperJob     || Boolean || Is this task a vboxwrapper task? ||
     143|| !SetAppInitDataUpdate || void    || Sets the Boolean value to the specified input ||
     144
     145==== Properties ====
     146
     147|| Name                  || Data Type || Description ||
     148|| !ApplicationName      || string    || ||
     149|| !ApplicationVersion   || long      || ||
     150|| !WorkunitName         || string    || ||
     151|| !ResultName           || string    || ||
     152|| !TeamName             || string    || ||
     153|| !UserName             || string    || ||
     154|| !UserCreditTotal      || float     || ||
     155|| !UserCreditAverage    || float     || ||
     156|| !HostCreditTotal      || float     || ||
     157|| !HostCreditAverage    || float     || ||
     158|| !ExitCountdown        || float     || ||
     159|| !CPUTime              || float     || ||
     160|| !ElapsedTime          || float     || ||
     161|| !FractionDone         || float     || ||
     162|| !RemoteDesktopPort    || long      || ||
     163|| !WebAPIPort           || long      || ||
    132164
    133165
     166==== Examples ====
     167
     168Example of refreshing the state of various controls:
     169{{{
     170    refresh() {
     171        if (window.external.IsAppInitDataUpdated()) {
     172            window.external.SetAppInitDataUpdate(false);
     173            username = window.external.UserName;
     174            teamname = window.external.TeamName;
     175        }
     176        fractiondone = window.external.FractionDone;
     177    }
     178}}}