Guest User

Untitled

a guest
May 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $('#pane').tabs({tab: 'a', content: '.section'});
  2.  
  3. // add some events after creating an instance
  4. $('#pane').tabs('addEvent', 'show', function(){
  5. $(document.body).toggleClass('toggle');
  6. });
  7.  
  8. $('#pane1').ajaxTabs({
  9. tab: 'a',
  10. content: '.section',
  11. loadingHTML: '<p class=loading>Loading<br><br><img src=loading.gif></p>',
  12. // or add some events in your options when you first create the instance
  13. onShow: function(){
  14. this.container.css('opacity',0.5);
  15. },
  16. onAjaxComplete: function(){
  17. this.container.css('opacity','');
  18. }
  19. });
Add Comment
Please, Sign In to add comment