]> git.saurik.com Git - cydget.git/blob - Index.html
Checkpoint for Welcome.
[cydget.git] / Index.html
1 <html><head>
2 <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
3 <style>
4 * {
5 border: 0;
6 -moz-border-radius: 0;
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;*/
13 font-size: 100%;
14 font-style: inherit;
15 font-weight: inherit;
16 margin: 0;
17 outline: 0;
18 padding: 0;
19 text-decoration: none;
20 vertical-align: baseline;
21 }
22
23 body {
24 color: white;
25 }
26
27 #lcd {
28 background: url(cydget://_UIImageWithName/UILCDBackground.png);
29 height: 96px;
30 width: 320px;
31 }
32
33 #lcd h1 {
34 font-family: "LockClock-Light";
35 font-size: 65px;
36 left: 1px;
37 position: relative;
38 text-align: center;
39 text-shadow: -0.5px -1px 1px black;
40 top: -6px;
41 }
42
43 #lcd h2 {
44 font-family: "Helvetica";
45 font-size: 17px;
46 position: relative;
47 text-align: center;
48 text-shadow: -0.5px -1px 1px black;
49 top: -16px;
50 }
51 </style></head><body>
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);
57 CFRelease(locale);
58
59 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
60 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
61 document.write('<h1>' + time + '</h1>');
62 CFRelease(time);
63
64 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UIWeekdayNoYearDateFormat));
65 var date = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
66 document.write('<h2>' + date + '</h2>');
67 CFRelease(date);
68
69 CFRelease(formatter);
70 CFRelease(now);
71 }</script></div>
72
73 <script type="text/javascript" src="Index.js"></script>
74 </body></html>