$(document).ready(function () { $.ajax({ type: 'POST', url: "/html/kiemtrakhachhang/", async: true, success: function (responseText) { $('.kiemtrakhachhang').html(responseText); } }); return false; }); $(document).ready(function() { $(".khuvuctinlienquanbaiviet").each(function() { var id = $(this).attr("id"); gettin(id, $(this)); }); }); function gettin(id, obj) { $.ajax({ type: 'POST', url: "/html/tintuc/?id=" + id, async: true, success: function(responseText) { $(obj).html(responseText); } }); return false; } $(document).ready(function() { $(".khuvucsanphamlienquanbaiviet").each(function() { var id = $(this).attr("id"); getsanpham(id, $(this)); }); }); function getsanpham(id, obj) { $.ajax({ type: 'POST', url: "/html/sanpham/?id=" + id, async: true, success: function(responseText) { $(obj).html(responseText); } }); return false; } $(document).ready(function() { $(".loaddataajax").each(function() { var link = $(this).attr("data-src"); getboloc(link, $(this)); }); }); function getboloc(link, obj) { $.ajax({ type: 'POST', url: link, async: true, beforeSend: function() { $('.onload').show(); }, success: function(responseText) { $(obj).html(responseText); var cao = $(obj).parent().parent().height(); var tong = $("#wrap-left").height(); $("#wrap-left").height(tong+cao); } }); return false; } $(document).ready(function() { $(".loaddatapagging").each(function() { var link = $(this).attr("data-src"); getpagging(link, $(this)); }); }); function getpagging(link, obj) { $.ajax({ type: 'POST', url: link, async: true, success: function(responseText) { $(obj).html(responseText); } }); return false; } jQuery.fn.treeListFilter = function(list, timeout) { var list = jQuery(list); var input = this; var keyTimeout; var lastFilter = ''; if (timeout === undefined) { timeout = 200; } function filterList(ulObject, filterValue) { if (!ulObject.is('ul') && !ulObject.is('ol')) { return false; } var children = ulObject.children(); var result = false; for (var i = 0; i < children.length; i++) { var liObject = jQuery(children[i]); if (liObject.is('li')) { var display = false; if (liObject.children().length > 0) { for (var j = 0; j < liObject.children().length; j++) { var subDisplay = filterList(jQuery(liObject.children()[j]), filterValue); display = display || subDisplay; } } if (!display) { var text = liObject.text(); display = text.toLowerCase().indexOf(filterValue) >= 0; } liObject.css('display', display ? '' : 'none'); result = result || display; } } return result; } input.change(function() { var filter = input.val().toLowerCase(); //var startTime = new Date().getTime(); filterList(list, filter); //var endTime = new Date().getTime(); return false; }).keydown(function() { clearTimeout(keyTimeout); keyTimeout = setTimeout(function() { if (input.val() === lastFilter) return; lastFilter = input.val(); input.change(); }, timeout); }); return this; }; $(document).ready(function(){ $(".trangchu .lienhe .container.noidungcontent").removeClass("container").removeClass("noidungcontent"); $(".secondary-section").addClass("section-dark"); $(".section").addClass("section-padding"); }); $(document).ready(function(){ $(".nhomtintuc").removeClass("col-md-6").addClass("col-md-6 col-lg-4 col-xl-4 wow animated fadeInUp animated"); });