]> git.saurik.com Git - cydget.git/blobdiff - PhotoExamplePlus.cydget/foreground.html
New Cycript versions do not toll-free bridge well.
[cydget.git] / PhotoExamplePlus.cydget / foreground.html
index 4d2a6e605eb77a75c5397e195700aa8befaf40ae..d99c9cdf1715ef3a88faf8a38a58e619593f82b5 100644 (file)
@@ -33,7 +33,6 @@
 
     #lcd {
         margin-top: 50px;
-        background-color: rgba(87, 87, 87, 0.5);
     }
 
     #lcd h1 {
             top: -8px;
         }
     }
+
+    @media (-cydget-media-controls) {
+        #lcd {
+            opacity: 0;
+        }
+    }
 </style></head><body>
     <div id="lcd"><script type="text/javascript">
         var locale = CFLocaleCopyCurrent();
         CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
         var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
         document.write('<h1>');
-        document.write(time);
+        document.write(id(time));
         document.write('</h1>');
         CFRelease(time);
 
         CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UIWeekdayNoYearDateFormat));
         var date = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
         document.write('<h2>');
-        document.write(date);
+        document.write(id(date));
         document.write('</h2>');
         CFRelease(date);