12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {{ define "index.html" }}
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>微博请求 - condenast</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="format-detection" content="telephone=no">
-
- <link rel="stylesheet" href="/static/lib/layui/css/layui.css?t=1505408433792" media="all">
-
- </head>
- <body>
- <div class="layui-container">
- <div class="layui-row">
- <div class="layui-col">
- <ul class="layui-nav" lay-filter="">
- <li class="layui-nav-item layui-this"><a href="/">data api</a></li>
- <li class="layui-nav-item"><a href="/token" target="_blank">token api</a></li>
- <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>
- </ul>
- <blockquote class="layui-elem-quote">[token]:{{ .access_token }} [uid]:{{ .uid }}</blockquote>
- <form class="layui-form" action="api" method="get" target="f1">
- <div class="layui-form-item">
- <label class="layui-form-label">apiURL</label>
- <div class="layui-input-block">
- <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">
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block">
- <button class="layui-btn" lay-submit lay-filter="formDemo">get</button>
- </div>
- </div>
- </form>
- <iframe id="f1" name="f1" width="100%" height="400px" style="border:0px;">
- </iframe>
- </div>
- </div>
- </div>
- <script src="/static/lib/layui/layui.js?t=1505408433792" charset="utf-8"></script>
- <script>
- layui.use(['form','layer'], function(){
- var form = layui.form;
-
- //监听提交
- form.on('submit(formDemo)', function(data){
- //layer.msg(JSON.stringify(data.field));
- return true;
- });
- /*
- var layer = layui.layer;
- layer.open({
- type: 2,
- title: false,
- area: ['630px', '360px'],
- shade: 0.8,
- closeBtn: 0,
- shadeClose: true,
- content: '//player.youku.com/embed/XMjY3MzgzODg0'
- });
- */
- });
- </script>
- </body>
- </html>
- {{ end }}
|