35 lines
769 B
JavaScript
35 lines
769 B
JavaScript
![]() |
function Rkiosk_donothing()
|
||
|
{
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
function rkioskclose()
|
||
|
{
|
||
|
close();
|
||
|
}
|
||
|
|
||
|
function Rkiosk_navbar_setting()
|
||
|
{
|
||
|
var rkiosk_navbar_enable="true";
|
||
|
var prefs = Components.classes["@mozilla.org/preferences-service;1"].
|
||
|
getService(Components.interfaces.nsIPrefBranch);
|
||
|
if (prefs.getPrefType("rkiosk.navbar") == prefs.PREF_BOOL){
|
||
|
if (prefs.getBoolPref("rkiosk.navbar")) rkiosk_navbar_enable = "false";
|
||
|
}
|
||
|
var rkiosk_element = document.getElementById("navigator-toolbox");
|
||
|
rkiosk_element.setAttribute("hidden", rkiosk_navbar_enable);
|
||
|
}
|
||
|
|
||
|
function RkioskBrowserStartup()
|
||
|
{
|
||
|
Rkiosk_navbar_setting();
|
||
|
BrowserStartup();
|
||
|
setTimeout(RkioskdelayedStartup, 1000);
|
||
|
}
|
||
|
|
||
|
function RkioskdelayedStartup()
|
||
|
{
|
||
|
window.fullScreen = true;
|
||
|
}
|