Changeset 6418 for trunk/web/index.html


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.

File:
1 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">
Note: See TracChangeset for help on using the changeset viewer.