]> git.saurik.com Git - cydget.git/blobdiff - Welcome.html
Filter PLManagedAlbumLists when they appear in object set.
[cydget.git] / Welcome.html
index 724f31927f155f29f95c29bb0a8980fac64dfa47..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 {
     }
 </style></head><body>
     <div id="lcd">
-        <h1 id="time"><script type="text/javascript">
-            var now = new Date();
-            var minutes = now.getMinutes();
-            if (minutes.length == 1)
-                minutes = '0' + minutes
-            var time = now.getHours() + ':' + minutes;
+        <script type="text/javascript">
+            document.write('<h1 id="time">');
+
+            var time;
+            if (typeof Cycript != 'undefined')
+                time = '&nbsp;';
+            else {
+                var now = new Date();
+                var minutes = String(now.getMinutes());
+                if (minutes.length == 1)
+                    minutes = '0' + minutes
+                time = now.getHours() + ':' + minutes;
+            }
+
             document.write(time);
-        </script></h1>
+            document.write('</h1>');
+        </script>
 
         <h2>Welcome to Cydget!</h2>
     </div>
 
     <div id="content">
-        <p>Cydget<sup>tm</sup> is a very simple SBAwayViewPlugin multiplexer, allowing both developers and web designers to extend the capabilities of the lock screen by tapping into the existing mechanism Apple is already using for VoiceRecorder and Nike+. The WebCycript Cydget framework is designed to be a powerful replacement for the Lock Widget feature from WinterBoard, which it hereby supercedes.</p>
-        <a href="http://www.saurik.com/">Home</a>
+        <p>Cydget<sup>tm</sup> is a very simple SBAwayViewPlugin multiplexer, allowing both developers and web designers to extend the capabilities of the lock screen by tapping into the existing mechanism Apple had designed for VoiceRecorder and Nike+. The WebCycript Cydget framework is designed to be a powerful replacement for the Lock Widget feature from WinterBoard, which it hereby supersedes.</p>
         <p>You can switch between Cydgets (your original SpringBoard away view is next in the rotation) using the Home/Menu button, and you can re-order them using Settings under "Cydget".</p>
     </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() { with (Cycript.all) {
+    <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>