}
</style></head><body>
<div id="lcd">
- <h1 id="time"> </h1>
+ <script type="text/javascript">
+ document.write('<h1 id="time">');
+
+ var time;
+ if (typeof Cycript != 'undefined')
+ time = ' ';
+ else {
+ var now = new Date();
+ var minutes = String(now.getMinutes());
+ if (minutes.length == 1)
+ minutes = '0' + minutes
+ time = now.getHours() + ':' + minutes;
+ }
+
+ document.write(time);
+ 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>
+ <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 -->
- <script type="text/javascript">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>