File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed
server/demos/inspirationmator Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 5
5
< link rel ="stylesheet " href ="/styles/application.css ">
6
6
< link rel =icon href ="favicon.ico " />
7
7
< intent action ="http://webintents.org/edit " type ="image/* " href ="index.html " />
8
- < intent action ="http://webintents.org/pick " type ="image/* " href ="pick.html " />
9
8
</ head >
10
9
< body onload ="show_box_load(); " class ="hide ">
11
10
< div class ="nother ">
@@ -40,4 +39,4 @@ <h1>{% block headline %}{% endblock %}</h1>
40
39
var s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
41
40
} ) ( ) ;
42
41
</ script >
43
- </ html >
42
+ </ html >
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ <h2>Click to create your own<br />inspirational image.</h2>
27
27
< div id ="actions ">
28
28
< div class ="btn-h "> < span id ="save " class ="btn "> Save < span aria-hidden ="true " data-icon ="c " class ="icon "> </ span > </ span > </ div >
29
29
< div class ="btn-h "> < span id ="share " class ="btn "> Share < span aria-hidden ="true " data-icon ="R " class ="icon "> </ span > </ span > </ div >
30
- < div class ="btn-h "> < span id ="sharelink " class ="btn dbl "> Share Page < span aria-hidden ="true " data-icon ="R " class ="icon "> </ span > </ span > </ div >
31
30
< div class ="btn-h "> < span id ="done " class ="btn dbl " style ="display:none "> Done< span aria-hidden ="true " data-icon ="R " class ="icon "> </ span > </ span > </ div >
32
31
</ div >
33
32
{% endblock %}
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ var updateImage = function(data) {
111
111
$ ( '#done' ) . hide ( ) ;
112
112
$ ( '#save' ) . show ( ) ;
113
113
$ ( '#share' ) . show ( ) ;
114
- $ ( '#sharelink' ) . show ( ) ;
115
114
$ ( '#actions' ) . show ( ) ;
116
115
}
117
116
} ) ;
@@ -125,7 +124,6 @@ $(function() {
125
124
$ ( '#actions' ) . show ( ) ;
126
125
$ ( '#share' ) . hide ( ) ;
127
126
$ ( '#save' ) . hide ( ) ;
128
- $ ( '#sharelink' ) . hide ( ) ;
129
127
130
128
$ ( '#done' ) . show ( ) ;
131
129
$ ( '#done' ) . click ( function ( ) {
@@ -149,7 +147,6 @@ $(function() {
149
147
$ ( '#container' ) . click ( function ( ) {
150
148
$ ( '#save' ) . hide ( ) ;
151
149
$ ( '#share' ) . hide ( ) ;
152
- $ ( '#sharelink' ) . hide ( ) ;
153
150
$ ( '#done' ) . hide ( ) ;
154
151
$ ( '#actions' ) . hide ( ) ;
155
152
@@ -168,13 +165,16 @@ $(function() {
168
165
169
166
$ ( '#share' ) . click ( function ( ) {
170
167
var url = "http://www.inspirationmator.com/image/" + imageID + ".png" ;
171
- var i = new Intent ( "http://webintents.org/share" , "image/*" , url ) ;
172
- startActivity . call ( window . navigator , i ) ;
173
- } ) ;
168
+ var params = {
169
+ "action" : "http://webintents.org/share" ,
170
+ "type" : "image/png" ,
171
+ "data" : {
172
+ "url" : url ,
173
+ "blob" : data
174
+ }
175
+ } ;
174
176
175
- $ ( '#sharelink' ) . click ( function ( ) {
176
- var url = "http://www.inspirationmator.com/image/" + imageID + ".html" ;
177
- var i = new Intent ( "http://webintents.org/share" , "text/uri-list" , url ) ;
177
+ var i = new Intent ( params ) ;
178
178
startActivity . call ( window . navigator , i ) ;
179
179
} ) ;
180
180
You can’t perform that action at this time.
0 commit comments