index.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>pbl-student</title><base target=_blank><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. font-family: '黑体';
  28. }</style><link href=./static/css/app.8972ce9a57cc6f698481525e44f60999.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.264e3d6e7c524117db80.js></script><script type=text/javascript src=./static/js/app.cb11cf6c916a37cd1ed4.js></script></body></html><script>function stopSafari() {
  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 = "cocorobo.cn"</script>