Difference between revisions of "Widget:RAPID-LicenseFilter"

From Open Energy Information

(change some on click behaviors)
Line 56: Line 56:
 
#chartCarousel .item.active {
 
#chartCarousel .item.active {
 
   display: block !important;
 
   display: block !important;
 +
}
 +
#chartCarousel .hideSlide {
 +
  display: none !important;
 +
  visibility: hidden !important;
 
}
 
}
 
</style>
 
</style>
Line 74: Line 78:
 
       setToggle = $(this).data('license');
 
       setToggle = $(this).data('license');
 
       $('#'+setToggle).addClass('active');
 
       $('#'+setToggle).addClass('active');
 +
      if($('.flowchart-close').is(':visible')){
 +
        $('.flowchart-close').trigger('click');
 +
      }
 +
      $('.flowchart-action, .carousel-inner').addClass('hideSlide');
 
       $('.carousel-indicators .chart-thumb:first-of-type').trigger('click');
 
       $('.carousel-indicators .chart-thumb:first-of-type').trigger('click');
 
       $('#chartCarousel .chart-thumb').each(function(){
 
       $('#chartCarousel .chart-thumb').each(function(){
Line 89: Line 97:
 
         $(this).insertAfter($('#chartCarousel .carousel-indicators .chart-thumb:last-of-type'));
 
         $(this).insertAfter($('#chartCarousel .carousel-indicators .chart-thumb:last-of-type'));
 
       });
 
       });
       //$('.chart-thumb').removeClass('active');
+
       $('.flowchart-action, .carousel-inner').removeClass('hideSlide');
      //$('.carousel-indicators .chart-thumb:first-of-type').addClass('active');
 
      $('.flowchart-close').trigger('click');
 
 
       $('#chartCarousel .item').each(function(){
 
       $('#chartCarousel .item').each(function(){
 
         if($(this).data('license') == "ILP"){
 
         if($(this).data('license') == "ILP"){

Revision as of 15:38, 30 September 2019

This widget helps allows users to toggle RAPID/Roadmap/7-FD-m licensing project types.