Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4133940
useIntersectionObserver.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
529 B
Referenced Files
None
Subscribers
None
useIntersectionObserver.cjs
View Options
"use strict";const t=require("vue");function u(o,c){const e=t.ref(!1);let i=!1;if(typeof window!="object"||!("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype))return e;const n=new window.IntersectionObserver(r=>{const s=r[0];s&&(e.value=s.isIntersecting)},c);return t.onMounted(()=>{i=!0,o.value&&n.observe(o.value)}),t.onUnmounted(()=>{i=!1,n.disconnect()}),t.watch(o,r=>{i&&(n.disconnect(),e.value=!1,r&&n.observe(r))}),e}module.exports=u;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 12:23 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/b2/12c921f7bc32a03dd6958e58b62d
Default Alt Text
useIntersectionObserver.cjs (529 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment