made auto phpcbf changes; added some documentation
This commit is contained in:
17
docs/api/js/template.js
Normal file
17
docs/api/js/template.js
Normal file
@@ -0,0 +1,17 @@
|
||||
(function(){
|
||||
window.addEventListener('load', () => {
|
||||
const el = document.querySelector('.phpdocumentor-on-this-page__content')
|
||||
if (!el) {
|
||||
return;
|
||||
}
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
([e]) => {
|
||||
e.target.classList.toggle("-stuck", e.intersectionRatio < 1);
|
||||
},
|
||||
{threshold: [1]}
|
||||
);
|
||||
|
||||
observer.observe(el);
|
||||
})
|
||||
})();
|
||||
Reference in New Issue
Block a user