index.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html><html lang=""><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>党建实时看板</title><script>var inputContent = {
  2. open:false,
  3. el:'',
  4. time:'',
  5. before_type:'',
  6. };
  7. (function (win,doc) {
  8. win.screen_conf = {
  9. width:0, // 页面可见宽度
  10. height:0, // 页面可见高度
  11. fontSize:0, // 页面单位大小
  12. proportion:0, // 比例
  13. multiple:100, // 倍数
  14. ref:1920, // 参照,
  15. startHeight: window.innerHeight,
  16. maxWidth:999999999
  17. };
  18. doc.onblur = function(){
  19. window.scroll(0,0);
  20. doc.scrollIntoView && doc.scrollIntoView();
  21. };
  22. // 定义 宽度和高度变量
  23. win.handle_size = function () {
  24. // 设置被修改的数据问题
  25. screen_conf.width = win.innerWidth;
  26. screen_conf.height = win.innerHeight;
  27. if(window.orientation==0){
  28. doc.documentElement.style.width = screen_conf.width + 'px';
  29. doc.documentElement.style.minHeight = screen_conf.height + 'px';
  30. }
  31. screen_conf.width = screen_conf.width >= win.screen_conf.maxWidth?win.screen_conf.maxWidth:screen_conf.width;
  32. screen_conf.proportion = screen_conf.width / screen_conf.ref;
  33. screen_conf.fontSize = screen_conf.proportion * screen_conf.multiple;
  34. doc.documentElement.style.fontSize = screen_conf.fontSize+'px';
  35. for (var i=0,count = observer_size.length;i<count;i++) {
  36. typeof observer_size[i] === 'function'&&observer_size[i](screen_conf);
  37. }
  38. };
  39. // 定义观察者函数
  40. win.observer_size = [];
  41. win.handle_size(0,20);
  42. window.addEventListener('resize',win.handle_size);
  43. })(window,document);</script><link href="css/app.9a88f629.css" rel="preload" as="style"><link href="js/app.d5bb9e89.js" rel="preload" as="script"><link href="js/chunk-vendors.c10bd1dd.js" rel="preload" as="script"><link href="css/app.9a88f629.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but party-building-pc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.c10bd1dd.js"></script><script src="js/app.d5bb9e89.js"></script></body></html>