Zachary Kotlarek 11 лет назад
Родитель
Сommit
e898744997
2 измененных файлов с 0 добавлено и 79 удалено
  1. 0 20
      web/autodividers-linkbar.css
  2. 0 59
      web/autodividers-linkbar.js

+ 0 - 20
web/autodividers-linkbar.css

@@ -1,20 +0,0 @@
-#sorter .ui-li.ui-li-static.ui-btn-up-c {
-	height: 3.60%;
-	padding: 0;
-	font-size: 8px;
-	padding-left: 5px;
-	line-height: 1.8em;
-}
-#sorter{
-	position: fixed;
-	top: 60px;
-	right: 0;
-	width: 20px;
-	z-index: 1;
-}
-#sorter ul{
-	height: 100%;
-}
-#sortedList{
-	padding-right: 35px;
-}

+ 0 - 59
web/autodividers-linkbar.js

@@ -1,59 +0,0 @@
-$.mobile.document.on( "pageshow", "#linkbar-page", function() {
-	var head = $( ".ui-page-active [data-role='header']" ),
-		foot = $( ".ui-page-active [data-role='footer']" ),
-		filter = $( ".ui-page-active [role='search']" ),
-		headerheight = head.outerHeight() + filter.outerHeight();
-		
-	$.mobile.window.on( "throttledresize", function() {
-		$( "#sorter" ).height( $.mobile.window.height() - headerheight - 20 ).css( "top", headerheight + 18 );
-	});
-	
-	$( "#sorter" ).height( $.mobile.window.height() - headerheight - 20 ).css( "top", headerheight + 18 );
-	
-	$.mobile.window.scroll( function( e ) {
-		var headTop = $(window).scrollTop();
-		
-		if( headTop < headerheight && headTop > 0 ) {
-			$( "#sorter" ).css({
-				"top": headerheight + 15 - headTop,
-				"height": $.mobile.window.height() - headerheight - 20
-			});
-		} else if ( headTop >= headerheight && headTop > 0 && parseInt( headTop + $.mobile.window.height( )) < parseInt( foot.offset().top ) ) {
-			$( "#sorter" ).css({
-				"top": "15px",
-				"height": $.mobile.window.height()
-			});
-			$("#sorter li").height( "3.60%" );
-		} else if ( parseInt( headTop + $.mobile.window.height() ) >= parseInt( foot.offset().top ) && parseInt( headTop + $.mobile.window.height() ) <= parseInt( foot.offset().top ) + foot.height() ) {
-			$( "#sorter" ).css({
-				"top": "15px",
-				"height": $.mobile.window.height() - ( parseInt( headTop + $.mobile.window.height() ) - parseInt( foot.offset().top ) + 8 )
-			});
-		} else if( parseInt( headTop + $.mobile.window.height() ) >= parseInt( foot.offset().top ) ) {
-			$( "#sorter" ).css({
-				"top": "15px"
-			});
-		} else {
-			$( "#sorter" ).css( "top", headerheight + 15 );
-		}
-	});
-
-	$( "#sorter li" ).click( function() {
-		var top,
-			letter = $( this ).text(),
-			divider = $( "#sortedList" ).find( "li.ui-li-divider:contains(" + letter + ")" );
-			
-		if ( divider.length > 0 ) {
-			top = divider.offset().top;
-			$.mobile.silentScroll( top );
-		} else {
-			return false;
-		}
-	});
-	
-	$( "#sorter li" ).hover(function() {
-		$( this ).addClass( "ui-btn-up-b" ).removeClass( "ui-btn-up-c" );
-	}, function() {
-		$( this ).removeClass( "ui-btn-up-b" ).addClass( "ui-btn-up-c" );
-	});
-});