2 <meta name=
"viewport" content=
"width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
10 -moz-border-radius:
0;
11 -webkit-border-radius:
0;
12 box-sizing: border-box;
13 -moz-box-sizing: border-box;
14 -ms-box-sizing: border-box;
15 -webkit-box-sizing: border-box;
16 /*font-family: inherit;*/
23 text-decoration: none;
24 vertical-align: baseline;
28 -webkit-touch-callout: none;
29 -webkit-text-size-adjust: none;
30 -webkit-user-select: none;
43 font-family: "LockClock-Light";
44 padding:
0px
0px
0px
1px;
47 text-shadow: -
0.5px -
1px
1px black;
51 font-family: "Helvetica";
54 text-shadow: -
0.5px -
1px
1px black;
57 @media only screen and (min-device-width:
320px) and (max-device-width:
480px) {
73 @media only screen and (min-device-width:
768px) and (max-device-width:
1024px) and (orientation: landscape) {
75 background: url(file:///System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD.png);
90 @media only screen and (min-device-width:
768px) and (max-device-width:
1024px) and (orientation: portrait) {
92 background: url(file:///System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD_T.png);
108 font-family: "Helvetica";
129 @media (-cydget-media-controls) {
135 @media (-cydget-notification-list) {
140 </style></head><body>
141 <script type=
"text/javascript">
142 if (kCFCoreFoundationVersionNumber
> 800)
143 document.write('
<div style=
"height: 60px"></div>');
145 document.write('
<style type=
"text/css"> #lcd { background: url(cydget://_UIImageWithName/UILCDBackground.png); }
</style>');
148 <script type=
"text/javascript">
149 document.write('
<h1 id=
"time">');
152 if (typeof Cycript != 'undefined')
155 var now = new Date();
156 var minutes = String(now.getMinutes());
157 if (minutes.length ==
1)
158 minutes = '
0' + minutes
159 time = now.getHours() + ':' + minutes;
162 document.write(time);
163 document.write('
</h1>');
166 <h2>Welcome to Cydget!
</h2>
170 <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>
171 <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>
174 <!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
175 <script type=
"text/cycript">
176 var locale = CFLocaleCopyCurrent();
177 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
178 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
181 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
182 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
183 document.getElementById("time").innerHTML = id(time);
186 CFRelease(formatter);