]> git.saurik.com Git - cydget.git/blame - Welcome.html
Change the role to enduser.
[cydget.git] / Welcome.html
CommitLineData
3d796c95 1<html><head>
545370d8
JF
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;
42936531 41 width: 319px;
545370d8
JF
42 }
43
44 #lcd h2 {
3a0081b3 45 font-family: "Helvetica";
545370d8 46 font-size: 17px;
545370d8
JF
47 position: relative;
48 text-align: center;
49 text-shadow: -0.5px -1px 1px black;
50 top: -16px;
51 }
3aa346e5
JF
52
53 #content {
54 font-family: "Helvetica";
55 }
56
57 #content h3 {
58 font-size: 20px;
59 text-align: center;
60 margin-bottom: 10px;
61 }
62
63 #content p {
64 font-size: 14px;
65 text-align: justify;
66 margin: 10px 12px;
67 }
68
69 sup {
70 font-size: smaller;
71 position: relative;
72 top: -5px;
73 }
545370d8 74</style></head><body>
3aa346e5 75 <div id="lcd">
81c3ce7d
JF
76 <script type="text/javascript">
77 document.write('<h1 id="time">');
78
79 var time;
80 if (typeof Cycript != 'undefined')
81 time = '&nbsp;';
82 else {
83 var now = new Date();
84 var minutes = String(now.getMinutes());
85 if (minutes.length == 1)
86 minutes = '0' + minutes
87 time = now.getHours() + ':' + minutes;
88 }
89
4e8fa43b 90 document.write(time);
81c3ce7d
JF
91 document.write('</h1>');
92 </script>
4e8fa43b 93
3aa346e5
JF
94 <h2>Welcome to Cydget!</h2>
95 </div>
96
97 <div id="content">
81c3ce7d 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>
3aa346e5
JF
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>
100 </div>
101
3a0081b3 102 <!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
d67f2086 103 <script type="text/cycript">
3a0081b3
JF
104 var locale = CFLocaleCopyCurrent();
105 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
106 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
107 CFRelease(locale);
108
109 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
110 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
3aa346e5 111 document.getElementById("time").innerHTML = time;
3a0081b3
JF
112 CFRelease(time);
113
3a0081b3
JF
114 CFRelease(formatter);
115 CFRelease(now);
d67f2086 116 </script>
3d796c95 117</body></html>