--- /dev/null
+<html><head>
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
+<style>
+ * {
+ border: 0;
+ -moz-border-radius: 0;
+ -webkit-border-radius: 0;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ /*font-family: inherit;*/
+ font-size: 100%;
+ font-style: inherit;
+ font-weight: inherit;
+ margin: 0;
+ outline: 0;
+ padding: 0;
+ text-decoration: none;
+ vertical-align: baseline;
+ }
+
+ body {
+ color: white;
+ }
+
+ #lcd {
+ background: url(cydget://_UIImageWithName/UILCDBackground.png);
+ height: 96px;
+ width: 320px;
+ }
+
+ #lcd h1 {
+ font-family: "LockClock-Light";
+ font-size: 65px;
+ left: 1px;
+ position: relative;
+ text-align: center;
+ text-shadow: -0.5px -1px 1px black;
+ top: -6px;
+ }
+
+ #lcd h2 {
+ font-family: "Helvetica";
+ font-size: 17px;
+ position: relative;
+ text-align: center;
+ text-shadow: -0.5px -1px 1px black;
+ top: -16px;
+ }
+
+ #content {
+ font-family: "Helvetica";
+ min-height: 268px;
+ text-align:center;
+ }
+
+ #content h3 {
+ font-size: 20px;
+ text-align: center;
+ margin-bottom: 10px;
+ }
+
+ #content p {
+ font-size: 14px;
+ text-align: justify;
+ margin: 10px 12px;
+ }
+
+ sup {
+ font-size: smaller;
+ position: relative;
+ top: -5px;
+ }
+
+ #content img {
+ margin: auto;
+ max-height: 268px;
+ max-width: 320px;
+ vertical-align:middle;
+ }
+</style></head><body>
+ <div id="content"><script type="text/cycript">
+ document.write('<div id="lcd">');
+
+ var locale = CFLocaleCopyCurrent();
+ var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
+ var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
+ CFRelease(locale);
+
+ CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
+ var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
+ document.write('<h1>');
+ document.write(time);
+ document.write('</h1>');
+ CFRelease(time);
+
+ CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UIWeekdayNoYearDateFormat));
+ var date = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
+ document.write('<h2>');
+ document.write(date);
+ document.write('</h2>');
+ CFRelease(date);
+
+ CFRelease(formatter);
+ CFRelease(now);
+
+ document.write('</div>');
+
+ dlopen("/System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary", RTLD_GLOBAL);
+ var album = PLCameraAlbum.sharedInstance.images;
+
+ var jpeg = null, length = album.length;
+ for (var i = 0; i != 5; ++i) {
+ jpeg = album[Math.floor(Math.random() * length)].fileGroup.pathForFullSizeImage;
+ if (jpeg != null)
+ break;
+ }
+
+ if (jpeg == null)
+ for (var i = 0; i != length; ++i) {
+ jpeg = album[Math.floor(i)].fileGroup.pathForFullSizeImage;
+ if (jpeg != null)
+ break;
+ }
+
+ document.write('<img src="' + jpeg + '"/>');
+ </script></div>
+</body></html>
cp -a Welcome.html package/System/Library/LockCydgets/Welcome.cydget
cp -a Welcome.plist package/System/Library/LockCydgets/Welcome.cydget/Info.plist
svn export AwayView.cydget package/System/Library/LockCydgets/AwayView.cydget
+ svn export PhotoExample.cydget package/System/Library/LockCydgets/PhotoExample.cydget
mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
cp -a WebCycriptLockScreen package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle