api.html 861 B

1234567891011121314151617181920212223242526272829
  1. {{ define "api.html" }}
  2. <!DOCTYPE html>
  3. <html lang="zh">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>微博接口</title>
  9. <link rel="stylesheet" href="/static/css/jquery.json-viewer.css" media="all">
  10. <style>
  11. body{background-color: #F7F7F7}
  12. </style>
  13. </head>
  14. <body>
  15. <pre id="json-renderer" style="margin-left:10px;"></pre>
  16. <script src="/static/js/jquery-1.11.0.min.js" charset="utf-8"></script>
  17. <script src="/static/js/jquery.json-viewer.js" charset="utf-8"></script>
  18. <script>
  19. var options = {
  20. collapsed: $('#collapsed').is(':checked'),
  21. withQuotes: $('#with-quotes').is(':checked')
  22. };
  23. var obj = JSON.parse({{ .json }});
  24. $('#json-renderer').jsonViewer(obj, options);
  25. </script>
  26. </body>
  27. </html>
  28. {{ end }}