File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 {% else %}
6666 < meta property ="twitter:image " content ="https://expressjs.com/images/og.png ">
6767 {% endif %}
68- < script data-cfasync ="false " src ="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js "> </ script >
6968 < script data-cfasync ="false " src ="/js/app.js "> </ script >
7069 < script data-cfasync ="false " defer src ="/js/menu.js "> </ script >
7170 < script data-cfasync ="false " defer src ="/js/copycode.js "> </ script >
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ document.addEventListener("DOMContentLoaded", function () {
4747 const menuLinks = document . querySelectorAll ( "#menu li a" ) ;
4848
4949 const observerOptions = {
50- rootMargin : "-200px 0px 0px 0px" ,
50+ root : null ,
51+ rootMargin : "-25% 0px -50px 0px" ,
52+ threshold : 1 ,
5153 } ;
5254
5355 const menuObserver = new IntersectionObserver ( ( entries ) => {
You can’t perform that action at this time.
0 commit comments