Changeset 265 in t29-www for shared/js-v6/modules/menu.js
- Timestamp:
- May 31, 2012, 2:39:20 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shared/js-v6/modules/menu.js
r260 r265 125 125 break; 126 126 case t29.menu.scroll.States.FIX: 127 case t29.menu.scroll.States.STICK_BOTTOM: 127 128 // zu Static uebergehen, mit Animation. 128 129 t29.menu.side.fadeOut(function(){ … … 130 131 break; 131 132 case t29.menu.scroll.States.STICK_TOP: 132 case t29.menu.scroll.States.STICK_BOTTOM:133 133 default: 134 134 // diese Faelle sollten nicht vorkommen. … … 141 141 t29.menu.scroll.max_bottom = $("footer").offset().top - t29.menu.side.height(); 142 142 t29.menu.scroll.stick_bottom = $("footer").offset().top - t29.menu.side.height() - $("#background-color-container").offset().top; 143 t29.menu.scroll.button_max_bottom = $("footer").offset().top; 143 144 //t29.menu.scroll.max_bottom - $("#background-color-container").offset().top; 144 145 145 146 $(window).scroll(function(){ 146 147 var y = $(this).scrollTop(); 148 147 149 switch(t29.menu.scroll.state) { 148 case t29.menu.scroll.States.STATIC: return; // System inaktiv.150 case t29.menu.scroll.States.STATIC: break; // System inaktiv. 149 151 case t29.menu.scroll.States.FIX: 150 152 if(y < t29.menu.scroll.origin_top) … … 171 173 } 172 174 break; 175 } 176 177 // Sichtbarkeit des Fixed-Buttons am unteren Seitenrand 178 // festlegen: 179 if(y + $(window).height() > t29.menu.scroll.button_max_bottom) { 180 $("html").addClass('button-stick-bottom'); 181 } else if($("html").hasClass('button-stick-bottom')) { 182 $("html").removeClass('button-stick-bottom'); 173 183 } 174 184 }); // end event window.scroll.
Note: See TracChangeset
for help on using the changeset viewer.