winresize.js 663 B

123456789101112131415161718192021222324252627282930
  1. // window smart resize
  2. function on_resize(c,t){onresize=function(){clearTimeout(t);t=setTimeout(c,100)};return c};
  3. on_resize(function() {
  4. // fixed left/right hand side column padding bottom and width
  5. if ($('.content-fix').length) {
  6. contentFixPushCal();
  7. };
  8. // footer push
  9. footerPush();
  10. // header height
  11. headerHeightCal();
  12. // header nav positioning
  13. if ($('.header-nav-scroll').length) {
  14. headerNavPos();
  15. };
  16. // tab switch
  17. $('.tab-nav').each(function() {
  18. tabSwitch($('.nav > li.active', $(this)), null);
  19. });
  20. // tile in view
  21. if ($('.tile-wrap-animation:not(.isinview)').length) {
  22. tileInView();
  23. };
  24. })();