index.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>PBL教师端</title><link rel="shortcut icon" type=image/x-icon href=static/logo.ico><style>@charset "utf-8";
  2. /* @font-face {
  3. font-family: 'Source Han Sans SC';
  4. src: url('./static/SourceHanSans-Regular.otf') format('truetype');
  5. font-weight: normal;
  6. font-style: normal;
  7. } */
  8. div::-webkit-scrollbar {
  9. /*滚动条整体样式*/
  10. width: 6px;
  11. /*高宽分别对应横竖滚动条的尺寸*/
  12. height: 6px;
  13. }
  14. /*定义滚动条轨道 内阴影+圆角*/
  15. div::-webkit-scrollbar-track {
  16. border-radius: 10px;
  17. background-color: rgba(0, 0, 0, 0.1);
  18. }
  19. /*定义滑块 内阴影+圆角*/
  20. div::-webkit-scrollbar-thumb {
  21. border-radius: 10px;
  22. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  23. background-color: rgba(0, 0, 0, 0.1);
  24. }
  25. html,
  26. body {
  27. height: 100%;
  28. width: 100%;
  29. background: #e6eaf0;
  30. font-family: '黑体';
  31. }</style><link href=./static/css/app.a88b72ce613997f82358cee87a82612e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.00bfcafc8431113801f1.js></script><script type=text/javascript src=./static/js/vendor.a54a39a7efbf3fedeee2.js></script><script type=text/javascript src=./static/js/app.495fc648f32214710857.js></script></body></html><script>function stopSafari() {
  32. //阻止safari浏览器双击放大功能
  33. let lastTouchEnd = 0 //更新手指弹起的时间
  34. document.documentElement.addEventListener("touchstart", function (event) {
  35. //多根手指同时按下屏幕,禁止默认行为
  36. if (event.touches.length > 1) {
  37. event.preventDefault();
  38. }
  39. });
  40. document.documentElement.addEventListener("touchend", function (event) {
  41. let now = (new Date()).getTime();
  42. if (now - lastTouchEnd <= 300) {
  43. //当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
  44. event.preventDefault();
  45. } else { // 否则重新手指弹起的时间
  46. lastTouchEnd = now;
  47. }
  48. }, false);
  49. //阻止双指放大页面
  50. document.documentElement.addEventListener("gesturestart", function (event) {
  51. event.preventDefault();
  52. });
  53. }
  54. window.onload = () => {
  55. stopSafari();
  56. }
  57. document.domain = document.domain.split(".").slice(-2).join(".");</script>