index.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. }</style><link href=./static/css/app.59a691058a93c9e33e229217fdad07f3.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.33ff8205ee12af8694e2.js></script></body></html><script>function stopSafari() {
  25. //阻止safari浏览器双击放大功能
  26. let lastTouchEnd = 0 //更新手指弹起的时间
  27. document.documentElement.addEventListener("touchstart", function (event) {
  28. //多根手指同时按下屏幕,禁止默认行为
  29. if (event.touches.length > 1) {
  30. event.preventDefault();
  31. }
  32. });
  33. document.documentElement.addEventListener("touchend", function (event) {
  34. let now = (new Date()).getTime();
  35. if (now - lastTouchEnd <= 300) {
  36. //当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
  37. event.preventDefault();
  38. } else { // 否则重新手指弹起的时间
  39. lastTouchEnd = now;
  40. }
  41. }, false);
  42. //阻止双指放大页面
  43. document.documentElement.addEventListener("gesturestart", function (event) {
  44. event.preventDefault();
  45. });
  46. }
  47. window.onload = () => {
  48. stopSafari();
  49. }
  50. document.domain = document.domain.split(".").slice(-2).join(".");</script>