play68.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. switch(true){
  12. case score > 6000 :
  13. shareTitle = "我玩了" + score + "分,请问这里还是地球么?";
  14. break;
  15. case score > 3000 :
  16. shareTitle = "我玩了" + score + "分,跳跳跳,我已经忘记了时间";
  17. break;
  18. case score > 1500 :
  19. shareTitle = "我玩了" + score + "分,这节奏太美妙,其实我想这么一直跳不下去的";
  20. break;
  21. case score > 0 :
  22. shareTitle = "我玩了" + score + "分,这么快就到底了?我都还没反应过来!";
  23. break;
  24. default: shareTitle = "小囧熊也疯狂!让你享受飞一般的感觉!#小囧熊跳伞#";
  25. }
  26. document.title = shareTitle;
  27. appid = '';
  28. Play68.setShareInfo(shareTitle,descContent);
  29. }
  30. function updateShareScore(score) {
  31. updateShare(score);
  32. }
  33. function play68_goHome(){
  34. parent.location.href="http://mp.weixin.qq.com/s?__biz=MzA4MjAwNjQ2Mw==&mid=203181738&idx=1&sn=cf032b8b1e0ac420f65168aac39ecce0"
  35. }