Checkpoint for Optimo test.
[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: "LockClock-Light";
45 font-size: 17px;
46 left: 2px;
47 position: relative;
48 text-align: center;
49 text-shadow: -0.5px -1px 1px black;
50 top: -16px;
51 }
52 </style></head><body>
53 <div id="lcd">
54 <h1><script type="text/javascript">with (Cycript.all) {
55 var locale = CFLocaleCopyCurrent();
56 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
57 CFRelease(locale);
58 var format = UIDateFormatStringForFormatType(UINoAMPMTimeFormat);
59 CFDateFormatterSetFormat(formatter, format);
60 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
61 var string = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
62 CFRelease(formatter);
63 document.write(string);
64 CFRelease(string);
65 }</script></h1>
66
67 <h2>Lock Cydget Example</h2>
68 </div>
69
70 <script type="text/javascript" src="Index.js"></script>
71 </body></html>