You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by gt...@apache.org on 2013/01/29 03:49:08 UTC

[10/17] work to get ./cordova/run working (and on device install)

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/cf3340ff/framework/install.html
----------------------------------------------------------------------
diff --git a/framework/install.html b/framework/install.html
new file mode 100644
index 0000000..a0b0db6
--- /dev/null
+++ b/framework/install.html
@@ -0,0 +1,31 @@
+<script>
+    var manifest_url = "http://localhost:8008/manifest.webapp";
+</script>
+
+<style type="text/css">
+
+#install-btn {
+    background: #0088cc; /* Old browsers */
+    background: -moz-linear-gradient(top,  #0088cc 0%, #0055cc 100%); /* FF3.6+ */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0088cc), color-stop(100%,#0055cc)); /* Chrome,Safari4+ */
+    background: -webkit-linear-gradient(top,  #0088cc 0%,#0055cc 100%); /* Chrome10+,Safari5.1+ */
+    background: -o-linear-gradient(top,  #0088cc 0%,#0055cc 100%); /* Opera 11.10+ */
+    background: -ms-linear-gradient(top,  #0088cc 0%,#0055cc 100%); /* IE10+ */
+    background: linear-gradient(to bottom,  #0088cc 0%,#0055cc 100%); /* W3C */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0088cc', endColorstr='#0055cc',GradientType=0 ); /* IE6-9 */
+
+    text-align: center;
+    font-size: 200%;
+    margin: 1em auto;
+    display: block;
+    padding: .5em;
+    color: white;
+    width: 10em;
+    max-width: 80%;
+    line-height: 1.2em;
+}
+</style>
+
+<button id="install-btn" onclick="navigator.mozApps.install(manifest_url); return false;">
+    Install
+</button>