app/assets/javascripts/material/winresize.js in material-sass-0.0.1 vs app/assets/javascripts/material/winresize.js in material-sass-0.0.2
- old
+ new
@@ -1,13 +1,28 @@
-// window resize
+// window smart resize
+ function on_resize(c,t){onresize=function(){clearTimeout(t);t=setTimeout(c,100)};return c};
+
on_resize(function() {
// fixed left/right hand side column padding bottom and width
- if ($('.content-fix').length) {
- contentFixPushCal();
- };
+ contentFixPushCal();
// footer push
footerPush();
// header height
headerHeightCal();
+
+ // header nav positioning
+ if ($('.header-nav-scroll').length) {
+ headerNavPos();
+ };
+
+ // tab switch
+ $('.tab-nav').each(function() {
+ tabSwitch($('.nav > li.active', $(this)), null);
+ });
+
+ // tile in view
+ if ($('.tile-wrap-animation:not(.isinview)').length) {
+ tileInView();
+ };
})();
\ No newline at end of file