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) { |
9 butt1 = document.getElementById('search_button'); |
9 butt1 = document.getElementById('relnote_button'); |
10 butt2 = document.getElementById('relnote_button'); |
10 butt2 = document.getElementById('survey_button'); |
11 butt3 = document.getElementById('reportbug_button'); |
|
12 butt4 = document.getElementById('survey_button'); |
|
13 |
11 |
14 switch (num) |
12 switch (num) |
15 { |
13 { |
16 case 1: // user pressed search button |
14 case 1: |
17 butt1.setAttribute('class', 'button_p'); |
15 butt1.setAttribute('class', 'button_p'); |
18 break; |
16 break; |
19 case 2: // user pressed relnotes button |
17 case 2: |
20 butt2.setAttribute('class', 'button_p'); |
18 butt2.setAttribute('class', 'button_p'); |
21 break; |
19 alert ("No Survey Link"); |
22 case 3: // user pressed bug report button |
|
23 butt3.setAttribute('class', 'button_p'); |
|
24 break; |
|
25 case 4: // user pressed survey button |
|
26 butt4.setAttribute('class', 'button_p'); |
|
27 break; |
20 break; |
28 case 9: // reset on refocus |
21 case 9: // reset on refocus |
29 butt1.setAttribute('class', 'button'); |
22 butt1.setAttribute('class', 'button'); |
30 butt2.setAttribute('class', 'button'); |
23 butt2.setAttribute('class', 'button'); |
31 butt3.setAttribute('class', 'button'); |
|
32 butt4.setAttribute('class', 'button'); |
|
33 break; |
24 break; |
34 } |
25 } |
35 |
26 |
36 } |
27 } |
37 |
28 |
42 <div id="row1_logos"> |
33 <div id="row1_logos"> |
43 <img id="nokia_logo" src="nokia_logo.png" /> |
34 <img id="nokia_logo" src="nokia_logo.png" /> |
44 <img id="bedrock_logo" src="bedrock.png" /> |
35 <img id="bedrock_logo" src="bedrock.png" /> |
45 <div id="browser_version"> |
36 <div id="browser_version"> |
46 <div id="release_version"> |
37 <div id="release_version"> |
47 ALPHA <span id="roman_num">III</span> |
38 <script type="text/javascript"> |
|
39 var UAString = navigator.userAgent; |
|
40 var brNameVer = "unknown"; |
|
41 var UALen = 1; |
|
42 var nameStart = 1; |
|
43 |
|
44 // options for Welcome Page browser version information |
|
45 //document.write("ALPHA <span id='roman_num'>III</span>"); |
|
46 //document.write("BETA"); |
|
47 document.write("TRUNK BUILD"); |
|
48 |
|
49 |
|
50 UALen = UAString.length; |
|
51 // NOTE: if UA String changes browser name from Bedrock to |
|
52 // something else we'll need to change the following line! |
|
53 nameStart = UAString.indexOf("Bedrock"); |
|
54 // test to see if "Bedrock" is in the UA String at all |
|
55 if (nameStart < 0) |
|
56 brNameVer = "NOT a Bedrock Browser"; |
|
57 else |
|
58 { |
|
59 // crop string starting at "Bedrock" |
|
60 brNameVer = UAString.substring(nameStart, UALen); |
|
61 // limit substring to "Bedrock" and version only |
|
62 brNameVer = brNameVer.substr(0, brNameVer.indexOf(" ")); |
|
63 // clean up string for presentation |
|
64 brNameVer = brNameVer.replace("/", " v"); |
|
65 } |
|
66 // comment OUT next two lines to remove build info... |
|
67 document.write(" - "); |
|
68 document.write(brNameVer); |
|
69 document.write("<br/>"); |
|
70 </script> |
48 </div> |
71 </div> |
49 <script type="text/javascript"> |
|
50 var UAString = navigator.userAgent; |
|
51 var brNameVer = "unknown"; |
|
52 var UALen = 1; |
|
53 var nameStart = 1; |
|
54 |
|
55 UALen = UAString.length; |
|
56 // NOTE: if UA String changes browser name from Bedrock to |
|
57 // something else we'll need to change the following line! |
|
58 nameStart = UAString.indexOf("Bedrock"); |
|
59 // test to see if "Bedrock" is in the UA String at all |
|
60 if (nameStart < 0) |
|
61 brNameVer = "NOT a Bedrock Browser"; |
|
62 else |
|
63 { |
|
64 // crop string starting at "Bedrock" |
|
65 brNameVer = UAString.substring(nameStart, UALen); |
|
66 // limit substring to "Bedrock" and version only |
|
67 brNameVer = brNameVer.substr(0, brNameVer.indexOf(" ")); |
|
68 // clean up string for presentation |
|
69 brNameVer = brNameVer.replace("/", " v"); |
|
70 } |
|
71 // document.write(brNameVer); |
|
72 document.write ("<br/>"); |
|
73 </script> |
|
74 </div> |
72 </div> |
75 <div id="buttons"> |
73 <div id="jerry_sez"> |
76 <a href="http://www.google.com/" onMouseDown="pressed(1)"><img id="search_button" class="button" src="button_search_google.png" /></a> |
74 <img src="button4.png" onMouseDown="pressed(25)"></img> |
77 <a href="relnotes.html" onMouseDown="pressed(2)"><img id="relnote_button" class="button" src="button_rel_notes.png" /></a> |
75 </div> |
78 <a href="http://www.browser-nokia.com/bug_report.html" onMouseDown="pressed(3)"><img id="reportbug_button" class="button" src="button_report_bug.png" /></a> |
76 <div id="buttons"> |
79 <a href="http://www.browser-nokia.com/survey.html" onMouseDown="pressed(4)"><img id="survey_button" class="button" src="button_survey.png" /></a> |
77 <a href="relnotes.html" onMouseDown="pressed(1)"><img id="relnote_button" class="button" src="button_rel_notes.png" /></a> |
|
78 <a href="startpage.html" onMouseDown="pressed(2)"><img id="survey_button" class="button" src="button_survey.png" /></a> |
80 </div> |
79 </div> |
81 <div id="bottom_pad"> |
80 <div id="bottom_pad"> |
82 </div> |
81 </div> |
83 </div> |
82 </div> |
84 </body> |
83 </body> |