index.html 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="format-detection" content="telephone=no"/>
  6. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=3, minimum-scale=1, width=device-width"/>
  7. <link rel="stylesheet" type="text/css" href="css/index.css"/>
  8. <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
  9. <script type="text/javascript" src="cordova.js"></script>
  10. <script type="text/javascript" src="js/index.js"></script>
  11. <script type="text/javascript">
  12. document.addEventListener("deviceready", function(){
  13. alert('device ready now');
  14. appintance = new app();
  15. }, true);
  16. </script>
  17. <title>Corodva Weibo Plugin Exmaple</title>
  18. </head>
  19. <body>
  20. <div class="app">
  21. <div id="deviceready">
  22. <button type="button" class="btn btn-primary btn-block" onclick="appintance.checkClientInstalled()">检查客户端是否安装</button>
  23. <button type="button" class="btn btn-primary btn-block" onclick="appintance.ssoLogin()">微博登录</button>
  24. <button type="button" class="btn btn-primary btn-block" onclick="appintance.logout()">微博登出</button>
  25. <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareToWeibo()">网页分享</button>
  26. <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareImageToWeibo()">图片分享</button>
  27. <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareTextToWeibo()">文字分享</button>
  28. </div>
  29. </div>
  30. </body>
  31. </html>