Web app installation
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 30 Oct 2012 21:08:11 +0000 (21:08 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 30 Oct 2012 21:08:11 +0000 (21:08 +0000)
sm.html
sm.webapp

diff --git a/sm.html b/sm.html
index 48ed003..838f25c 100644 (file)
--- a/sm.html
+++ b/sm.html
@@ -123,6 +123,9 @@ function init() {
        timeout = window.setTimeout("fadeOut();",1000);
        setOpacity();
        
+       if (window.navigator.mozApps) {
+               document.getElementById("firefox").style.display = "block";
+       }
 }
 </script>
 <body onload="init()">
@@ -132,6 +135,9 @@ function init() {
 <p>
 This is an online-version of the program <strong>screen-message</strong> for Linux.
 </p>
+<p id="firefox" style="display:none">
+You can <a href="#" onclick="window.navigator.mozApps.install('http://sm.nomeata.de/sm.webapp')">install it as a FireFox app</a>.
+</p>
 <p>
 For more information about the original program, see what <a href="http://debaday.debian.net/2007/07/18/screen-message-use-your-screen-to-communicate/">Deb-a-Day</a> writes about it. You can download it from <a href="http://packages.debian.org/sid/sm">Debian</a> or <a href="http://darcs.nomeata.de/screen-message.upstream/">fetch the sourcecode</a>.
 </p>
index 1b29f7a..3c8b6f2 100644 (file)
--- a/sm.webapp
+++ b/sm.webapp
@@ -10,6 +10,5 @@
     "name": "Joachim Breitner",
     "url": "http://www.joachim-breitner.de/"
   },
-  "default_locale": "en",
-  "fullscreen": "true"
+  "default_locale": "en"
 }