index.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. //如果存在save-page,则保存内容后再刷新以免丢失内容
  33. if(document.getElementById("save-page")){
  34. document.getElementById("save-page").click();
  35. }
  36. window.location.reload();
  37. };
  38. });
  39. </script>