Changeset 6418


Ignore:
Timestamp:
Jul 30, 2008, 12:13:51 AM (13 years ago)
Author:
Gimp
Message:

Removing Extranious PHP from index file and Javascript. Add Conditional CSS links to iphone css.

Location:
trunk/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/index.html

    r6381 r6418  
    1 <?php $iPhone = (ereg("(iPhone|iPod)",$_SERVER['HTTP_USER_AGENT']))?>
    21<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    32<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     
    109                <link href="./images/favicon.ico" rel="SHORTCUT ICON" />
    1110                <script type="text/javascript" src="./javascript/jquery/jquery.min.js"></script>
    12                 <link media="screen" rel="stylesheet" type="text/css" href="./stylesheets/common.css" />
     11                <link media="only screen and (max-device-width: 480px)" href="./stylesheets/iphone.css" type= "text/css" rel="stylesheet">
     12                <link media="screen and (min-device-width: 481px)" href="./stylesheets/common.css" type="text/css" rel="stylesheet">
    1313                <script type="text/javascript" src="./javascript/jquery/jquery.transmenu.min.js"></script>
    1414                <script type="text/javascript" src="./javascript/jquery/jquery.contextmenu.min.js"></script>
     
    2323                <script type="text/javascript" src="./javascript/dialog.js"></script>
    2424        </head>
    25         <body id="transmission_body"<?php if ($iPhone) { ?> onorientationchange="updateLayout();" onload="updateLayout();"<?php } ?>>
     25        <body id="transmission_body">
    2626
    2727                <div class="torrent_global_menu">
  • trunk/web/javascript/common.js

    r6318 r6418  
    1515var iPhone = RegExp("(iPhone|iPod)").test(navigator.userAgent);
    1616if (iPhone) var scroll_timeout;
    17 
    18 /* (is this used?)
    19 function updateLayout()
    20 {
    21         if (iPhone) {
    22                 switch(window.orientation) {
    23                         case -90:
    24                                 $('body').addClass('landscape');
    25                                 break;
    26                         case 90:
    27                                 $('body').addClass('landscape');
    28                                 break;
    29                         default:
    30                                 $('body.landscape').removeClass('landscape');
    31                                 break;
    32                 }
    33                 transmission.hideiPhoneAddressbar(0.4);
    34         }
    35 };
    36 */
    3717
    3818function testSafari3()
Note: See TracChangeset for help on using the changeset viewer.