Internet Browser: Difference between revisions
Tonyzamboney (talk | contribs) →Detect User Agent: Mobile site mode, misc. improvements |
m Update link to ImageShare |
||
(3 intermediate revisions by one other user not shown) | |||
Line 456: | Line 456: | ||
| 9 || Start | | 9 || Start | ||
|- | |- | ||
| 10 || | | 10 || Unused | ||
|- | |- | ||
| 11 || | | 11 || Unused | ||
|- | |- | ||
| 12 || Up | | 12 || Up | ||
Line 469: | Line 469: | ||
|} | |} | ||
Each | Each button's value is 0 while the button is not pressed, and 1 while the button is pressed. | ||
Based on the Gamepad API's specifications, buttons 10 and 11 are reserved for left stick presses and right stick presses respectively, which the 3DS does not support. | |||
==== Notes ==== | ==== Notes ==== | ||
Line 481: | Line 481: | ||
* Favicons can be changed using Javascript, but they become unchangeable once the document's <em>readystatechange</em> event finishes firing with a ready state of "complete". | * Favicons can be changed using Javascript, but they become unchangeable once the document's <em>readystatechange</em> event finishes firing with a ready state of "complete". | ||
* Focusing on text-editable elements via Javascript will always open the keyboard. | * Focusing on text-editable elements via Javascript will always open the keyboard. | ||
* Webpage content is usually rendered at 30 FPS despite the <code>webkitRequestAnimationFrame</code> function allowing code to run at a rate of 60 FPS. | |||
** As a result, display-related routines may only show half of their intended updates. | |||
** This issue can be mitigated by rendering on every other frame. However, various factors (such as touchscreen input and sleep mode) make this fairly inconsistent. | |||
== Old3DS browser == | == Old3DS browser == | ||
Line 878: | Line 881: | ||
* HTML5Test.com say that Drag and drop is supported but it's not (code on WebKit is ready, but it's not implemented on interface of browser) | * HTML5Test.com say that Drag and drop is supported but it's not (code on WebKit is ready, but it's not implemented on interface of browser) | ||
* Webpages are rendered with the RGB565 color format. | * Webpages are rendered with the RGB565 color format. | ||
==Tips== | ==Tips== | ||
Line 981: | Line 983: | ||
<!-- If you have a website that demonstrates these techniques, place it here! --> | <!-- If you have a website that demonstrates these techniques, place it here! --> | ||
* [http://www.nintendo.com/3ds/internetbrowser/bookmarks Nintendo 3DS Bookmarks]: This is the first bookmark pre-installed in the browser. | * [http://www.nintendo.com/3ds/internetbrowser/bookmarks Nintendo 3DS Bookmarks]: This is the first bookmark pre-installed in the browser. | ||
* [ | * [http://theimageshare.com ImageShare]: Image uploader for the 3DS ([https://github.com/corbindavenport/imageshare source code]) | ||
* [http://3ds.andysmith.co.uk/jFox.html jFox] (Short URL: http://bit.ly/iB7FqW) | * [http://3ds.andysmith.co.uk/jFox.html jFox] (Short URL: http://bit.ly/iB7FqW) | ||
* [http://ditto3d.com/3ds Ditto3D (Dead Link)] (Short URL: http://bit.ly/oVreWA) | * [http://ditto3d.com/3ds Ditto3D (Dead Link)] (Short URL: http://bit.ly/oVreWA) |