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;
28 background: url(cydget://_UIImageWithName/UILCDBackground.png);
34 font-family: "LockClock-Light";
39 text-shadow: -
0.5px -
1px
1px black;
45 font-family: "Helvetica";
49 text-shadow: -
0.5px -
1px
1px black;
54 font-family: "Helvetica";
76 <script type=
"text/javascript">
77 document.write('
<h1 id=
"time">');
80 if (typeof Cycript != 'undefined')
84 var minutes = String(now.getMinutes());
85 if (minutes.length ==
1)
86 minutes = '
0' + minutes
87 time = now.getHours() + ':' + minutes;
91 document.write('
</h1>');
94 <h2>Welcome to Cydget!
</h2>
98 <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>
99 <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>
102 <!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
103 <script type=
"text/cycript">
104 var locale = CFLocaleCopyCurrent();
105 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
106 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
109 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
110 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
111 document.getElementById("time").innerHTML = time;
114 CFRelease(formatter);