]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/mobile/base.mako
Use ajax.googleapis.com for jQuery instead of hosting it locally.
[bluechips.git] / bluechips / templates / mobile / base.mako
index 37aca7f0aabf52ccfca1689d37e24f568f94adf9..099bcb99bf4a49ced28d7bf56eb80c0b38bdd359 100644 (file)
@@ -5,9 +5,12 @@
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <title>${self.title()}</title>
     ${h.stylesheet_link('/css/main.css')}
-    <link media="only screen and (max-device-width: 480px)" href="/css/mobile.css" type="text/css" rel="stylesheet">
-    <meta name="viewport" content="width = device-width, user-scalable=no">
-    <link rel="apple-touch-icon" href="/icons/apple-touch.png">
+    <link media="only screen and (max-device-width: 480px)" href="/css/mobile.css" type="text/css" rel="stylesheet" />
+    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable=no" />
+    <link rel="apple-touch-icon" href="/icons/apple-touch.png" />
+    <link rel="apple-touch-startup-image" href="/icons/apple-touch-startup.png" />
+    <meta name="apple-mobile-web-app-capable" content="yes" />
+    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
   </head>
   <body>
     % for message in h.flash.pop_messages():
@@ -17,7 +20,7 @@
     <div id="non-mobile">
       <a href="${h.url_for(request.url, use_non_mobile='yes')}">Use non mobile interface</a>
     </div>
-    ${h.javascript_link('/js/jquery-1.3.2.js')}
+    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
     ${h.javascript_link('/js/mobile.js')}
   </body>
 </html>