jquery.lp_minipanel.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* For licensing terms, see /license.txt */
  2. /**
  3. Learning Path minipanel - Chamilo 1.8.8
  4. Adding mini panel to browse Learning Paths
  5. Requirements: JQuery 1.4.4, JQuery UI 1.8.7
  6. @author Alberto Torreblanca @albert1t0
  7. @author Julio Montoya Cleaning/fixing code
  8. @author Alex Aragon Cleaning/fixing code update
  9. **/
  10. $(document).ready(function() {
  11. $('#touch-button').click(function() {
  12. $('#learning_path_left_zone').toggle("slow", function(){
  13. $('#learning_path_right_zone').toggleClass('total');
  14. $(function(){
  15. $('#learning_path_right_zone').slideToggle(300);
  16. $('#control-bottom').toggle("slow");
  17. });
  18. });
  19. $(this).toggleClass('show-touch');
  20. $('#learning_path_right_zone').slideToggle(300);
  21. });
  22. // effects items scorm content
  23. $('.scorm_item_normal').click(function() {
  24. $('#learning_path_right_zone').fadeOut(300);
  25. setTimeout(function(){
  26. $('#learning_path_right_zone').fadeIn(300);
  27. },300);
  28. });
  29. $('.scorm-previous').click(function() {
  30. $('#learning_path_right_zone').fadeOut(300);
  31. setTimeout(function(){
  32. $('#learning_path_right_zone').fadeIn(300);
  33. },300);
  34. });
  35. $('.scorm-next').click(function() {
  36. $('#learning_path_right_zone').fadeOut(300);
  37. setTimeout(function(){
  38. $('#learning_path_right_zone').fadeIn(300);
  39. },300);
  40. });
  41. });