1; /* /bitrix/js/phpsolutions.backtotop/backtotop.js*/ 2 3; /* Start:/bitrix/js/phpsolutions.backtotop/backtotop.js*/ 4$(document).ready(function(){ 5 $( "body" ).append( "<a class='BackToTop' href='#'><img src='" + phpsolutions_backtotop_selected_image + "'></a>" ) ; 6 $('.BackToTop').fadeTo( 0, phpsolutions_backtotop_button_opacity / 100 ) ; 7 if ($(this).scrollTop() > phpsolutions_backtotop_skip ) { 8 $('.BackToTop').fadeIn(); 9 } 10 else { 11 $('.BackToTop').fadeOut(); 12 $('.BackToTop').css( "display", 'none' ) ; 13 } 14 15 if( phpsolutions_backtotop_position == 'top-left' ){ 16 $('.BackToTop').css( "top", phpsolutions_backtotop_position_indent_y + 'px' ) ; 17 $('.BackToTop').css( "left", phpsolutions_backtotop_position_indent_x + 'px' ) ; 18 } 19 else if( phpsolutions_backtotop_position == 'top-center' ){ 20 $('.BackToTop').css( "top", phpsolutions_backtotop_position_indent_y + 'px' ) ; 21 $('.BackToTop').css( "left", ( $( window ).width() / 2 ) - ( phpsolutions_backtotop_image_width / 2 ) + 'px' ) ; 22 } 23 else if(phpsolutions_backtotop_position=='top-right'){ 24 $('.BackToTop').css( "top", phpsolutions_backtotop_position_indent_y + 'px' ) ; 25 $('.BackToTop').css( "right", phpsolutions_backtotop_position_indent_x + 'px' ) ; 26 } 27 else if( phpsolutions_backtotop_position == 'middle-left' ){ 28 $('.BackToTop').css( "top", ( $( window ).height() / 2 ) - ( phpsolutions_backtotop_image_height / 2 ) + 'px' ) ; 29 $('.BackToTop').css( "left", phpsolutions_backtotop_position_indent_x + 'px' ) ; 30 } 31 else if( phpsolutions_backtotop_position == 'middle-center' ){ 32 $('.BackToTop').css( "top", ( $( window ).height() / 2 ) - ( phpsolutions_backtotop_image_height / 2 ) + 'px' ) ; 33 $('.BackToTop').css( "left", ( $( window ).width() / 2 ) - ( phpsolutions_backtotop_image_width / 2 ) + 'px' ) ; 34 } 35 else if(phpsolutions_backtotop_position=='middle-right'){ 36 $('.BackToTop').css( "top", ( $( window ).height() / 2 ) - ( phpsolutions_backtotop_image_height / 2 ) + 'px' ) ; 37 $('.BackToTop').css( "right", phpsolutions_backtotop_position_indent_x + 'px' ) ; 38 } 39 else if( phpsolutions_backtotop_position == 'bottom-left' ){ 40 $('.BackToTop').css( "bottom", phpsolutions_backtotop_position_indent_y + 'px' ) ; 41 $('.BackToTop').css( "left", phpsolutions_backtotop_position_indent_x + 'px' ) ; 42 } 43 else if( phpsolutions_backtotop_position == 'bottom-center' ){ 44 $('.BackToTop').css( "bottom", phpsolutions_backtotop_position_indent_y + 'px' ) ; 45 $('.BackToTop').css( "left", ( $( window ).width() / 2 ) - ( phpsolutions_backtotop_image_width / 2 ) + 'px' ) ; 46 } 47 else if(phpsolutions_backtotop_position=='bottom-right'){ 48 $('.BackToTop').css( "bottom", phpsolutions_backtotop_position_indent_y + 'px' ) ; 49 $('.BackToTop').css( "right", phpsolutions_backtotop_position_indent_x + 'px' ) ; 50 } 51 52 $(window).scroll(function(){ 53 if ($(this).scrollTop() > phpsolutions_backtotop_skip ) { 54 $('.BackToTop').fadeIn() ; 55 } 56 else { 57 $('.BackToTop').fadeOut() ; 58 } 59 }); 60 $('.BackToTop').click(function(){ 61 $("html, body").animate({ scrollTop: 0 }, phpsolutions_backtotop_scroll_speed ) ; 62 return false ; 63 }); 64}); 65/* End */ 66;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.