1( function($) { 2 3 'use strict'; 4 5 /* Slider */ 6 psac_init_post_slider(); 7 8 /* Carousel Slider */ 9 psac_init_post_carousel(); 10 11 /* vticker */ 12 psac_init_post_vticker(); 13 14})( jQuery ); 15 16/* Initialize slider */ 17function psac_init_post_slider() { 18 jQuery( '.psac-post-slider' ).each(function( index ) { 19 20 var slider_id = jQuery(this).attr('id'); 21 var conf = JSON.parse( jQuery(this).attr('data-conf') ); 22 23 if( typeof(slider_id) != 'undefined' && slider_id != '' ) { 24 25 jQuery('#'+slider_id).owlCarousel({ 26 loop : conf.loop, 27 items : 1, 28 navElement : 'span', 29 nav : conf.arrows, 30 dots : conf.dots, 31 autoplay : conf.autoplay, 32 autoplayTimeout : parseInt( conf.autoplay_interval ), 33 autoplaySpeed : (conf.speed == 'false') ? false : parseInt( conf.speed ), 34 autoplayHoverPause : ( conf.autoplay == false ) ? false : true, 35 rtl : ( Psac.is_rtl == 1 ) ? true : false, 36 }); 37 } 38 }); 39} 40 41/* Initialize carousel */ 42function psac_init_post_carousel() { 43 44 jQuery( '.psac-post-carousel' ).each(function( index ) { 45 46 var slider_id = jQuery(this).attr('id'); 47 var conf = JSON.parse( jQuery(this).attr('data-conf') ); 48 49 if( typeof(slider_id) != 'undefined' && slider_id != '' ) { 50 51 jQuery('#'+slider_id).owlCarousel({ 52 loop : conf.loop, 53 items : parseInt( conf.slide_show ), 54 slideBy : parseInt( conf.slide_scroll ), 55 nav : conf.arrows, 56 dots : conf.dots, 57 autoplay : conf.autoplay, 58 autoplayTimeout : parseInt( conf.autoplay_interval ), 59 autoplaySpeed : (conf.speed == 'false') ? false : parseInt( conf.speed ), 60 margin : 20, 61 navElement : 'span', 62 autoplayHoverPause : ( conf.autoplay == false ) ? false : true, 63 rtl : ( Psac.is_rtl == 1 ) ? true : false, 64 responsive:{ 65 0:{ 66 items : 1, 67 slideBy : 1, 68 }, 69 568:{ 70 slideBy : ( conf.slide_scroll >= 2 ) ? 2 : conf.slide_scroll, 71 items : ( conf.slide_show >= 2 ) ? 2 : conf.slide_show, 72 }, 73 768:{ 74 slideBy : ( conf.slide_scroll >= 2 ) ? 2 : conf.slide_scroll, 75 items : ( conf.slide_show >= 2 ) ? 2 : conf.slide_show, 76 }, 77 1024:{ 78 slideBy : ( conf.slide_scroll >= 3 ) ? 3 : conf.slide_scroll, 79 items : ( conf.slide_show >= 3 ) ? 3 : conf.slide_show, 80 }, 81 1100:{ 82 items : parseInt( conf.slide_show ), 83 slideBy : parseInt( conf.slide_scroll ), 84 } 85 } 86 }); 87 } 88 }); 89} 90 91/* Initialize Vertical Post Ticker */ 92function psac_init_post_vticker() { 93 94 jQuery( '.psac-vticker-scrolling-wdgt' ).each(function( index ) { 95 96 var slider_id = jQuery(this).attr('id'); 97 var conf = JSON.parse( jQuery(this).attr('data-conf') ); 98 99 if( typeof(slider_id) != 'undefined' && slider_id != '' ) { 100 101 jQuery('#'+slider_id).vTicker({ 102 speed : parseInt(conf.speed), 103 pause : parseInt(conf.pause), 104 height : ( conf.height > 0 ) ? parseInt(conf.height) : '', 105 mousePause : true, 106 }); 107 } 108 }); 109}
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.