1$(document).ready(function() { 2 var base_url = window.location.origin + '/lizen/'; 3 $('.slider-banner').slick({ 4 autoplay: false, 5 arrow: false, 6 slidesToShow: 1, 7 slidesToScroll: 1, 8 speed: 1000, 9 infinite: true, 10 // fade: true, 11 dots: true 12 }); 13 $('.store-slider').slick({ 14 autoplay: true, 15 arrow: false, 16 slidesToShow: 1, 17 slidesToScroll: 1, 18 infinite: true, 19 fade: true, 20 }); 21 $('.language span').click(function () { 22 $(this).next('ul').toggleClass('active') 23 }) 24 $('.language li').click(function () { 25 var lang = $(this).attr('data-lang'); 26 $(this).closest('.language').find('span').text(lang); 27 $(this).closest('ul').removeClass('active') 28 }) 29 $('.logo-slider').slick({ 30 autoplay: true, 31 arrow: false, 32 slidesToShow: 5, 33 slidesToScroll: 1, 34 speed: 500, 35 infinite: true, 36 responsive: [ 37 { 38 breakpoint: 1024, 39 settings: { 40 slidesToShow: 2, 41 slidesToScroll: 1, 42 } 43 }, 44 { 45 breakpoint: 600, 46 settings: { 47 vertical: false, 48 slidesToShow: 2, 49 slidesToScroll: 1 50 } 51 }, 52 { 53 breakpoint: 480, 54 settings: { 55 vertical: false, 56 slidesToShow: 2, 57 slidesToScroll: 1 58 } 59 } 60 ], 61 }); 62 $('.pj-slider').slick({ 63 autoplay: true, 64 arrow: false, 65 slidesToShow: 4, 66 slidesToScroll: 1, 67 infinite: true, 68 responsive: [ 69 { 70 breakpoint: 1024, 71 settings: { 72 slidesToShow: 3, 73 slidesToScroll: 3, 74 } 75 }, 76 { 77 breakpoint: 600, 78 settings: { 79 vertical: false, 80 slidesToShow: 2, 81 slidesToScroll: 2 82 } 83 }, 84 { 85 breakpoint: 480, 86 settings: { 87 vertical: false, 88 slidesToShow: 2, 89 slidesToScroll: 1 90 } 91 } 92 ], 93 prevArrow: '<span class="slick-prev"><img src='+ base_url +'images/icon-prev.svg alt=""></span>', 94 nextArrow: '<span class="slick-next"><img src='+ base_url +'images/icon-next.svg alt=""></span>', 95 }); 96 $("#menu").mmenu({ 97 "extensions": [ 98 "fx-menu-zoom" 99 ], 100 "counters": true 101 }); 102 $('.btn-search, .btn-s-mb').click(function () { 103 $('.search-hd').slideToggle(200) 104 }) 105 if( $( window ).width() > 768 ) 106 {$(window).scroll(function(){ 107 if ($(window).scrollTop() >= 1) { 108 $('header').addClass('fixed-header'); 109 } 110 else { 111 $('header').removeClass('fixed-header'); 112 } 113 }); 114 } 115 if ($('.about-main .about-nav').length) { 116 var fixmeTop = $('.about-main .about-nav').offset().top; 117 $(window).scroll(function() { 118 119 var currentScroll = $(window).scrollTop(); 120 121 if (currentScroll >= fixmeTop) { 122 $('.about-main .about-nav').addClass('fixed'); 123 $('.about-main .about-nav').css({ 124 background: '#fff', 125 position: 'fixed', 126 top: '57px', 127 left: '0', 128 right: '0', 129 zIndex: '990' 130 }); 131 } else { 132 $('.about-main .about-nav').removeClass('fixed'); 133 $('.about-main .about-nav').css({ 134 position: 'relative', 135 top: '0' 136 }); 137 } 138 139 }); 140 } 141 if ($('.scroll-page .about-nav').length) { 142 var fixmeTop = $('.scroll-page .about-nav').offset().top; 143 $(window).scroll(function() { 144 145 var currentScroll = $(window).scrollTop(); 146 147 if (currentScroll >= fixmeTop) { 148 $('.scroll-page .about-nav').addClass('fixed'); 149 $('.scroll-page .about-nav').css({ 150 background: '#fff', 151 position: 'fixed', 152 top: '57px', 153 left: '0', 154 right: '0', 155 zIndex: '990' 156 }); 157 } else { 158 $('.scroll-page .about-nav').removeClass('fixed'); 159 $('.scroll-page .about-nav').css({ 160 position: 'relative', 161 top: '0' 162 }); 163 } 164 165 }); 166 } 167 if ($('.about-nav-lv2').length) { 168 var fixmeTop = $('.about-nav-lv2').offset().top; 169 $(window).scroll(function() { 170 171 var currentScroll = $(window).scrollTop(); 172 173 if (currentScroll >= fixmeTop) { 174 $('.about-nav-lv2').addClass('fixed'); 175 $('.about-nav-lv2').css({ 176 background: '#fff', 177 position: 'fixed', 178 top: '57px', 179 left: '0', 180 right: '0', 181 zIndex: '990' 182 }); 183 } else { 184 $('.about-nav-lv2').removeClass('fixed'); 185 $('.about-nav-lv2').css({ 186 position: 'relative', 187 top: '0' 188 }); 189 } 190 191 }); 192 } 193 $('#myFile').on('change', function(){ 194 var filename = $(this).val().replace(/C:\\fakepath\\/i, ''); 195 $('#file_name').html(filename); 196 if($(this).val() != '') { 197 $.each($(this).prop("files"), function(k,v){ 198 var filename = v['name']; 199 var ext = filename.split('.').pop().toLowerCase(); 200 if($.inArray(ext, ['pdf','doc','docx','jpg','jpeg','png']) == -1) { 201 alert('Vui lòng tải lên các Äá»nh dạng pdf,doc,docx,jpg,jpeg,png Äá» phù hợp vá»i
201yêu cầu cá»§a bá» pháºn nhân sá»±.'); 202 if ( document.documentElement.lang.toLowerCase() === "vi" ) { 203 $('#file_name').html('Thả hoặc chá»n file tại Äây'); 204 }else { 205 $('#file_name').html('Drop or select files here'); 206 } 207 return false; 208 } 209 }); 210 } 211 }); 212 $(document).ready(function() { 213 var dialogShown = localStorage.getItem('dialogShown') 214 215 if (!dialogShown) { 216 $(window).load(function(){ 217 $("#modalAds").modal("show"); 218 localStorage.setItem('dialogShown', 1) 219 }); 220 } 221 }); 222})
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.