ginebra2/chrome/localpages/startpage.html
changeset 6 1c3b8676e58c
parent 5 0f2326c2a325
equal deleted inserted replaced
5:0f2326c2a325 6:1c3b8676e58c
     1 <html>
     1 <html>
     2   <head>
     2   <head>
     3 	  <title>Bedrock Browser Welcome Page</title>
     3 	  <title>Welcome Page</title>
     4 	  <meta name = "viewport" content = "width = device-width, height = device-height, initial-scale = 1.0, user-scalable = no">
     4 	  <meta name = "viewport" content = "width = device-width, height = device-height, initial-scale = 1.0, user-scalable = no">
     5 	  <link rel="stylesheet" type="text/css" href="startpage.css"/>
     5 	  <link rel="stylesheet" type="text/css" href="startpage.css"/>
     6   </head>
     6   </head>
     7   <script type="text/javascript">
     7   <script type="text/javascript">
     8   	function pressed (num) {
     8   	function pressed (num) {
    21 			case 9: // reset on refocus
    21 			case 9: // reset on refocus
    22 				butt1.setAttribute('class', 'button');
    22 				butt1.setAttribute('class', 'button');
    23 				butt2.setAttribute('class', 'button');
    23 				butt2.setAttribute('class', 'button');
    24 				break;
    24 				break;
    25 		}
    25 		}
    26 
       
    27 	}
    26 	}
    28   
    27   
    29   </script>
    28   </script>
    30   <body onFocus="pressed(9)" >
    29   <body onFocus="pressed(9)" >
    31   <img id="bgimage" src="grad_tall.jpg" />
    30   <img id="bgimage" src="grad_tall.jpg" />
    32   <div id="content">
    31   <div id="content">
    33     <div id="row1_logos">
    32     <div id="row1_logos">
    34 	    <img id="nokia_logo" src="nokia_logo.png" />
    33 	    <img id="nokia_logo" src="nokia_logo.png" />
    35 	    <img id="bedrock_logo" src="bedrock.png" />
    34 	    <img id="browser_logo" src="bedrock.png" />
    36         <div id="browser_version">
    35         <div id="browser_version">
    37             <div id="release_version">
    36             <div id="release_version">
    38 	            <script type="text/javascript">
    37 	            <script type="text/javascript">
    39 	                var UAString = navigator.userAgent;
    38 	                var UAString = navigator.userAgent;
    40 	                var brNameVer = "unknown";
    39 	                var brNameVer = "unknown";
    44 					// options for Welcome Page browser version information
    43 					// options for Welcome Page browser version information
    45 		            //document.write("ALPHA <span id='roman_num'>III</span>");
    44 		            //document.write("ALPHA <span id='roman_num'>III</span>");
    46 		            //document.write("BETA");
    45 		            //document.write("BETA");
    47 		            document.write("TRUNK BUILD");
    46 		            document.write("TRUNK BUILD");
    48 
    47 
    49 
    48 					// Get, parse, display UA String
    50 	                UALen = UAString.length;
    49 	                UALen = UAString.length;
    51 	                // NOTE: if UA String changes browser name from Bedrock to 
    50 	                // NOTE: if UA String changes browser name to 
    52 	                // something else we'll need to change the following line!
    51 	                // something else we'll need to change the following line!
    53 	                nameStart = UAString.indexOf("Bedrock");
    52 	                nameStart = UAString.indexOf("NokiaBrowser");
    54 	                // test to see if "Bedrock" is in the UA String at all
    53 	                // test to see if "NokiaBrowser" is in the UA String at all
    55 	                if (nameStart < 0)
    54 	                if (nameStart < 0)
    56 	                    brNameVer = "NOT a Bedrock Browser";
    55 						brNameVer = "UA = <br/>" + UAString;
    57 	                else
    56 	                else
    58 	                {
    57 	                {
    59 	                    // crop string starting at "Bedrock"
    58 	                    // crop string starting at "NokiaBrowser"
    60 	                    brNameVer = UAString.substring(nameStart, UALen);
    59 	                    brNameVer = UAString.substring(nameStart, UALen);
    61 	                    // limit substring to "Bedrock" and version only
    60 	                    // limit substring to "NokiaBrowser" and version only
    62 	                    brNameVer = brNameVer.substr(0, brNameVer.indexOf(" "));
    61 	                    brNameVer = brNameVer.substr(0, brNameVer.indexOf(" "));
    63 	                    // clean up string for presentation
    62 	                    // clean up string for presentation
    64 	                    brNameVer = brNameVer.replace("/", " v");
    63 	                    brNameVer = brNameVer.replace("/", " v");
    65 	                }
    64 	                }
    66 					// comment OUT next two lines to remove build info...
    65 					// comment OUT next two lines to remove build info...