Difference between revisions of "Widget:RAPID-LicenseFilter"

From Open Energy Information

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 81: Line 77:
 
         $('.flowchart-close').trigger('click');
 
         $('.flowchart-close').trigger('click');
 
       }
 
       }
       $('.flowchart-action, .carousel-inner').addClass('hideSlide');
+
       $('.chart-thumb').each(function(){
console.log('should hide');
+
        $(this).removeClass('open');
console.log($('.carousel-inner'));
+
      });
       $('.carousel-indicators .chart-thumb:first-of-type').trigger('click');
+
       $('.carousel-inner .item:first-of-type').addClass('active');
 
       $('#chartCarousel .chart-thumb').each(function(){
 
       $('#chartCarousel .chart-thumb').each(function(){
 
         if($(this).data('license') == "ILP"){
 
         if($(this).data('license') == "ILP"){
Line 113: Line 109:
 
         $(this).insertAfter($('#chartCarousel .carousel-inner .item:last-of-type'));
 
         $(this).insertAfter($('#chartCarousel .carousel-inner .item:last-of-type'));
 
       });
 
       });
      $('.flowchart-action, .carousel-inner').attr('style','display: none;');
 
      $('.flowchart-action, .carousel-inner').removeClass('hideSlide');
 
console.log('unhide2');
 
 
     });
 
     });
 
     $('.chart-thumb').click(function(){
 
     $('.chart-thumb').click(function(){

Revision as of 16:48, 30 September 2019

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