Permalink
Browse files

Fixing up mememator

  • Loading branch information...
1 parent e140a40 commit f9685f0437a75f2c77904808666c03ffba2ffce5 @PaulKinlan committed Aug 10, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −2 server/demos/mememator/pages/view.html
  2. +8 −0 server/demos/mememator/static/scripts/view.js
@@ -9,6 +9,7 @@
#container { background: inherit; background-color: yellow; min-height: inherit; }
#container h4 { color: white; background-color: black; padding: 3px; margin: 0; }
#container p { color: white; background-color: black; padding: 3px; margin:0;}
+ #actions .btn { display: block; }
</style>
{% endblock %}
{% block content %}
@@ -19,8 +20,6 @@ <h4 itemprop="name">Image {{title}}</h4>
<img id="image" itemprop="image" src="{{url}}" style="display:block;" />
</div>
<div id="actions" class="cf">
- <span id="save" class="btn">Save Meme</span>
- <span id="share" class="btn">Share Image</span>
<span id="sharelink" class="btn">Share Link</span>
</div>
</div>
@@ -6,3 +6,11 @@ var context;
var canvas;
var imageID;
var permissionKey;
+
+$('#sharelink').click(function() {
+ var url = window.location.href;
+ var i = new Intent("http://webintents.org/share", "text/uri-list", url);
+ startActivity.call(window.navigator, i);
+});
+
+

0 comments on commit f9685f0

Please sign in to comment.