Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
398 B

  1. import $ from 'jquery';
  2. $('body').on('touchstart click', '[data-tabid]', (event) => {
  3. event && event.stopPropagation();
  4. let target = $(event.currentTarget);
  5. const panel = $(`[id="${target.data('tabid')}"]`);
  6. target.siblings('[data-tabid]').removeClass('active');
  7. target.addClass('active');
  8. panel.siblings('[id]').removeClass('active');
  9. panel.addClass('active');
  10. });