Reduce delay

master
Gary 2022-01-10 22:45:53 +00:00
parent 3c9761b56d
commit 053554cb75
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ for ($ui = 1; $ui <= $urlcount; $ui++) {
echo " frame$ui.location = url$ui;\n";
}
echo " setInterval('ScreenRefresh()',".$tabTime."000);\n";
echo " setTimeout('ScreenRefresh()',2000);\n";
echo " setTimeout('ScreenRefresh()',500);\n";
echo "}\n";
echo "function ScreenRefresh() {\n";
@ -84,7 +84,7 @@ if ($urlcount>1) {
echo " screen$ui.style = 'display: none;';\n";
}
echo " if (CURPAGE == 'screen1') {\n";
echo " setTimeout(\"screen1.style = 'display: block;';\",2000);\n";
echo " setTimeout(\"screen1.style = 'display: block;';\",500);\n";
if (isset($urls[$urlk[0]]['tabRefresh']) && $urls[$urlk[0]]['tabRefresh']) {
echo " frame1.location = url1;\n";
} elseif (!isset($urls[$urlk[0]]['tabRefresh']) && $tabRefresh) {
@ -93,7 +93,7 @@ if ($urlcount>1) {
echo " CURPAGE = 'screen2';\n";
for ($ui = 2; $ui <= $urlcount; $ui++) {
echo " } else if (CURPAGE == 'screen$ui') {\n";
echo " setTimeout(\"screen$ui.style = 'display: block;';\",2000);\n";
echo " setTimeout(\"screen$ui.style = 'display: block;';\",500);\n";
if (isset($urls[$ui-1]['tabRefresh']) && $urls[$ui-1]['tabRefresh']) {
echo " frame$ui.location = url$ui;\n";
} elseif (!isset($urls[$ui-1]['tabRefresh']) && $tabRefresh) {