1function playvids( slider ) { 2 slider.removeClass( 'pootle-slider-transparent' ); 3 slider.find( 'video' ).each( function () { 4 $( this )[0].play(); 5 } ); 6} 7( function ( $ ) { 8 pootleSliderInit = function( s, props, ratio ) { 9 var $t = $( s ),width; 10 setTimeout( function() { 11 12 width = Math.min( $t.innerWidth(), window.innerWidth ); 13 $t.removeClass( 'pootle-slider-transparent' ); 14 15 $t.find( '.ppb-row' ).each( function () { 16 17 var 18 $row = $( this ), 19 hi = 5; 20 21 $row.find( '.ppb-block' ).each( function () { 22 if( hi < $( this ).outerHeight() ) { 23 hi = $( this ).outerHeight(); 24 } 25 } ); 26 27 hi += 50; 28 var cellRatio = hi * 100/width; 29 30 if ( cellRatio > ratio ) { 31 ratio = cellRatio; 32 } 33 34 } ); 35 36 $t.find( '.ppb-row' ).css( 'padding-top', ratio + '%' ); 37 $t.flexslider( props ); 38 }, 350 ); 39 } 40} )( jQuery ); 41 42jQuery( function ( $ ) { 43 44 var $bd = $( 'body' ); 45 if ( $bd.hasClass( 'single-pootle-slider' ) ) { 46 var $ppb = $( '#pootle-page-builder' ), 47 $ppb_sli = $( '.pootle-slider-wrap' ); 48 49 $( 'body *' ) 50 .not( '#ps-bar, #ps-bar *') 51 .not( '#pootlepb-modules-wrap, #pootlepb-modules-wrap *' ) 52 .not( '#wpadminbar, #wpadminbar *' ) 53 .not( '.ppb-widget, .ppb-widget *' ) 54 .not( '.pootlepb-dialog, .pootlepb-dialog *' ) 55 .not( '.pootle-slider-wrap, .pootle-slider-wrap *' ) 56 .not( '#pootle-page-builder, #pootle-page-builder *' ) 57 .not( $ppb_sli.parents() ) 58 .not( $ppb.parents().css( { 59 margin: 'auto', 60 padding: 'auto', 61 width: 'auto', 62 float: 'none' 63 } ) ) 64 .hide(); 65 $bd.show(); 66 67 $( '#ps-slide-height' ).on('change input', function(){ 68 var val = this.value; 69 $( '#ps-height-css' ).html( 70 '#pootle-page-builder .panel-grid .panel-row-style {min-height:' + ( val * 10 ) + 'vw !important;}' 71 ); 72 $( this ).siblings('.value').html( val ); 73 ppbAjax.pootle_slider_height = val; 74 } ); 75 76 $ppb_sli.before( 77 $( '<div/>' ) 78 .attr( 'id', 'ps-bar' ) 79 .html( 80 '<small>Previewing slider</small>' + 81 '<h2 style="margin:0">' + pootle_slider.title + '</h2>' + 82 "<h3 style='font-weight: 400;margin:0'>Now you can use this slider in your pages or your posts</h3>" 83 ) 84 .css( { 85 'text-align': 'center', 86 'background-color': '#eee', 87 margin: '0 -999px', 88 padding: '25px 999px 16px' 89 } ) 90 ); 91 } 92} );
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.