Commit e0f0417baddc0c8d8d1f4778472e15f5d8ca0512

Authored by ykxie
1 parent 8ac6b40b

add cordova plugins

Showing 1 changed file with 4 additions and 2 deletions
src/player.html
... ... @@ -384,8 +384,7 @@
384 384 <script>
385 385 $(function(){
386 386 $('.back').click(function(){
387   - alert('plugins')
388   - alert(Plugins)
  387 + alert('plugins----')
389 388 var gobackData = {}
390 389 document.addEventListener("deviceready", function(){
391 390 Plugins.MSharePlugin.goback()
... ... @@ -394,13 +393,16 @@
394 393  
395 394 })
396 395 $('.share').click(function(){
  396 + alert('=====')
397 397 alert(plugins)
398 398 var title = getQuery('title');
  399 +
399 400 var shareData = {
400 401 title: title,
401 402 url: document.URL,
402 403 text: title
403 404 }
  405 + alert(shareData)
404 406 plugins.MSharePlugin.goback(shareData)
405 407 })
406 408 })
... ...