From 295bc3266a1777f77ce0a5d08dc829b456039fbc Mon Sep 17 00:00:00 2001 From: Alberto Torreblanca Date: Sat, 30 Apr 2011 19:50:57 -0500 Subject: [PATCH] Feature #3116 - Minipanel 100%. --- main/img/minipanelback.png | Bin 0 -> 232 bytes .../inc/lib/javascript/jquery.lp_minipanel.js | 39 +++++++++++++++++- main/newscorm/lp_view.php | 2 +- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 main/img/minipanelback.png diff --git a/main/img/minipanelback.png b/main/img/minipanelback.png new file mode 100644 index 0000000000000000000000000000000000000000..c500532794e20f4ca8e65859b7b81b979912ab95 GIT binary patch literal 232 zcmeAS@N?(olHy`uVBq!ia0vp^EkJCli2!IpU~f88AxB^W0#t}tRQD+%AZWsOF>x6}FBy%WD>)~-$!^1gQTe6oJ_ z>%_FWe~N7!pMAEkjg)Um@n}m?kes9_2{aQ6h^(0+9lhP!^88egq^GN&%Q~loCIHb3 BM9u&J literal 0 HcmV?d00001 diff --git a/main/inc/lib/javascript/jquery.lp_minipanel.js b/main/inc/lib/javascript/jquery.lp_minipanel.js index 138effc9c3..8d223ea29a 100644 --- a/main/inc/lib/javascript/jquery.lp_minipanel.js +++ b/main/inc/lib/javascript/jquery.lp_minipanel.js @@ -36,14 +36,51 @@ $('#hide_bar table').toggle(function(){ var panel = $('#lp_navigation_elem div:first').clone(); + + function minipb(){ + $('#learning_path_main #control tr').after(''); + $('#learning_path_main #control tr:eq(1)').append($('#progress_bar').html()); + $('#learning_path_main #control tr:eq(1) #progress_img_limit_left').attr('height','5'); + $('#learning_path_main #control tr:eq(1) #progress_img_full').attr('height','5'); + $('#learning_path_main #control tr:eq(1) #progress_img_limit_middle').attr('height','5'); + $('#learning_path_main #control tr:eq(1) #progress_img_empty').attr('height','5'); + $('#learning_path_main #control tr:eq(1) #progress_bar_img_limit_right').attr('height','5'); + $('#learning_path_main #control tr:eq(1) #progress_text').remove(); + $('#learning_path_main #control tr:eq(1) div').css('width',''); + } + $(panel).attr('id','control'); + $('#learning_path_main').append(panel); + minipb(); + + $('#learning_path_main #control .buttons').attr('align','center'); $('#learning_path_left_zone').hide(50); $('#learning_path_right_zone').css('marginLeft','10px'); $('#hide_bar table').css('backgroundImage','url(../img/hide2.png)').css('backgroundColor','#EEEEEE'); - $('#learning_path_main #control').css({width: "120px", height: "32px", opacity: "0.4", position: "absolute", top: "0px", left:"15px"}); + + $('#learning_path_main #control').css( + { margin: "auto", + width: "132px", + height: "34px", + position: "absolute", + top: "5px", + left:"15px", + backgroundColor: "white", + backgroundImage: "url(../img/minipanelback.png)", + paddingTop: "8px", + paddingBottom: "8px", + borderRadius: "4px 4px 4px 4px", + opacity: "0.8" + } + ); + $('#learning_path_main #control table').attr('align','center'); $('#learning_path_main #control').draggable({ iframeFix: true, stack: "#learning_path_right_zone" }); + $('#learning_path_main #control .buttons img').click(function(){ + $('#learning_path_main #control tr:eq(1)').remove(); + minipb(); + }); },function(){ $('#hide_bar table').css('backgroundImage','url(../img/hide0.png)').css('backgroundColor','#EEEEEE'); $('#learning_path_right_zone').css('marginLeft','290px'); diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index b05e9f2975..60f52b8697 100755 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -353,7 +353,7 @@ if ($_SESSION['oLP']->mode == 'embedframe') {
-
+