Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/python_api/blender-org/static/jquery.sidebar.js')
-rw-r--r--doc/python_api/blender-org/static/jquery.sidebar.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/doc/python_api/blender-org/static/jquery.sidebar.js b/doc/python_api/blender-org/static/jquery.sidebar.js
deleted file mode 100644
index c22c61f2409..00000000000
--- a/doc/python_api/blender-org/static/jquery.sidebar.js
+++ /dev/null
@@ -1,26 +0,0 @@
-$(document).ready(function () {
- var top = $('.sphinxsidebarwrapper').offset().top - parseFloat($('.sphinxsidebarwrapper').css ('marginTop').replace(/auto/, 0));
- var colheight = parseFloat($('.sphinxsidebarwrapper').css('height').replace(/auto/, 0));
-
-
-$(window).scroll(function (event) {
- // what the y position of the scroll is
- var y = $(this).scrollTop();
-
- // whether that's below the form
- if (y >= top) {
- //colheight is checked and according to its vaule the scrolling
- //is triggered or not
- if (colheight <= window.innerHeight) {
- // if so, ad the fixed class
- $('.sphinxsidebarwrapper').addClass('fixed');
- } else {
- // otherwise remove it
- $('.sphinxsidebarwrapper').removeClass('fixed');
- }
- } else {
- // otherwise remove it
- $('.sphinxsidebarwrapper').removeClass('fixed');
- }
-});
-});