Cap resum de modificació |
|||
Línia 1: | Línia 1: | ||
Some examples and proof of concept for using jQuery for enhancing Moodle usability. | Some examples and proof of concept for using jQuery for enhancing Moodle usability. | ||
You can try those code snippets without changing your Moodle installation by using the [[Firebug]] extension [http://firequery.binaryage.com/ FireQuery]. | |||
== Collapsible course list == | == Collapsible course list == |
Revisió del 16:02, 6 nov 2011
Some examples and proof of concept for using jQuery for enhancing Moodle usability.
You can try those code snippets without changing your Moodle installation by using the Firebug extension FireQuery.
Collapsible course list
jQuery('.section h3').wrapInner('<a href="#" />')
.click( function(event) {
event.preventDefault();
jQuery(this).parent().find('ul.section').toggle();
})
jQuery('ul.section').hide();