document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. $(function prepareList() {
  2.     $(\'#expList\').find(\'li:has(ul)\').unbind(\'click\').click(function(event) {
  3.         if(this == event.target) {
  4.             $(this).toggleClass(\'expanded\');
  5.             $(this).children(\'ul\').toggle(\'medium\');
  6.         }
  7.         return false;
  8.     }).addClass(\'collapsed\').removeClass(\'expanded\').children(\'ul\').hide();
  9.  
  10.     //Hack to add links inside the cv
  11.     $(\'#expList a\').unbind(\'click\').click(function() {
  12.         window.open($(this).attr(\'href\'));
  13.         return false;
  14.     });
  15.     //Create the button functionality
  16.     $(\'#expandList\').unbind(\'click\').click(function() {
  17.         $(\'.collapsed\').addClass(\'expanded\');
  18.         $(\'.collapsed\').children().show(\'medium\');
  19.     })
  20.     $(\'#collapseList\').unbind(\'click\').click(function() {
  21.         $(\'.collapsed\').removeClass(\'expanded\');
  22.         $(\'.collapsed\').children().hide(\'medium\');
  23.     })
  24. });
');