1jQuery(document).ready(function($) { 2 3 //This is useful to display the recent posts area only if javascript is turned on 4 $('#recent-posts-revolution-container').css('display','block'); 5 6 //minimize and maximize the post slider 7 $('#dc-rpr-icon-max-min').click(function(){ 8 //$('#dc-rpr-comments-sidebar').slideUp(); 9 $('#dc-rpr-items-bar').slideToggle('slow', function() { 10 //toggle maximize icon on slideToggle CallBack 11 $('#dc-rpr-icon-max-min').toggleClass('dc-rpr-icon-maximized'); 12 13 //find the current gallery status 14 if( $('#dc-rpr-items-bar').css('display') == "none" ){ 15 var dc_rpr_gallery_status = "closed"; 16 }else{ 17 var dc_rpr_gallery_status = "open"; 18 } 19 20 //set the cookie rprgallerystatus to save the last gallery status 21 var dc_rpr_ajax_url = dc_rpr_plugin_url + "ajax/set_gallery_status_cookie.php"; 22 $.post( dc_rpr_ajax_url , { gallery_status: dc_rpr_gallery_status } ,function( ajax_response ){ 23 if( ajax_response == "success" ){ 24 //nothing 25 } 26 }); 27 28 }); 29 }); 30 31 //set the post slider default status 32 if( $("#dc-rpr-gallery-minimized").val() == "1" ){ 33 $('#dc-rpr-items-bar').slideToggle(0, function() { 34 //toggle maximize/minimize icon on slideToggle CallBack 35 $('#dc-rpr-icon-max-min').toggleClass('dc-rpr-icon-maximized'); 36 }); 37 }; 38 39 $(window).resize(function() { 40 41 //autohide the gallery under a certain limit 42 if( $(window).width() < dc_rpr_autohide_limit ){ 43 $('#recent-posts-revolution-container').hide(); 44 }else{ 45 $('#recent-posts-revolution-container').show(); 46 } 47 48 }); 49 50 //hover on the item applies an effect on item 51 if ( parseInt( dc_rpr_item_hover_animation , 10 ) == 1 ){ 52 53 $(".dc-rpr-single-item").mouseenter( function(){ 54 //if the gallery is not animated 55 if( !$("#dc-rpr-gallery").is(":animated") ){ 56 $(this).fadeTo( 200, 0.75, function(){ 57 $(this).fadeTo( 200, 1.0 ); 58 }); 59 } 60 }); 61 62 } 63 64 //click on the single item 65 $(".dc-rpr-single-item").click( function(){ 66 67 var destination_url = $(this).attr("data-destination-url"); 68 window.location.href = destination_url; 69 70 }) 71 72 73 74});
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.