<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SitePhone = SiteKiosk.Plugins("SitePhone");
SitePhone.OnStateChanged = OnStateChanged;
S_OFFLINE = 0;
S_CONNECTING = 1;
S_PAUSING = 2;
S_ONLINE = 3;
function OnStateChanged()
{
switch (SitePhone.State)
{
case S_OFFLINE:
SiteKiosk.Logfile.Notification("SitePhone is now offline.");
break;
case S_CONNECTING:
SiteKiosk.Logfile.Notification("SitePhone is now connecting.");
break;
case S_PAUSING:
SiteKiosk.Logfile.Notification("SitePhone is now pausing.");
break;
case S_ONLINE:
SiteKiosk.Logfile.Notification("SitePhone is now online.");
break;
default:
SiteKiosk.Logfile.Notification("SitePhone state is unknown.");
}
}
</SCRIPT>
|