davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=838d4b38c502efdc101c902f759a15ebd472a13c

commit 838d4b38c502efdc101c902f759a15ebd472a13c
Author: Dave Andreoli <[email protected]>
Date:   Mon Nov 29 22:25:05 2021 +0100

    Docs: comment out unused js
---
 doc/themes/efldoc/layout.html | 50 +++++++++++++++++++++----------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/doc/themes/efldoc/layout.html b/doc/themes/efldoc/layout.html
index 75f6ea8..d667c0a 100644
--- a/doc/themes/efldoc/layout.html
+++ b/doc/themes/efldoc/layout.html
@@ -26,31 +26,31 @@
     </style>
     <script>
       // intelligent scrolling of the sidebar content
-      $(window).scroll(function() {
-        var sb = $('.sphinxsidebarwrapper');
-        var win = $(window);
-        var sbh = sb.height();
-        var offset = $('.sphinxsidebar').position()['top'];
-        var wintop = win.scrollTop();
-        var winbot = wintop + win.innerHeight();
-        var curtop = sb.position()['top'];
-        var curbot = curtop + sbh;
-        // does sidebar fit in window?
-        if (sbh < win.innerHeight()) {
-          // yes: easy case -- always keep at the top
-          sb.css('top', $u.min([$u.max([0, wintop - offset - 10]),
-                                $(document).height() - sbh - 200]));
-        } else {
-          // no: only scroll if top/bottom edge of sidebar is at
-          // top/bottom edge of window
-          if (curtop > wintop && curbot > winbot) {
-            sb.css('top', $u.max([wintop - offset - 10, 0]));
-          } else if (curtop < wintop && curbot < winbot) {
-            sb.css('top', $u.min([winbot - sbh - offset - 20,
-                                  $(document).height() - sbh - 200]));
-          }
-        }
-      });
+      // $(window).scroll(function() {
+      //   var sb = $('.sphinxsidebarwrapper');
+      //   var win = $(window);
+      //   var sbh = sb.height();
+      //   var offset = $('.sphinxsidebar').position()['top'];
+      //   var wintop = win.scrollTop();
+      //   var winbot = wintop + win.innerHeight();
+      //   var curtop = sb.position()['top'];
+      //   var curbot = curtop + sbh;
+      //   // does sidebar fit in window?
+      //   if (sbh < win.innerHeight()) {
+      //     // yes: easy case -- always keep at the top
+      //     sb.css('top', $u.min([$u.max([0, wintop - offset - 10]),
+      //                           $(document).height() - sbh - 200]));
+      //   } else {
+      //     // no: only scroll if top/bottom edge of sidebar is at
+      //     // top/bottom edge of window
+      //     if (curtop > wintop && curbot > winbot) {
+      //       sb.css('top', $u.max([wintop - offset - 10, 0]));
+      //     } else if (curtop < wintop && curbot < winbot) {
+      //       sb.css('top', $u.min([winbot - sbh - offset - 20,
+      //                             $(document).height() - sbh - 200]));
+      //     }
+      //   }
+      // });
     </script>
 {%- endif %}
 

-- 


Reply via email to