This commit is contained in:
connors 2014-01-11 17:18:25 -08:00
Родитель 4a1016fd66
Коммит 2df1ff287a
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -38,7 +38,6 @@ $(function() {
iphone.dockingOffset = ($(window).height() + $('.platform-toggle').height() - iphone.height())/2;
checkDesktopContent();
calculateScroll();
console.log(iphone.dockingOffset);
if (!eventListeners) addEventListeners();
}
@ -97,14 +96,14 @@ $(function() {
iphone[0].setAttribute('style','')
}
if(pageHeight - currentTop <= $('.platform-toggle') {
if(currentTop >= $('.docs-masthead').outerHeight()) {
$('.platform-toggle').addClass('fixed');
console.log('fixed');
} else {
$('.platform-toggle').removeClass('fixed');
console.log('not fixed');
}
// Injection of components into phone
for (var l = contentSection.length; l--;) {
if ((topCache[l] - currentTop) < windowHeight) {