1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

HTML style changes

To test migrating to HTML5
This commit is contained in:
mvoelkel 2016-01-25 16:12:53 +01:00
parent e65fb9aaab
commit 63458efe13
2 changed files with 23 additions and 13 deletions

View File

@ -1,5 +1,5 @@
// //
MenuItems = new Array(); MenuItems = new Array();
@ -10,27 +10,27 @@ MenuItems[0].Link = "index.html";
MenuItems[1] = new Object(); MenuItems[1] = new Object();
MenuItems[1].Text = "Browser TV"; MenuItems[1].Text = "Browser TV";
MenuItems[1].Link = "browsertv.html"; MenuItems[1].Link = "browsertv.html";
MenuItems[2] = new Object(); MenuItems[2] = new Object();
MenuItems[2].Text = "Stream Status"; MenuItems[2].Text = "Stream Status";
MenuItems[2].Link = "streamstatus.html"; MenuItems[2].Link = "streamstatus.html";
MenuItems[3] = new Object(); MenuItems[3] = new Object();
MenuItems[3].Text = "Tuner Status"; MenuItems[3].Text = "Tuner Status";
MenuItems[3].Link = "tunerstatus.html"; MenuItems[3].Link = "tunerstatus.html";
MenuItems[4] = new Object(); MenuItems[4] = new Object();
MenuItems[4].Text = "Unicable Settings"; MenuItems[4].Text = "Unicable Settings";
MenuItems[4].Link = "scif.html"; MenuItems[4].Link = "scif.html";
MenuItems[5] = new Object(); MenuItems[5] = new Object();
MenuItems[5].Text = "LNB Settings"; MenuItems[5].Text = "LNB Settings";
MenuItems[5].Link = "lnbsettings.html"; MenuItems[5].Link = "lnbsettings.html";
MenuItems[6] = new Object(); MenuItems[6] = new Object();
MenuItems[6].Text = "System Settings"; MenuItems[6].Text = "System Settings";
MenuItems[6].Link = "system.html"; MenuItems[6].Link = "system.html";
MenuItems[7] = new Object(); MenuItems[7] = new Object();
MenuItems[7].Text = "Multicast Setup"; MenuItems[7].Text = "Multicast Setup";
MenuItems[7].Link = "multicast.html"; MenuItems[7].Link = "multicast.html";
@ -38,7 +38,7 @@ MenuItems[7].Link = "multicast.html";
MenuItems[8] = new Object(); MenuItems[8] = new Object();
MenuItems[8].Text = "Channel Lists"; MenuItems[8].Text = "Channel Lists";
MenuItems[8].Link = "channellists.html"; MenuItems[8].Link = "channellists.html";
MenuItems[9] = new Object(); MenuItems[9] = new Object();
MenuItems[9].Text = "Update"; MenuItems[9].Text = "Update";
MenuItems[9].Link = "update.html"; MenuItems[9].Link = "update.html";
@ -62,7 +62,7 @@ MenuItems[12].Link = "licenses.html";
function CreateMenu() function CreateMenu()
{ {
document.write('<table class="menutable" align="center">'); document.write('<table class="menutable">');
for(i = 0; i < MenuItems.length; i++ ) for(i = 0; i < MenuItems.length; i++ )
{ {
if( document.URL.indexOf(MenuItems[i].Link) < 0 ) if( document.URL.indexOf(MenuItems[i].Link) < 0 )
@ -83,18 +83,18 @@ if( navigator.appVersion.indexOf("MSIE") >= 0 )
browserType = "MSIE"; browserType = "MSIE";
else else
browserType = "Netscape"; browserType = "Netscape";
if( browserType == "MSIE" ) if( browserType == "MSIE" )
browserLanguage = navigator.browserLanguage.substr(0,2); browserLanguage = navigator.browserLanguage.substr(0,2);
else if( browserType == "Netscape" ) else if( browserType == "Netscape" )
{ {
var nplat = navigator.platform.toLowerCase(); var nplat = navigator.platform.toLowerCase();
browserLanguage = navigator.language.substr(0,2); browserLanguage = navigator.language.substr(0,2);
if( nplat.indexOf("win") == 0 ) if( nplat.indexOf("win") == 0 )
browserPlatform = "win"; browserPlatform = "win";
else if( nplat.indexOf("linux") >= 0 ) else if( nplat.indexOf("linux") >= 0 )
browserPlatform = "linux"; browserPlatform = "linux";
else if( nplat.indexOf("ipad") >= 0 ) else if( nplat.indexOf("ipad") >= 0 )
browserPlatform = "ipad"; browserPlatform = "ipad";
} }

View File

@ -10,6 +10,8 @@ body {
background-color:#FFFFFF; background-color:#FFFFFF;
text-align:center; text-align:center;
border:0; border:0;
margin-left: auto;
margin-right: auto;
} }
.maintd { .maintd {
@ -23,6 +25,8 @@ body {
border:5px; border:5px;
width:95%; width:95%;
font-size:120%; font-size:120%;
margin-left: auto;
margin-right: auto;
} }
.menucur { .menucur {
@ -33,6 +37,12 @@ body {
.menutable a:link { text-decoration:none; color:#000000; } .menutable a:link { text-decoration:none; color:#000000; }
.menutable a:visited { text-decoration:none; color:#000000; } .menutable a:visited { text-decoration:none; color:#000000; }
.center-div {
margin-left: auto;
margin-right: auto;
}
.content { .content {
color:#000000; color:#000000;
background-color:#FFFFF0; background-color:#FFFFF0;