index.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. div::-webkit-scrollbar {
  3. /*滚动条整体样式*/
  4. width: 6px;
  5. /*高宽分别对应横竖滚动条的尺寸*/
  6. height: 6px;
  7. }
  8. /*定义滚动条轨道 内阴影+圆角*/
  9. div::-webkit-scrollbar-track {
  10. border-radius: 10px;
  11. background-color: rgba(0, 0, 0, 0.1);
  12. }
  13. /*定义滑块 内阴影+圆角*/
  14. div::-webkit-scrollbar-thumb {
  15. border-radius: 10px;
  16. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  17. background-color: rgba(0, 0, 0, 0.1);
  18. }
  19. html,
  20. body {
  21. height: 100%;
  22. width: 100%;
  23. background: #e6eaf0;
  24. <<<<<<< HEAD
  25. }</style><link href=./static/css/app.9fbf2447aed02172ced42e96037e33e7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.f583576dfec9dfc9a295.js></script><script type=text/javascript src=./static/js/vendor.47326b7cf726c651fd28.js></script><script type=text/javascript src=./static/js/app.20ecd6f597994cd5a70c.js></script></body></html><script>function stopSafari() {
  26. =======
  27. }</style><link href=./static/css/app.a92d1e47d67e76053f5dc510adb006d4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.a424531df805e70dd514.js></script></body></html><script>function stopSafari() {
  28. >>>>>>> beta
  29. //阻止safari浏览器双击放大功能
  30. let lastTouchEnd = 0 //更新手指弹起的时间
  31. document.documentElement.addEventListener("touchstart", function (event) {
  32. //多根手指同时按下屏幕,禁止默认行为
  33. if (event.touches.length > 1) {
  34. event.preventDefault();
  35. }
  36. });
  37. document.documentElement.addEventListener("touchend", function (event) {
  38. let now = (new Date()).getTime();
  39. if (now - lastTouchEnd <= 300) {
  40. //当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
  41. event.preventDefault();
  42. } else { // 否则重新手指弹起的时间
  43. lastTouchEnd = now;
  44. }
  45. }, false);
  46. //阻止双指放大页面
  47. document.documentElement.addEventListener("gesturestart", function (event) {
  48. event.preventDefault();
  49. });
  50. }
  51. window.onload = () => {
  52. stopSafari();
  53. }
  54. document.domain = document.domain.split(".").slice(-2).join(".");</script>