1/** 2 * Created by HoangLuong on 5/20/2016. 3 */ 4$(document).ready(function () { 5 $('.slider').slick({ 6 arrows: false, 7 autoplay: true, 8 autoplaySpeed: 3000 9 }); 10 $('.slider').on('afterChange',function(event, slick, direction){ 11 var slider = $( '.slick-slide-2' ); 12 13 slider[0].slick.slickGoTo(slick.currentSlide); 14 }); 15 $('.slick-slide-2').slick({ 16 arrows: false, 17 centerMode: true, 18 centerPadding: '10px', 19 cssLeft: 0, 20 slidesToShow: 5, 21 infinite: true, 22 variableWidth: true 23 }); 24 25 /// Thư viá»n ảnh 26 var onMouseOutOpacity = 0.67; 27 $('#thumbs ul.thumbs li').opacityrollover({ 28 mouseOutOpacity: onMouseOutOpacity, 29 mouseOverOpacity: 1.0, 30 fadeSpeed: 'fast', 31 exemptionSelector: '.selected' 32 }); 33 34 35 jQuery('.menu-open').click(function () { 36 // jQuery('.menu').addClass('active'); 37 jQuery('.menu-mobile').slideDown(); 38 jQuery(this).hide(); 39 jQuery('.menu-close').show(); 40 }); 41 jQuery('.menu-close').click(function () { 42 // jQuery('.menu').removeClass('active'); 43 jQuery('.menu-mobile').slideUp(); 44 jQuery(this).hide(); 45 jQuery('.menu-open').show(); 46 }); 47 48 if ($('.organization-chart-container').length != 0) { 49 $('.organization-chart-container').orgchart({ 50 'data': $('.organization-chart-container+ul:first'), 51 'pan': true, 52 'zoom': true 53 }); 54 } 55 56 57 // Initialize Advanced Galleriffic Gallery 58 if ($('#thumbs').length != 0) { 59 var gallery = $('#thumbs').galleriffic({ 60 delay: 0, 61 numThumbs: 15, 62 preloadAhead: 0, 63 enableTopPager: false, 64 enableBottomPager: false, 65 maxPagesToShow: 7, 66 imageContainerSel: '#slideshow', 67
68 navControlsContainerSel: '#nav', 69 captionContainerSel: '#caption', 70 loadingContainerSel: '#loading', 71 72 prevLinkText: '', 73 nextLinkText: '', 74 75 enableHistory: false, 76 autoStart: false, 77 syncTransitions: false, 78 defaultTransitionDuration: 900, 79 onSlideChange: function (prevIndex, nextIndex) { 80 // 'this' refers to the gallery, which is an extension of $('#thumbs') 81 this.find('ul.thumbs').children() 82 .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end() 83 .eq(nextIndex).fadeTo('fast', 1.0); 84 }, 85 onPageTransitionOut: function (callback) { 86 this.fadeTo('fast', 0.0, callback); 87 }, 88 onPageTransitionIn: function () { 89 this.fadeTo('fast', 1.0); 90 } 91 }); 92 } 93}); 94
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.