Update 3DSTownSquare to its current state
This commit is contained in:
parent
9bb58c9e33
commit
2887a49ba1
10 changed files with 2191 additions and 15 deletions
11
detect.php
11
detect.php
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
$isDSi = false;
|
||||
$width = "320";
|
||||
$height1 = "208";
|
||||
$height2 = "222";
|
||||
$height1 = "218";
|
||||
$height2 = "212";
|
||||
if(strpos($_SERVER["HTTP_USER_AGENT"], "Nintendo DSi") !== false){
|
||||
$width = "240";
|
||||
$height1 = "176";
|
||||
|
|
@ -13,7 +13,12 @@ if(strpos($_SERVER["HTTP_USER_AGENT"], "Nintendo DSi") !== false){
|
|||
}
|
||||
$cbp = (78.125 / 100) * intval($width);
|
||||
$cbp1 = strval($cbp);
|
||||
|
||||
echo "<style>
|
||||
body {
|
||||
font-size: 10px !important;
|
||||
}
|
||||
</style>
|
||||
<script>setTimeout(\"document.body.scrollTop = " . $height1 . ";\", 100);</script>";
|
||||
if(count(get_included_files()) == 1 && count(get_required_files()) == 1){
|
||||
echo "Top screen: ". $width . "x" . $height1 . ", bottom screen: " . $width . "x" . $height2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue