Commit d9a729cbc6104ed68dcebd13ddb83e951fd0d04f
1 parent
0df643b9
add title back and share plugin
Showing
1 changed file
with
9 additions
and
0 deletions
src/player.html
| @@ -382,10 +382,19 @@ | @@ -382,10 +382,19 @@ | ||
| 382 | <script> | 382 | <script> |
| 383 | $(function(){ | 383 | $(function(){ |
| 384 | $('.back').click(function(){ | 384 | $('.back').click(function(){ |
| 385 | + var gobackData = {} | ||
| 386 | + plugins.MSharePlugin.goback() | ||
| 385 | console.log(plugins) | 387 | console.log(plugins) |
| 386 | }) | 388 | }) |
| 387 | $('.share').click(function(){ | 389 | $('.share').click(function(){ |
| 388 | console.log(plugins) | 390 | console.log(plugins) |
| 391 | + var title = getQuery('title'); | ||
| 392 | + var shareData = { | ||
| 393 | + title: title, | ||
| 394 | + url: document.URL, | ||
| 395 | + text: title | ||
| 396 | + } | ||
| 397 | + plugins.MSharePlugin.goback(shareData) | ||
| 389 | }) | 398 | }) |
| 390 | }) | 399 | }) |
| 391 | </script> | 400 | </script> |