1$(document).ready(function(){ 2 $('#menu-top > li').hover( 3 function() { 4 $(this).find('ul').stop().fadeIn(400); 5 }, function() { 6 $(this).find('ul').stop().fadeOut(); 7 } 8 ); 9 $('#da-slider').cslider(); 10 $('.single_page_sp table').addClass("table table-bordered"); 11 $('.content table').addClass("table table-bordered"); 12 // var acc = document.getElementsByClassName("custom_accordion"); 13 // var i; 14 // for (i = 0; i < acc.length; i++) { 15 // acc[i].addEventListener("click", function() { 16 // this.classList.toggle("active"); 17 // var panel = this.nextElementSibling; 18 // console.log(panel,'panel'); 19 // if (panel.style.maxHeight) { 20 // panel.style.maxHeight = null; 21 // } else { 22 // panel.style.maxHeight = panel.scrollHeight + "px"; 23 // } 24 // }); 25 // } 26}); 27 28jQuery(window).load(function() { 29 $('.list_img').bxSlider({ 30 minSlides: 1, 31 maxSlides: 1, 32 moveSlides: 1, 33 auto: true, 34 slideMargin: 20, 35 pager: false, 36 autoDirection: 'prev' 37 }); 38 39 if ($('#back-to-top').length) { 40 var scrollTrigger = 100, // px 41 backToTop = function () { 42 var scrollTop = $(window).scrollTop(); 43 if (scrollTop > scrollTrigger) { 44 $('#back-to-top').addClass('show'); 45 } else { 46 $('#back-to-top').removeClass('show'); 47 } 48 }; 49 backToTop(); 50 $(window).on('scroll', function () { 51 backToTop(); 52 }); 53 $('#back-to-top').on('click', function (e) { 54 e.preventDefault(); 55 $('html,body').animate({ 56 scrollTop: 0 57 }, 700); 58 }); 59 } 60}); 61 62$(document).ready(function () { 63 $(document).ready(function () { 64 $('#tab_index1').tabify(); 65 $('#tab_index2').tabify(); 66 $('#tab_index3').tabify(); 67 $('#tab_index4').tabify(); 68 $('#tab_index5').tabify(); 69 70 $( ".lienhe_12" ).click(function() { 71 window.location.href = "http://kientrucnhatlam.com/lien-he/"; 72 return false; 73 }); 74}); 75 76}); 77(function($) { 78 $(function() { 79 $("#scroller").simplyScroll({orientation:'vertical',customClass:'vert'}); 80 }); 81 $(function() { 82 $("#scroller1").simplyScroll({orientation:'vertical',customClass:'vert'}); 83 }); 84})(jQuery); 85 86$(function () { 87 $(window).scroll(function (event) { 88 89 var y = $(this).scrollTop(); 90 var winWidth = $(window).width(); 91 var hd = $('.header').height(); 92 93 if(y >= hd && winWidth > 768) 94 { 95 $('.main-menu').addClass('menufixed animated fadeInDown'); 96 } 97 else 98 { 99 $('.main-menu').removeClass('menufixed animated fadeInUp'); 100 } 101 if(y >= (hd +100) && winWidth > 768) 102 { 103 $('#mainNav').addClass('show_fixed animated fadeInDown'); 104 } 105 else 106 { 107 $('#mainNav').removeClass('show_fixed animated fadeInUp'); 108 } 109 }); 110}); 111 112 113$(document).ready(function() { 114 $('.slider-project').owlCarousel({ 115 loop: true, 116 margin: 30, 117 nav: true, 118 autoplay: true, 119 responsive: { 120 0: { 121 items: 1 122 }, 123 768: { 124 items: 2 125 }, 126 992: { 127 items: 4 128 } 129 } 130 }) 131 $(".slider-project .owl-prev").html('<i class="fa fa-caret-left"></i>'); 132 $(".slider-project .owl-next").html('<i class="fa fa-caret-right"></i>'); 133}); 134 135$(document).ready(function() { 136 $('.slider_shortcode_pro').owlCarousel({ 137 loop: true, 138 margin: 30, 139 nav: true, 140 autoplay: true, 141 autoplayTimeout: 2000, 142 responsive: { 143 0: { 144 items: 1 145 }, 146 768: { 147 items: 2 148 }, 149 992: { 150 items: 4 151 } 152 } 153 }) 154 $(".slider_shortcode_pro .owl-prev").html('<i class="fa fa-caret-left"></i>'); 155 $(".slider_shortcode_pro .owl-next").html('<i class="fa fa-caret-right"></i>'); 156}); 157 158$(document).ready(function() { 159 $('.slider_shortcode_kh').owlCarousel({ 160 loop: true, 161 margin: 30, 162 nav: true, 163 autoplay: true, 164 autoplayTimeout: 2000, 165 responsive: { 166 0: { 167 items: 1 168 }, 169 768: { 170 items: 2 171 }, 172 992: { 173 items: 3 174 } 175 } 176 }) 177 $(".slider_shortcode_kh .owl-prev").html('<i class="fa fa-caret-left"></i>'); 178 $(".slider_shortcode_kh .owl-next").html('<i class="fa fa-caret-right"></i>'); 179}); 180 181 182$(document).ready(function() { 183 $('.shortcode_video_xay1').owlCarousel({ 184 loop: false, 185 margin: 2, 186 nav: true, 187 dots: true, 188 autoplay: true, 189 autoplayTimeout: 3000, 190 responsive: { 191 0: { 192 items: 1 193 }, 194 768: { 195 items: 2 196 }, 197 992: { 198 items: 3 199 } 200 } 201 }) 202}); 203 204$(document).ready(function() { 205 $('.shortcode_video_xay2').owlCarousel({ 206 loop: false, 207 margin: 2, 208 nav: true, 209 dots: true, 210 autoplay: true, 211 autoplayTimeout: 3000, 212 responsive: { 213 0: { 214 items: 1 215 }, 216 768: { 217 items: 2 218 }, 219 992: { 220 items: 3 221 } 222 } 223 }) 224}); 225 226$(document).ready(function() { 227 $('.shortcode_video_xay3').owlCarousel({ 228 loop: false, 229 margin: 2, 230 nav: true, 231 dots: true, 232 autoplay: true, 233 autoplayTimeout: 3000, 234 responsive: { 235 0: { 236 items: 1 237 }, 238 768: { 239 items: 2 240 }, 241 992: { 242 items: 3 243 } 244 } 245 }) 246}); 247 248$(document).ready(function() { 249 $('.shortcode_video_xay4').owlCarousel({ 250 loop: false, 251 margin: 2, 252 nav: true, 253 dots: true, 254 autoplay: true, 255 autoplayTimeout: 3000, 256 responsive: { 257 0: { 258 items: 1 259 }, 260 768: { 261 items: 2 262 }, 263 992: { 264 items: 3 265 } 266 } 267 }) 268}); 269 270 271 272 273$(document).ready(function() { 274 $('.slider-video').owlCarousel({ 275 loop: true, 276 margin: 30, 277 nav: true, 278 autoplay: true, 279 responsive: { 280 0: { 281 items: 1 282 }, 283 768: { 284 items: 2 285 }, 286 992: { 287 items: 4 288 } 289 } 290 }) 291 $(".slider-video .owl-prev").html('<i class="fa fa-caret-left"></i>'); 292 $(".slider-video .owl-next").html('<i class="fa fa-caret-right"></i>'); 293}); 294 295$(document).ready(function() { 296 $(window).scroll(function (event) { 297 var winHeight = $(window).height(); 298 var winWidth = $(window).width(); 299 300 var y = $(this).scrollTop(); 301 302 if(y >= $('header').height() && winWidth > 768) 303 { 304 $('#menu_main').addClass('menufixed'); 305 } 306 else 307 { 308 $('#menu_main').removeClass('menufixed'); 309 } 310 }); 311}); 312 313 $(document).ready(function(){ 314 315 $(".init_toggle").each(function(){ 316 let height = $(this).height(); 317 console.log(height); 318 if(height > 320){ 319 $(this).addClass('qa_hide_content'); 320 $(this).attr('data-height',height); 321 $(this).append(`<div class="qa_toggle_content">Xem thêm</div>`); 322 } 323 }); 324 }); 325 326 $(document).on("click",".qa_toggle_content", function(){ 327 toggleCustom($(this)); 328 329 }); 330 function toggleCustom(element){ 331 if(element.hasClass('is-show')){ 332 element.removeClass('is-show'); 333 element.closest('.init_toggle').addClass('qa_hide_content'); 334 element.html(`Xem thêm`); 335 } 336 else{ 337 let h = element.closest('.init_toggle').attr('data-height'); 338 element.css('bottom',0); 339 element.addClass('is-show'); 340 element.html('Thu gá»n'); 341 element.closest('.init_toggle').css('height',h); 342 element.closest('.init_toggle').removeClass('qa_hide_content'); 343 } 344 } 345 346 347$(document).on("click",".custom_accordion", function(){
348 let custom_accordion_id = $(this).attr("custom_accordion_id"); 349 let post_id = $(this).attr("post_id"); 350 351 if(!custom_accordion_id || !post_id){ 352 return false; 353 } 354 if($(this).hasClass("has_show_content")){ 355 toggle_custom_accordion(custom_accordion_id); 356 return false; 357 } 358 359 $.ajax({ 360 type : "post", 361 dataType : "json", 362 url : ajaxurl, 363 data : { 364 action: "tab_content_v1", 365 custom_accordion_id : custom_accordion_id, 366 post_id : post_id 367 }, 368 context: this, 369 beforeSend: function(){ 370 371 }, 372 success: function(response) { 373 374 if(response.success) { 375 $(this).addClass("has_show_content"); 376 $("#custom_panel_"+custom_accordion_id).html(response.data); 377 toggle_custom_accordion(custom_accordion_id); 378 379 } 380 else { 381 console.log('Äã có lá»i xảy ra'); 382 } 383 }, 384 error: function( jqXHR, textStatus, errorThrown ){ 385 //Là m gì Äó khi có lá»i xảy ra 386 console.log( 'The following error occured: ' + textStatus, errorThrown ); 387 } 388 }) 389}); 390function toggle_custom_accordion(custom_accordion_id){ 391 var acc = document.getElementById("custom_accordion_"+custom_accordion_id); 392 acc.classList.toggle("active"); 393 var panel = acc.nextElementSibling; 394 if (panel.style.maxHeight) { 395 panel.style.maxHeight = null; 396 } else { 397 panel.style.maxHeight = panel.scrollHeight + "px"; 398 } 399}
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.