Elgg  Version 1.11
theme.js
Go to the documentation of this file.
1 $( document ).ready(function() {
2  // Shift nav in mobile when clicking the menu.
3  $(document).on('click', "[data-toggle='wy-nav-top']", function() {
4  $("[data-toggle='wy-nav-shift']").toggleClass("shift");
5  $("[data-toggle='rst-versions']").toggleClass("shift");
6  });
7  // Close menu when you click a link.
8  $(document).on('click', ".wy-menu-vertical .current ul li a", function() {
9  $("[data-toggle='wy-nav-shift']").removeClass("shift");
10  $("[data-toggle='rst-versions']").toggleClass("shift");
11  });
12  $(document).on('click', "[data-toggle='rst-current-version']", function() {
13  $("[data-toggle='rst-versions']").toggleClass("shift-up");
14  });
15  // Make tables responsive
16  $("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
17 });
18 
19 window.ElggRtdTheme = (function (jquery) {
20  var stickyNav = (function () {
21  var navBar,
22  win,
23  stickyNavCssClass = 'stickynav',
24  applyStickNav = function () {
25  if (navBar.height() <= win.height()) {
26  navBar.addClass(stickyNavCssClass);
27  } else {
28  navBar.removeClass(stickyNavCssClass);
29  }
30  },
31  enable = function () {
32  applyStickNav();
33  win.on('resize', applyStickNav);
34  },
35  init = function () {
36  navBar = jquery('nav.wy-nav-side:first');
37  win = jquery(window);
38  };
39  jquery(init);
40  return {
41  enable : enable
42  };
43  }());
44  return {
45  StickyNav : stickyNav
46  };
47 }($));
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on
Definition: LICENSE.txt:43
elgg comments init
Initialize comment inline editing.
Definition: comments.js:117
GNU GENERAL PUBLIC LICENSE June Free Software Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: LICENSE.txt:4
word wrap
Definition: admin.php:147
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>");})