https://dsibrew.org/w/api.php?action=feedcontributions&user=Umer936&feedformat=atomDSiBrew - User contributions [en]2024-03-28T17:02:45ZUser contributionsMediaWiki 1.35.8https://dsibrew.org/w/index.php?title=Nintendo_DSi_Browser&diff=2098838Nintendo DSi Browser2017-04-04T01:50:23Z<p>Umer936: Socialcu.be does not have https</p>
<hr />
<div>The '''Nintendo DSi Browser''' is a free application downloadable from the [[Nintendo DSi Shop]]. It is capable of browsing the internet, but only with some plugins, including Javascript. Adobe Flash is not compatible with the application. Though Flash is not supported, sites such as DSiCade and DSiPaint have took advantage of the Javascript functionality and created games and applications, similar to ones created for Adobe Flash.<br />
<br />
== Changelog ==<br />
<br />
=== 29/30 July 2009 version (507) ===<br />
<br />
* Reducing the size by 3 blocks<br />
<br />
=== First version (483) ===<br />
<br />
* First release<br />
<br />
== Features/Limitations ==<br />
<br />
{|class="wikitable sortable" width="300px"<br />
! Feature<br />
! Supported<br />
|-<br />
| Audio<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| Canvas<br />
| bgcolor="#ffffdd" | Limited<br />
|- <br />
| CSS2<br />
| bgcolor="#ddffdd" | Yes<br />
|- <br />
| CSS3<br />
| bgcolor="#ffffdd" | Partial ([http://www.css3.info/selectors-test/ test here])<br />
|- <br />
| DOM<br />
| bgcolor="#ddffdd" |Yes<br />
|- <br />
| DOM2<br />
| bgcolor="#ddffdd" |Yes<br />
|- <br />
| Javascript<br />
| bgcolor="#ddffdd" | Yes<br />
|-<br />
| File Download<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| File Upload<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| Flash<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| HTML5<br />
| bgcolor="#ffffdd" | Partial<br />
|-<br />
| Plugins<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| SVG<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| Video<br />
| bgcolor="#ffdddd" | No<br />
|-<br />
| XHTML<br />
| bgcolor="#ddffdd" | Yes<br />
|-<br />
| XMLHttpRequest<br />
| bgcolor="#ddffdd" | Yes<br />
|}<br />
<br />
== User Agent strings ==<br />
<br />
Sample DSi Browser User Agent Strings :<br />
*Opera/9.50 (Nintendo DSi; Opera/483; U; en-US)<br />
*Opera/9.50 (Nintendo DSi; Opera/483; U; en-GB)<br />
*Opera/9.50 (Nintendo DSi; Opera/507; U; en-US)<br />
*Opera/9.50 (Nintendo DSi; Opera/507; U; en-GB)<br />
<br />
== Tips ==<br />
<br />
=== Vertical mode ===<br />
<br />
To active the vertical mode automatically, add one of the following tags between <head></head> :<br />
<br />
<meta name="viewport" content="width=device-width"><br />
<meta name="viewport" content="width=240"><br />
<br />
Using device-width will adapt the page to the width of other mobile devices.<br />
<br />
You can test this mode with the following demo page: [http://dsipaint.com DSiPaint].<br />
<br />
=== Detect User Agent ===<br />
To detect if the user agent is Nintendo DSi Browser :<br />
<script type="text/javascript"><br />
window.onload=function<br />
<br />
=== Key Codes ===<br />
<br />
{|class="wikitable" width="20%"<br />
! Code !! Button <br />
|-<br />
| 13 || A<br />
|-<br />
| 37 || Left<br />
|-<br />
| 38 || Up<br />
|-<br />
| 39 || Right<br />
|-<br />
| 40 || Down<br />
|}<br />
<br />
'''Notes''' :<br />
<br />
* Only A, Up, and Down normally emit codes<br />
* Left and Right can be read only if L or R are held<br />
* Holding L or R disables the A button<br />
<br />
== Screen Resolution ==<br />
<br />
The DSi screen resolution is 256x192. However, the viewable area in the browser is only <b>240x176</b>. Both screens provide the same viewable area. <br />
<br />
In vertical mode, you can have a page span both screens. However, the browser will behave as if the bottom screen is the only active screen and the top screen is scrolled off. This is important when computing CSS coordinates. Items positioned from "bottom" will be positioned based on 176px and not the full 352px of both screens.<br />
<br />
== Using Both Screens ==<br />
<br />
Here's how your webpage can span both screens:<br />
<br />
# Use the meta tag to set vertical mode<br />
# Ensure that your page takes up exactly 240x352 pixels.<br />
# Add the following JavaScript just before the </body> tag:<br />
<br />
<script type="text/javascript">document.body.scrollTop = 176;</script><br />
<br />
Generally the easiest way to accomplish the correct layout is to create HTML elements that "contain" the top and bottom screens. Here's an example:<br />
<br />
<html><br />
<head><br />
<meta name="viewport" content="width=240" /><br />
<style type="text/css"><br />
body { margin: 0px; }<br />
#topscreen, #bottomscreen { width: 240px; height: 176px; overflow: hidden; }<br />
</style><br />
</head><br />
<body><br />
&lt;div id="topscreen">Top Screen&lt;/div><br />
&lt;div id="bottomscreen">Bottom Screen&lt;/div><br />
</body><br />
</html><br />
<br />
This scheme allows the page to be easily manipulated through JavaScript.<br />
<br />
== Example Sites ==<br />
<!-- If you have a website that demonstrates these techniques, place it here! --><br />
* [http://dsipaint.com DSiPaint]<br />
* [http://socialcu.be SocialCu.be]<br />
* [http://www.dsicade.com DSiCade]<br />
* [http://hullbreachonline.com/ds HullBreach Online Lite]<br />
<br />
== See also ==<br />
<br />
* [[Nintendo DSi Shop]]<br />
* [[Nintendo Software]]</div>Umer936