diff --git a/index.html b/index.html index 7880cbc..828f5e8 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,10 @@ + - My Photos - + + My Photos + + +

This is a little tiny open web application: it can @@ -12,7 +16,7 @@ Click anywhere to begin.

-this is a little toolbar +You've got ... pictures stored.
A Mozilla Labs Hack · Privacy Policy diff --git a/myphotos.js b/myphotos.js index 918322e..10129d1 100644 --- a/myphotos.js +++ b/myphotos.js @@ -30,7 +30,7 @@ $(document).ready(function() { function() { navigator.apps.amInstalled(function(r) { if (r) { - alert("you're installed!"); + $("#toolbar").animate({ 'margin-top': "0px" }); } else { var html = $("

Step 1: You should click here to install this site into your " + "browser.

"); @@ -41,7 +41,7 @@ $(document).ready(function() { { url: "/manifest.webapp", onsuccess: function (rv) { - console.log("awesome"); + $("#toolbar").animate({ 'margin-top': "0px" }); }, onerror: function (errObj) { var html = $("

DAMN! Something went horribly wrong [" + diff --git a/style.css b/style.css index 0506f2e..a405b75 100644 --- a/style.css +++ b/style.css @@ -38,10 +38,10 @@ a { #toolbar { font-size: .8em; position: fixed; - height: 40px; + height: 20px; margin-top: -40px; - width: 600px; - margin-left: -300px; + width: 300px; + margin-left: -150px; top: 0px; left: 50%; background-color: #000; @@ -51,7 +51,9 @@ a { border-bottom-left-radius : 10px; -moz-border-radius-bottomleft : 10px; -webkit-border-bottom-left-radius : 10px; - + text-align: center; + padding-top: 15px; + padding-bottom: 15px; } strong.sucks {