1// source --> https://www.wreathstation.com/wp-content/plugins/wp-facebook-reviews/public/js/wprev-public.js?ver=13.2 2(function( $ ) { 3 'use strict'; 4 5 /** 6 * All of the code for your public-facing JavaScript source 7 * should reside in this file. 8 * 9 * Note: It has been assumed you will write jQuery code here, so the 10 * $ function reference has been prepared for usage within the scope 11 * of this function. 12 * 13 * This enables you to define handlers, for when the DOM is ready: 14 * 15 * $(function() { 16 * 17 * }); 18 * 19 * When the window is loaded: 20 * 21 * $( window ).load(function() { 22 * 23 * }); 24 * 25 * ...and/or other possibilities. 26 * 27 * Ideally, it is not considered best practise to attach more than a 28 * single DOM-ready or window-load handler for a particular page. 29 * Although scripts in the WordPress core, Plugins and Themes may be 30 * practising this, we should strive to set a better example in our own work. 31 */ 32 //document ready 33 $(function(){ 34 35 $( ".wprs_rd_more" ).click(function() { 36 $(this ).hide(); 37 $(this ).next("span").show(0, function() { 38 // Animation complete. 39 $(this ).css('opacity', '1.0'); 40 }); 41 //$(this ).next("span").css('opacity', '1.0'); 42 43 //change height of wprev-slider-widget 44 $(this ).closest( ".wprev-slider-widget" ).css( "height", "auto" ); 45 46 //change height of wprev-slider 47 $(this ).closest( ".wprev-slider" ).css( "height", "auto" ); 48 49 }); 50 51 52 //check to see if we need to create slider; 53 $( ".wprev-slider" ).each(function( index ) { 54 createaslider(this,'shortcode'); 55 }); 56 $( ".wprev-slider-widget" ).each(function( index ) { 57 createaslider(this,'widget'); 58 }); 59 function createaslider(thissliderdiv,type){ 60 61 var showarrows = true; 62 if(type=='widget'){ 63 showarrows = false; 64 } 65 //unhide other rows. 66 $( thissliderdiv ).find('li').show(); 67 $( thissliderdiv ).wprs_unslider( 68 { 69 autoplay:false, 70 infinite:false, 71 delay: '3000', 72 speed: '750', 73 animation: 'horizontal', 74 arrows: showarrows, 75 animateHeight: true, 76 activeClass: 'wprs_unslider-active', 77 } 78 ); 79 80 setTimeout(function(){ 81 //height of active slide 82 var firstheight = $(thissliderdiv).find('.wprs_unslider-active').height(); 83 $(thissliderdiv).css( 'height', firstheight ); 84 $(thissliderdiv).find("li.wprevnextslide").removeClass('wprevnextslide'); 85 }, 500); 86 87 }; 88 89 //simple tooltip for added elements and mobile devices 90 $(".wprevpro_t1_outer_div").on('mouseenter touchstart', '.wprevtooltip', function(e) { 91 var titleText = $(this).attr('data-wprevtooltip'); 92 $(this).data('tiptext', titleText).removeAttr('data-wprevtooltip'); 93 $('<p class="wprevpro_tooltip"></p>').text(titleText).appendTo('body').css('top', (e.pageY - 15) + 'px').css('left', (e.pageX + 10) + 'px').fadeIn('slow'); 94 }); 95 $(".wprevpro_t1_outer_div").on('mouseleave touchend', '.wprevtooltip', function(e) { 96 $(this).attr('data-wprevtooltip', $(this).data('tiptext')); 97 $('.wprevpro_tooltip').remove(); 98 }); 99 $(".wprevpro_t1_outer_div").on('mousemove', '.wprevtooltip', function(e) { 100 $('.wprevpro_tooltip').css('top', (e.pageY - 15) + 'px').css('left', (e.pageX + 10) + 'px'); 101 }); 102 103 }); 104 105})( jQuery );
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.