Elgg  Version 2.3
Functions | Variables
theme.js File Reference

Go to the source code of this file.

Functions

document ready (function(){$(document).on('click',"[data-toggle='wy-nav-top']", function(){$("[data-toggle='wy-nav-shift']").toggleClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(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");});$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");})
 

Variables

window ElggRtdTheme
 

Function Documentation

document ready ( function(){$(document).on('click',"[data-toggle='wy-nav-top']", function(){$("[data-toggle='wy-nav-shift']").toggleClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(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");});$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");}  )

Variable Documentation

window ElggRtdTheme
Initial value:
= (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);
};
return {
enable : enable
};
}());
return {
StickyNav : stickyNav
};
}($))
elgg comments init
Initialize comment inline editing.
Definition: comments.js:122
const jquery
Definition: elgg.js.php:82

Definition at line 19 of file theme.js.