index.html 2.5 KB

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