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;
44 font-family: "Helvetica";
48 text-shadow: -
0.5px -
1px
1px black;
52 <!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
53 <div id=
"lcd"><script type=
"text/javascript">with (Cycript.all) {
54 var locale = CFLocaleCopyCurrent();
55 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
56 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
59 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
60 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
61 document.write('
<h1>' + time + '
</h1>');
64 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UIWeekdayNoYearDateFormat));
65 var date = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
66 document.write('
<h2>' + date + '
</h2>');
73 <script type=
"text/javascript" src=
"Index.js"></script>