You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.6 KiB

преди 3 години
  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="" />
  10. <meta name="description" content="本网站基于开源版showdoc搭建,仅供私人使用。如需访问showdoc官网,请在搜索引擎里搜索showdoc字样或者直接访问showdoc.com.cn" />
  11. <script type="text/javascript">
  12. var Wwidth = window.innerWidth ;
  13. window.addEventListener('resize', function() {
  14. ///宽度变化大于50像素的时候刷新整个窗口以适应新宽度
  15. if ( Math.abs(Wwidth - window.innerWidth) > 50 ) {
  16. //如果不在编辑页面,则在窗口变化后刷新窗口以适应宽度
  17. if(window.location.href.indexOf("/edit") === -1){
  18. window.location.reload();
  19. }
  20. };
  21. });
  22. //挂在window下的全局配置
  23. window.DocConfig = {
  24. //"server":'http://127.0.0.1/showdoc/server/index.php?s=',
  25. "server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
  26. //"lang" :'en'
  27. "lang" :'zh-cn'
  28. }
  29. </script>
  30. </head>
  31. <body class="grey-bg">
  32. <div id="app"></div>
  33. <!-- built files will be auto injected -->
  34. <div style="display:none">本网站基于开源版showdoc搭建,仅供私人使用。如需访问showdoc官网,请在搜索引擎里搜索showdoc字样或者直接访问showdoc.com.cn</div>
  35. </body>
  36. </html>