2 <meta name=
"viewport" content=
"width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
7 -webkit-border-radius:
0;
8 box-sizing: border-box;
9 -moz-box-sizing: border-box;
10 -ms-box-sizing: border-box;
11 -webkit-box-sizing: border-box;
12 /*font-family: inherit;*/
19 text-decoration: none;
20 vertical-align: baseline;
24 -webkit-touch-callout: none;
25 -webkit-text-size-adjust: none;
26 -webkit-user-select: none;
39 font-family: "LockClock-Light";
40 padding:
0px
0px
0px
1px;
43 text-shadow: -
0.5px -
1px
1px black;
47 font-family: "Helvetica";
50 text-shadow: -
0.5px -
1px
1px black;
53 @media only screen and (min-device-width:
320px) and (max-device-width:
480px) {
69 @media only screen and (min-device-width:
768px) and (max-device-width:
1024px) and (orientation: landscape) {
71 background: url(file:///System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD.png);
86 @media only screen and (min-device-width:
768px) and (max-device-width:
1024px) and (orientation: portrait) {
88 background: url(file:///System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD_T.png);
104 font-family: "Helvetica";
124 </style></head><body>
125 <script type=
"text/javascript">
126 if (kCFCoreFoundationVersionNumber
> 800)
127 document.write('
<div style=
"height: 24px"></div>');
129 document.write('
<style type=
"text/css"> #lcd { background: url(cydget://_UIImageWithName/UILCDBackground.png); }
</style>');
132 <script type=
"text/javascript">
133 document.write('
<h1 id=
"time">');
136 if (typeof Cycript != 'undefined')
139 var now = new Date();
140 var minutes = String(now.getMinutes());
141 if (minutes.length ==
1)
142 minutes = '
0' + minutes
143 time = now.getHours() + ':' + minutes;
146 document.write(time);
147 document.write('
</h1>');
150 <h2>Welcome to Cydget!
</h2>
154 <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>
155 <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>
158 <!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
159 <script type=
"text/cycript">
160 var locale = CFLocaleCopyCurrent();
161 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
162 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
165 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
166 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
167 document.getElementById("time").innerHTML = time;
170 CFRelease(formatter);