1/** 2 * Created by anshujain on 10/23/15. 3 */ 4 5+function ($) { 6 "use strict"; 7 8 // New instance 9 $(document).ready(function () { 10 $(".js-testimonials-layout-settings").each(function(){ 11 12 var testimonialsSelector = this; 13 var testimonialsLayoutType = $(testimonialsSelector).data("layout-type"); 14 // var testimonialsLayoutSettingsJson = $(testimonialsSelector).data("layout-settings"); 15 // var testimonialsControlsOnMouseOverSettingsFlag = $(testimonialsSelector).data("controls-on-mouseover-settings"); 16 // var testimonialsCallbacksJSON = { 17 // onSlideAfter: function() { 18 // if(testimonialsLayoutSettingsJson.auto){ 19 // testimonialsSlider.stopAuto(); 20 // testimonialsSlider.startAuto(); 21 // } 22 // }, 23 24 // onSliderLoad: function () { 25 // var self = this; 26 27 // //resume auto slideshow after manually selecting an item 28 // if (testimonialsLayoutSettingsJson.auto) { 29 // $(".bx-pager-link", testimonialsSelector).click(function (e) { 30 // e.preventDefault(); 31 32 // var i = $(this).data('slide-index') 33 // if (testimonialsSlider.getCurrentSlide() == i) { 34 // setTimeout(function () { 35 // testimonialsSlider.startAuto() 36 // }, 400); 37 // } 38 // }); 39 // } 40 41 // if (testimonialsControlsOnMouseOverSettingsFlag === 1) { 42 // $('.bx-controls-direction', testimonialsSelector).hide(); 43 // $('.bx-wrapper', testimonialsSelector).hover( 44 // function () { 45 // $('.bx-controls-direction', testimonialsSelector).fadeIn(300); 46 // }, 47 // function () { 48 // $('.bx-controls-direction', testimonialsSelector).fadeOut(300); 49 // } 50 // ); 51 // } 52 // } 53 // } 54 55 // if (testimonialsControlsOnMouseOverSettingsFlag == 1) { 56 // testimonialsLayoutSettingsJson.controls = true; 57 // } 58 59 // if (testimonialsLayoutType === 'slideshow') { 60 // testimonialsLayoutSettingsJson['mode'] = 'fade'; 61 62 // $.extend(testimonialsLayoutSettingsJson, testimonialsCallbacksJSON); 63 // var testimonialsSlider = $('.testimonials__list--slider'); 64 // testimonialsSlider.bxSlider(testimonialsLayoutSettingsJson, testimonialsSelector); 65 // } 66 67 if(testimonialsLayoutType === 'list'){ 68 sr.reveal('.testimonials__item'); 69 } 70 }) 71 }); 72 73}(window.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.