play68.js 552 B

123456789101112131415161718192021
  1. function play68_init() {
  2. updateShare(0);
  3. }
  4. function play68_submitScore(score) {
  5. updateShareScore(score);
  6. Play68.shareFriend();
  7. //setTimeout( function() { Play68.shareFriend(); }, 1000 )
  8. }
  9. function updateShare(score) {
  10. var descContent = "六角碎片";
  11. if(score > 0)
  12. shareTitle = "我玩了" + score + "分,没错,盆友圈游戏大神说的就是我!";
  13. else
  14. shareTitle = "六角碎片";
  15. appid = '';
  16. Play68.setShareInfo(shareTitle,descContent);
  17. document.title = shareTitle;
  18. }
  19. function updateShareScore(score) {
  20. updateShare(score);
  21. }