Removing Extranious PHP from index file and Javascript. Add Conditional CSS links to iphone css.
This commit is contained in:
parent
9006f75edb
commit
c1688e3f90
|
@ -1,4 +1,3 @@
|
|||
<?php $iPhone = (ereg("(iPhone|iPod)",$_SERVER['HTTP_USER_AGENT']))?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
|
@ -9,7 +8,8 @@
|
|||
<link rel="apple-touch-icon" href="./images/webclip-icon.png"/>
|
||||
<link href="./images/favicon.ico" rel="SHORTCUT ICON" />
|
||||
<script type="text/javascript" src="./javascript/jquery/jquery.min.js"></script>
|
||||
<link media="screen" rel="stylesheet" type="text/css" href="./stylesheets/common.css" />
|
||||
<link media="only screen and (max-device-width: 480px)" href="./stylesheets/iphone.css" type= "text/css" rel="stylesheet">
|
||||
<link media="screen and (min-device-width: 481px)" href="./stylesheets/common.css" type="text/css" rel="stylesheet">
|
||||
<script type="text/javascript" src="./javascript/jquery/jquery.transmenu.min.js"></script>
|
||||
<script type="text/javascript" src="./javascript/jquery/jquery.contextmenu.min.js"></script>
|
||||
<script type="text/javascript" src="./javascript/menu.js"></script>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<script type="text/javascript" src="./javascript/torrent.js"></script>
|
||||
<script type="text/javascript" src="./javascript/dialog.js"></script>
|
||||
</head>
|
||||
<body id="transmission_body"<?php if ($iPhone) { ?> onorientationchange="updateLayout();" onload="updateLayout();"<?php } ?>>
|
||||
<body id="transmission_body">
|
||||
|
||||
<div class="torrent_global_menu">
|
||||
<ul>
|
||||
|
|
|
@ -15,26 +15,6 @@ var Safari3 = testSafari3();
|
|||
var iPhone = RegExp("(iPhone|iPod)").test(navigator.userAgent);
|
||||
if (iPhone) var scroll_timeout;
|
||||
|
||||
/* (is this used?)
|
||||
function updateLayout()
|
||||
{
|
||||
if (iPhone) {
|
||||
switch(window.orientation) {
|
||||
case -90:
|
||||
$('body').addClass('landscape');
|
||||
break;
|
||||
case 90:
|
||||
$('body').addClass('landscape');
|
||||
break;
|
||||
default:
|
||||
$('body.landscape').removeClass('landscape');
|
||||
break;
|
||||
}
|
||||
transmission.hideiPhoneAddressbar(0.4);
|
||||
}
|
||||
};
|
||||
*/
|
||||
|
||||
function testSafari3()
|
||||
{
|
||||
var minimum = new Array(521,0);
|
||||
|
|
Loading…
Reference in New Issue