1 <html> |
|
2 <head> |
|
3 <title>Bedrock Browser Start Page</title> |
|
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"/> |
|
6 </head> |
|
7 <body> |
|
8 <div id="top_left"><img src="nokia_logo.png" height="30" /></div> |
|
9 <script type="text/javascript"> |
|
10 document.write("<div id='top_right'>"); |
|
11 document.write("Alpha 3"); |
|
12 document.write("<br/>"); |
|
13 document.write("DRAFT"); |
|
14 document.write("</div>"); |
|
15 </script> |
|
16 <div id="button_grid"> |
|
17 <img src="bedrock.png" height="60" /> |
|
18 <br/> |
|
19 <br/> |
|
20 <br/> |
|
21 <a href="relnotes.html"><img src="button3.png" width="200" id="image_search" /></a> |
|
22 <a href="http://www.google.com/"><img src="button1.png" width="200" id="image_search" /></a> |
|
23 </div> |
|
24 <div id="browser_version"> |
|
25 <script type="text/javascript"> |
|
26 var UAString = navigator.userAgent; |
|
27 var brNameVer = "unknown"; |
|
28 var UALen = 1; |
|
29 var nameStart = 1; |
|
30 |
|
31 UALen = UAString.length; |
|
32 // NOTE: if UA String changes browser name from Bedrock to something else we'll need to change the following line! |
|
33 nameStart = UAString.indexOf("Bedrock"); |
|
34 // test to see if "Bedrock" is in the UA String at all |
|
35 if (nameStart < 0) |
|
36 brNameVer = "NOT a Bedrock Browser"; |
|
37 else |
|
38 { |
|
39 // crop string starting at "Bedrock" |
|
40 brNameVer = UAString.substring(nameStart, UALen); |
|
41 // limit substring to "Bedrock" and version only |
|
42 brNameVer = brNameVer.substr(0, brNameVer.indexOf(" ")); |
|
43 // clean up string for presentation |
|
44 brNameVer = brNameVer.replace("/", " v"); |
|
45 } |
|
46 document.write(brNameVer); |
|
47 </script> |
|
48 </div> |
|
49 </body> |
|
50 </html> |
|
51 |
|