pixedelic

shortcodelic-2.2.0/scripts/tables.js

Aug 4th, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(function() {
  2.     jQuery( ".pix_tables" ).each(function(){
  3.         var t = jQuery(this),
  4.             minwidth = parseFloat(t.data('opts').minwidth);
  5.         jQuery(window).bind('resize', function(){
  6.             var w = t.parent().width();
  7.             if (w <= minwidth) {
  8.                 t.addClass('minwidth-reached');
  9.             } else {
  10.                 t.removeClass('minwidth-reached');
  11.             }
  12.         });
  13.     });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment