- all items levelled in one line - flags better centered in msie and in firefox - removed three white pixel lines (line 0-2) in firefox - all flags shown with a bit shadow, instead of only spain [and sweden] - nicer display of "logged in as <user>" - all labels in the same font instead of two fonts - smoother gradient background, espacially in winter Still not optimally vertical centered in chrome also fixed print css for some earlier changes to screen css
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
/***************************************************************************
|
|
* Opencaching PHP-Session timeout reminder implementation
|
|
*
|
|
* You can find the license in the docs directory of the CVS repository
|
|
*
|
|
* Unicode Reminder メモ
|
|
***************************************************************************/
|
|
|
|
// implementation incomplete in sys_main.tpl and missing in main.tpl
|
|
// therefore not in use
|
|
|
|
var nSessionTimeout = 30; // in minutes (default 30)
|
|
nSessionTimeout -= 3; // tolerance
|
|
|
|
var bSetTimoutWarning = false;
|
|
|
|
function initSessionTimeout()
|
|
{
|
|
var d = document.getElementById('sessionTimout');
|
|
d.firstChild.nodeValue = nSessionTimeout;
|
|
|
|
var oSessionCheck = self.setInterval("checkSessionTimeout()", 60000);
|
|
}
|
|
|
|
function checkSessionTimeout()
|
|
{
|
|
var d = document.getElementById('sessionTimout');
|
|
d.firstChild.nodeValue = nSessionTimeout;
|
|
nSessionTimeout = nSessionTimeout - 1;
|
|
|
|
if (nSessionTimeout < 10 && bSetTimoutWarning==false)
|
|
{
|
|
document.getElementById('sessionWarn').style.display = 'block';
|
|
bSetTimoutWarning = true;
|
|
}
|
|
|
|
if (nSessionTimeout == 0)
|
|
{
|
|
self.location = 'login.php?action=logout';
|
|
self.clearInterval(oSessionCheck);
|
|
}
|
|
}
|
|
|
|
function cancelSessionTimeout()
|
|
{
|
|
alert(sSessionId);
|
|
} |