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 | 382 | <script> |
| 383 | 383 | $(function(){ |
| 384 | 384 | $('.back').click(function(){ |
| 385 | + var gobackData = {} | |
| 386 | + plugins.MSharePlugin.goback() | |
| 385 | 387 | console.log(plugins) |
| 386 | 388 | }) |
| 387 | 389 | $('.share').click(function(){ |
| 388 | 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 | 400 | </script> | ... | ... |