]> git.saurik.com Git - cydget.git/blobdiff - Welcome.html
Register cydget:// and cydget-cgi:// as local schemes.
[cydget.git] / Welcome.html
index b5e7a243956b264a923d183a9a86aa5bbb666a61..1df4b5ad41df0bc06d84dce6b463c4ec713e9868 100644 (file)
         vertical-align: baseline;
     }
 
+    * {
+        -webkit-touch-callout: none;
+        -webkit-text-size-adjust: none;
+        -webkit-user-select: none;
+    }
+
     body {
         color: white;
     }
 
     #lcd {
         background: url(cydget://_UIImageWithName/UILCDBackground.png);
-        height: 96px;
-        width: 320px;
+        width: 100%;
     }
 
     #lcd h1 {
         font-family: "LockClock-Light";
-        font-size: 65px;
-        left: 1px;
+        padding: 0px 0px 0px 1px;
         position: relative;
         text-align: center;
         text-shadow: -0.5px -1px 1px black;
-        top: -6px;
     }
 
     #lcd h2 {
         font-family: "Helvetica";
-        font-size: 17px;
         position: relative;
         text-align: center;
         text-shadow: -0.5px -1px 1px black;
-        top: -16px;
+    }
+
+    @media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
+        #lcd {
+            height: 96px;
+        }
+
+        #lcd h1 {
+            font-size: 65px;
+            top: -6px;
+        }
+
+        #lcd h2 {
+            font-size: 17px;
+            top: -16px;
+        }
+    }
+
+    @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
+        #lcd {
+            background: url(file:///System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD.png);
+            height: 96px;
+        }
+
+        #lcd h1 {
+            font-size: 69px;
+            top: -8px;
+        }
+
+        #lcd h2 {
+            font-size: 16px;
+            top: -18px;
+        }
+    }
+
+    @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
+        #lcd {
+            background: url(file:///System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD_T.png);
+            height: 107px;
+        }
+
+        #lcd h1 {
+            font-size: 69px;
+            top: -1px;
+        }
+
+        #lcd h2 {
+            font-size: 16px;
+            top: -8px;
+        }
     }
 
     #content {
     </div>
 
     <!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
-    <!-- XXX: this is incredibly indirect. I mean: wth, right? well, Cycript is the slowest thing on this page -->
-    <!-- (in case anyone reading this: I believe it is entirely due to sqlite3, and I will be fixing this soon) -->
-    <script type="text/cycript">document.addEventListener("DOMContentLoaded", function() { window.setTimeout(function() {
+    <script type="text/cycript">
         var locale = CFLocaleCopyCurrent();
         var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
         var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
 
         CFRelease(formatter);
         CFRelease(now);
-    }, 0)}, false);</script>
+    </script>
 </body></html>