index.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {{ define "index.html" }}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>微博请求 - condenast</title>
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <meta name="apple-mobile-web-app-capable" content="yes">
  12. <meta name="format-detection" content="telephone=no">
  13. <link rel="stylesheet" href="/static/lib/layui/css/layui.css?t=1505408433792" media="all">
  14. </head>
  15. <body>
  16. <div class="layui-container">
  17. <div class="layui-row">
  18. <div class="layui-col">
  19. <ul class="layui-nav" lay-filter="">
  20. <li class="layui-nav-item layui-this"><a href="/">data api</a></li>
  21. <li class="layui-nav-item"><a href="/token" target="_blank">token api</a></li>
  22. <li class="layui-nav-item"><a href="http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2/en#Read_API_3" target="_blank">weibo doc</a></li>
  23. </ul>
  24. <blockquote class="layui-elem-quote">[token]:{{ .access_token }} [uid]:{{ .uid }}</blockquote>
  25. <form class="layui-form" action="api" method="get" target="f1">
  26. <div class="layui-form-item">
  27. <label class="layui-form-label">apiURL</label>
  28. <div class="layui-input-block">
  29. <input type="text" name="url" required lay-verify="required" placeholder="请输入接口地址,如:https://api.weibo.com/2/users/show.json" autocomplete="off" class="layui-input" value="https://api.weibo.com/2/users/show.json">
  30. </div>
  31. </div>
  32. <div class="layui-form-item">
  33. <div class="layui-input-block">
  34. <button class="layui-btn" lay-submit lay-filter="formDemo">get</button>
  35. </div>
  36. </div>
  37. </form>
  38. <iframe id="f1" name="f1" width="100%" height="400px" style="border:0px;">
  39. </iframe>
  40. </div>
  41. </div>
  42. </div>
  43. <script src="/static/lib/layui/layui.js?t=1505408433792" charset="utf-8"></script>
  44. <script>
  45. layui.use(['form','layer'], function(){
  46. var form = layui.form;
  47. //监听提交
  48. form.on('submit(formDemo)', function(data){
  49. //layer.msg(JSON.stringify(data.field));
  50. return true;
  51. });
  52. /*
  53. var layer = layui.layer;
  54. layer.open({
  55. type: 2,
  56. title: false,
  57. area: ['630px', '360px'],
  58. shade: 0.8,
  59. closeBtn: 0,
  60. shadeClose: true,
  61. content: '//player.youku.com/embed/XMjY3MzgzODg0'
  62. });
  63. */
  64. });
  65. </script>
  66. </body>
  67. </html>
  68. {{ end }}