From b73eb19aed66190c10c9cad476da7c36c271d6dc Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 19 Sep 2019 15:08:45 +0300 Subject: [ci skip] 3.1.11 release --- .../_themes/sphinx_rtd_theme/static/js/oldtheme.js | 47 -------- .../_themes/sphinx_rtd_theme/static/js/theme.js | 134 --------------------- 2 files changed, 181 deletions(-) delete mode 100644 user_guide_src/source/_themes/sphinx_rtd_theme/static/js/oldtheme.js delete mode 100644 user_guide_src/source/_themes/sphinx_rtd_theme/static/js/theme.js (limited to 'user_guide_src/source/_themes/sphinx_rtd_theme/static/js') diff --git a/user_guide_src/source/_themes/sphinx_rtd_theme/static/js/oldtheme.js b/user_guide_src/source/_themes/sphinx_rtd_theme/static/js/oldtheme.js deleted file mode 100644 index 60520cc3a..000000000 --- a/user_guide_src/source/_themes/sphinx_rtd_theme/static/js/oldtheme.js +++ /dev/null @@ -1,47 +0,0 @@ -$( document ).ready(function() { - // Shift nav in mobile when clicking the menu. - $(document).on('click', "[data-toggle='wy-nav-top']", function() { - $("[data-toggle='wy-nav-shift']").toggleClass("shift"); - $("[data-toggle='rst-versions']").toggleClass("shift"); - }); - // Close menu when you click a link. - $(document).on('click', ".wy-menu-vertical .current ul li a", function() { - $("[data-toggle='wy-nav-shift']").removeClass("shift"); - $("[data-toggle='rst-versions']").toggleClass("shift"); - }); - $(document).on('click', "[data-toggle='rst-current-version']", function() { - $("[data-toggle='rst-versions']").toggleClass("shift-up"); - }); - // Make tables responsive - $("table.docutils:not(.field-list)").wrap("
"); -}); - -window.SphinxRtdTheme = (function (jquery) { - var stickyNav = (function () { - var navBar, - win, - stickyNavCssClass = 'stickynav', - applyStickNav = function () { - if (navBar.height() <= win.height()) { - navBar.addClass(stickyNavCssClass); - } else { - navBar.removeClass(stickyNavCssClass); - } - }, - enable = function () { - applyStickNav(); - win.on('resize', applyStickNav); - }, - init = function () { - navBar = jquery('nav.wy-nav-side:first'); - win = jquery(window); - }; - jquery(init); - return { - enable : enable - }; - }()); - return { - StickyNav : stickyNav - }; -}($)); diff --git a/user_guide_src/source/_themes/sphinx_rtd_theme/static/js/theme.js b/user_guide_src/source/_themes/sphinx_rtd_theme/static/js/theme.js deleted file mode 100644 index 911dad29b..000000000 --- a/user_guide_src/source/_themes/sphinx_rtd_theme/static/js/theme.js +++ /dev/null @@ -1,134 +0,0 @@ -$(document).ready(function () { - // Shift nav in mobile when clicking the menu. - $(document).on('click', "[data-toggle='wy-nav-top']", function () { - $("[data-toggle='wy-nav-shift']").toggleClass("shift"); - $("[data-toggle='rst-versions']").toggleClass("shift"); - }); - // Close menu when you click a link. - $(document).on('click', ".wy-menu-vertical .current ul li a", function () { - $("[data-toggle='wy-nav-shift']").removeClass("shift"); - $("[data-toggle='rst-versions']").toggleClass("shift"); - }); - $(document).on('click', "[data-toggle='rst-current-version']", function () { - $("[data-toggle='rst-versions']").toggleClass("shift-up"); - }); - // Make tables responsive - $("table.docutils:not(.field-list)").wrap("
"); - // --- - // START DOC MODIFICATION BY RUFNEX - // v1.0 04.02.2015 - // Add ToogleButton to get FullWidth-View by Johannes Gamperl codeigniter.de - - $('#openToc').click(function () { - $('#nav').slideToggle(); - }); - $('#closeMe').click(function () { - if (getCookie('ciNav') != 'yes') { - setCookie('ciNav', 'yes', 365); - } else { - setCookie('ciNav', 'no', 365); - } - tocFlip(); - }); - var tocFlip = function(){ - if (getCookie('ciNav') == 'yes') { - $('#nav2').show(); - $('#topMenu').remove(); - $('body').css({ background: 'none' }); - $('.wy-nav-content-wrap').css({ background: 'none', 'margin-left': 0 }); - $('.wy-breadcrumbs').append('
' + $('.wy-form').parent().html() + '
'); - $('.wy-nav-side').toggle(); - } else { - $('#topMenu').remove(); - $('#nav').hide(); - $('#nav2').hide(); - $('body').css({ background: '#edf0f2;' }); - $('.wy-nav-content-wrap').css({ background: 'none repeat scroll 0 0 #fcfcfc;', 'margin-left': '300px' }); - $('.wy-nav-side').show(); - } - }; - if (getCookie('ciNav') == 'yes') - { - tocFlip(); - //$('#nav').slideToggle(); - } - // END MODIFICATION --- - -}); - -// Rufnex Cookie functions -function setCookie(cname, cvalue, exdays) { - // expire the old cookie if existed to avoid multiple cookies with the same name - if (getCookie(cname)) { - document.cookie = cname + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; - } - var d = new Date(); - d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); - var expires = "expires=" + d.toGMTString(); - document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; -} -function getCookie(cname) { - var name = cname + "="; - var ca = document.cookie.split(';'); - for (var i = 0; i < ca.length; i++) { - var c = ca[i]; - while (c.charAt(0) == ' ') - c = c.substring(1); - if (c.indexOf(name) == 0) { - return c.substring(name.length, c.length); - } - } - return ''; -} -// End - -// resize window -$(window).on('resize', function(){ - // show side nav on small screens when pulldown is enabled - if (getCookie('ciNav') == 'yes' && $(window).width() <= 768) { // 768px is the tablet size defined by the theme - $('.wy-nav-side').show(); - } - // changing css with jquery seems to override the default css media query - // change margin - else if (getCookie('ciNav') == 'no' && $(window).width() <= 768) { - $('.wy-nav-content-wrap').css({'margin-left': 0}); - } - // hide side nav on large screens when pulldown is enabled - else if (getCookie('ciNav') == 'yes' && $(window).width() > 768) { - $('.wy-nav-side').hide(); - } - // change margin - else if (getCookie('ciNav') == 'no' && $(window).width() > 768) { - $('.wy-nav-content-wrap').css({'margin-left': '300px'}); - } -}); - -window.SphinxRtdTheme = (function (jquery) { - var stickyNav = (function () { - var navBar, - win, - stickyNavCssClass = 'stickynav', - applyStickNav = function () { - if (navBar.height() <= win.height()) { - navBar.addClass(stickyNavCssClass); - } else { - navBar.removeClass(stickyNavCssClass); - } - }, - enable = function () { - applyStickNav(); - win.on('resize', applyStickNav); - }, - init = function () { - navBar = jquery('nav.wy-nav-side:first'); - win = jquery(window); - }; - jquery(init); - return { - enable: enable - }; - }()); - return { - StickyNav: stickyNav - }; -}($)); -- cgit v1.2.3-24-g4f1b