index.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>pbl-student</title><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. }</style><link href=./static/css/app.f8f346e15dd24f18da996f822e902487.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e81042531bab735dba9a.js></script><script type=text/javascript src=./static/js/app.016881451ac448e81f67.js></script></body></html><script>function stopSafari() {
  19. //阻止safari浏览器双击放大功能
  20. let lastTouchEnd = 0 //更新手指弹起的时间
  21. document.documentElement.addEventListener("touchstart", function (event) {
  22. //多根手指同时按下屏幕,禁止默认行为
  23. if (event.touches.length > 1) {
  24. event.preventDefault();
  25. }
  26. });
  27. document.documentElement.addEventListener("touchend", function (event) {
  28. let now = (new Date()).getTime();
  29. if (now - lastTouchEnd <= 300) {
  30. //当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
  31. event.preventDefault();
  32. } else { // 否则重新手指弹起的时间
  33. lastTouchEnd = now;
  34. }
  35. }, false);
  36. //阻止双指放大页面
  37. document.documentElement.addEventListener("gesturestart", function (event) {
  38. event.preventDefault();
  39. });
  40. }
  41. window.onload = () => {
  42. stopSafari();
  43. }
  44. document.domain = "cocorobo.cn"</script>