Skip to content
This repository
Browse code

Fixing up mememator

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

0 notes on commit f9685f0

Please sign in to comment.
Something went wrong with that request. Please try again.