news_win.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html class="">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <title>Hello APP</title>
  7. <link rel="stylesheet" type="text/css" href="../css/api.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
  9. </head>
  10. <style>
  11. </style>
  12. <body>
  13. <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
  14. <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
  15. <div class="aui-title" id="aui-title">
  16. 《新闻联播》头条报道赛轮集团
  17. </div>
  18. </header>
  19. </body>
  20. <script type="text/javascript" src="../script/api.js"></script>
  21. <script type="text/javascript">
  22. function closeWin() {
  23. api.closeWin({
  24. });
  25. }
  26. apiready = function() {
  27. api.parseTapmode();
  28. var header = $api.byId('aui-header');
  29. $api.fixStatusBar(header);
  30. var headerPos = $api.offset(header);
  31. var body_h = $api.offset($api.dom('body')).h;
  32. api.openFrame({
  33. name : 'news_body',
  34. url : 'news_body.html',
  35. bounces : false,
  36. vScrollBarEnabled : false,
  37. hScrollBarEnabled : false,
  38. pageParam: {
  39. dateTime:api.pageParam.dateTime
  40. },
  41. rect : {
  42. x : 0,
  43. y : headerPos.h,
  44. w : 'auto',
  45. h : 'auto'
  46. },
  47. bgColor:'#f5f5f5'
  48. })
  49. };
  50. </script>
  51. </html>