index.html 2.1 KB

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>htmldoc</title><style>* {
  2. margin: 0;
  3. padding: 0;
  4. user-select:none;
  5. }</style><script>(function setRootFont() {
  6. var _self = window;
  7. _self.selfFontSize = undefined;
  8. _self.width = 1560; //设置默认最大宽度
  9. _self.fontSize = 100; //默认字体大小
  10. _self.widthProportion = function () {
  11. var p = ((document.body && document.documentElement.clientWidth) || document.getElementsByTagName("html")[0].offsetWidth) / _self.width;
  12. return p > 1 ? 1 : p < 0.25 ? 0.25 : p;
  13. // var p = ((document.body && document.documentElement.clientHeight) || document.getElementsByTagName("html")[0].offsetHeight) / _self.height;
  14. // return p < 0.25 ? 0.25 : p;
  15. };
  16. _self.changePage = function () {
  17. _self.selfFontSize = _self.widthProportion() * _self.fontSize;
  18. document.getElementsByTagName("html")[0].setAttribute("style",
  19. "font-size:" + _self.selfFontSize + "px");
  20. };
  21. _self.changePage();
  22. window.addEventListener('resize', function () {
  23. _self.changePage();
  24. }, false);
  25. })();</script><script src="./tinymce/js/tinymce/tinymce.min.js"></script><link href="js/about.5c75d116.js" rel="prefetch"><link href="css/app.ff123d74.css" rel="preload" as="style"><link href="js/app.878acd1f.js" rel="preload" as="script"><link href="js/chunk-vendors.cd977048.js" rel="preload" as="script"><link href="css/app.ff123d74.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but htmldoc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.cd977048.js"></script><script src="js/app.878acd1f.js"></script></body></html>