index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="edge" />
  8. <title>ShowDoc</title>
  9. <meta name="keywords" content="在线API文档 技术文档 数据字典 在线手册" />
  10. <meta name="description" content="一个非常适合IT团队的在线API文档、技术文档工具。你可以使用Showdoc来编写在线API文档、技术文档、数据字典、在线手册" />
  11. <script type="text/javascript">
  12. //挂在window下的全局配置
  13. window.DocConfig = {
  14. //"server":'http://127.0.0.1/showdoc/server/index.php?s=',
  15. "server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
  16. //"lang" :'en'
  17. "lang" :'zh-cn'
  18. }
  19. </script>
  20. </head>
  21. <body class="grey-bg">
  22. <div id="app"></div>
  23. <!-- built files will be auto injected -->
  24. </body>
  25. </html>
  26. <script language="JavaScript">
  27. var Wwidth = window.innerWidth ;
  28. window.addEventListener('resize', function() {
  29. ///宽度变化大于50像素的时候刷新整个窗口以适应新宽度
  30. if ( Math.abs(Wwidth - window.innerWidth) > 50 ) {
  31. //console.log(window.innerWidth + ' ' + window.innerHeight);
  32. //如果不在编辑页面,则在窗口变化后刷新窗口以适应宽度
  33. if(window.location.href.indexOf("/edit") === -1){
  34. window.location.reload();
  35. }
  36. };
  37. });
  38. </script>