1(function () { 2 // å åºï¼ç¡®ä¿ html/body éä½ï¼é¿å iOS / H5 æ©¡ç®çåå¼¹é²ç½ 3 var html = document.documentElement 4 var body = document.body 5 if (!html || !body) return 6 7 function lockRootScroll() { 8 html.style.backgroundColor = '#000' 9 html.style.overscrollBehavior = 'none' 10 html.style.overflow = 'hidden' 11 12 body.style.backgroundColor = '#000' 13 body.style.overscrollBehavior = 'none' 14 body.style.webkitOverflowScrolling = 'auto' 15 body.style.overflow = 'hidden' 16 body.style.position = 'fixed' 17 body.style.inset = '0' 18 body.style.width = '100%' 19 body.style.height = '100%' 20 21 var nodes = document.querySelectorAll('#app, #fullpage, .fullpage-wrapper, .fp-section') 22 for (var i = 0; i < nodes.length; i += 1) { 23 nodes[i].style.overscrollBehavior = 'none' 24 } 25 } 26 27 lockRootScroll() 28 window.addEventListener('load', lockRootScroll) 29 window.addEventListener('orientationchange', function () { 30 setTimeout(lockRootScroll, 300) 31 }) 32})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.