Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function prepareList() {
- $('#expList').find('li:has(ul)').unbind('click').click(function(event) {
- if(this == event.target) {
- $(this).toggleClass('expanded');
- $(this).children('ul').toggle('medium');
- }
- return false;
- }).addClass('collapsed').removeClass('expanded').children('ul').hide();
- //Hack to add links inside the cv
- $('#expList a').unbind('click').click(function() {
- window.open($(this).attr('href'));
- return false;
- });
- //Create the button functionality
- $('#expandList').unbind('click').click(function() {
- $('.collapsed').addClass('expanded');
- $('.collapsed').children().show('medium');
- })
- $('#collapseList').unbind('click').click(function() {
- $('.collapsed').removeClass('expanded');
- $('.collapsed').children().hide('medium');
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment