1 2if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(d){var b=function(e){this.element=d(e)};b.VERSION="3.2.0";b.prototype.show=function(){var k=this.element;var h=k.closest("ul:not(.dropdown-menu)");var g=k.data("target");if(!g){g=k.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}if(k.parent("li").hasClass("active")){return}var i=h.find(".active:last a")[0];var j=d.Event("show.bs.tab",{relatedTarget:i});k.trigger(j);if(j.isDefaultPrevented()){return}var f=d(g);this.activate(k.closest("li"),h);this.activate(f,f.parent(),function(){k.trigger({type:"shown.bs.tab",relatedTarget:i})})};b.prototype.activate=function(g,f,j){var e=f.find("> .active");var i=j&&d.support.transition&&e.hasClass("fade");function h(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");g.addClass("active");if(i){g[0].offsetWidth;g.addClass("in")}else{g.removeClass("fade")}if(g.parent(".dropdown-menu")){g.closest("li.dropdown").addClass("active")}j&&j()}i?e.one("bsTransitionEnd",h).emulateTransitionEnd(150):h();e.removeClass("in")};function c(e){return this.each(function(){var g=d(this);var f=g.data("bs.tab");if(!f){g.data("bs.tab",(f=new b(this)))}if(typeof e=="string"){f[e]()}})}var a=d.fn.tab;d.fn.tab=c;d.fn.tab.Constructor=b;d.fn.tab.noConflict=function(){d.fn.tab=a;return this};d(document).on("click",".tab .nav-tabs li a",function(f){f.preventDefault();c.call(d(this),"show")})}(jQuery);+function(h){var e=".dropdown-backdrop";var b='[data-toggle="dropdown"]';var a=function(i){h(i).on("click.bs.dropdown",this.toggle)};a.VERSION="3.2.0";a.prototype.toggle=function(m){var l=h(this);if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");d();if(!j){if("ontouchstart" in document.documentElement&&!k.closest(".navbar-nav").length){h('<div class="dropdown-backdrop"/>').insertAfter(h(this)).on("click",d)}var i={relatedTarget:this};k.trigger(m=h.Event("show.bs.dropdown",i));if(m.isDefaultPrevented()){return}l.trigger("focus");k.toggleClass("open").trigger("shown.bs.dropdown",i)}return false};a.prototype.keydown=function(m){if(!/(38|40|27)/.test(m.keyCode)){return}var l=h(this);m.preventDefault();m.stopPropagation();if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");if(!j||(j&&m.keyCode==27)){if(m.which==27){k.find(b).trigger("focus")}return l.trigger("click")}var n=" li:not(.divider):visible a";var o=k.find('[role="menu"]'+n+', [role="listbox"]'+n);if(!o.length){return}var i=o.index(o.filter(":focus"));if(m.keyCode==38&&i>0){i--}if(m.keyCode==40&&i<o.length-1){i++}if(!~i){i=0}o.eq(i).trigger("focus")};function d(i){if(i&&i.which===3){return}h(e).remove();h(b).each(function(){var k=f(h(this));var j={relatedTarget:this};if(!k.hasClass("open")){return}k.trigger(i=h.Event("hide.bs.dropdown",j));if(i.isDefaultPrevented()){return}k.removeClass("open").trigger("hidden.bs.dropdown",j)})}function f(k){var i=k.attr("data-target");if(!i){i=k.attr("href");i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")}var j=i&&h(i);return j&&j.length?j:k.parent()}function g(i){return this.each(function(){var k=h(this);var j=k.data("bs.dropdown");if(!j){k.data("bs.dropdown",(j=new a(this)))}if(typeof i=="string"){j[i].call(k)}})}var c=h.fn.dropdown;h.fn.dropdown=g;h.fn.dropdown.Constructor=a;h.fn.dropdown.noConflict=function(){h.fn.dropdown=c;return this};h(document).on("click.bs.dropdown.data-api",d).on("click.bs.dropdown.data-api",".dropdown form",function(i){i.stopPropagation()}).on("click.bs.dropdown.data-api",b,a.prototype.toggle).on("keydown.bs.dropdown.data-api",b+', [role="menu"], [role="listbox"]',a.prototype.keydown)}(jQuery); 3/*! 4 * Lazy Load - jQuery plugin for lazy loading images 5 * 6 * Copyright (c) 2007-2015 Mika Tuupola 7 * 8 * Licensed under the MIT license: 9 * http://www.opensource.org/licenses/mit-license.php 10 * 11 * Project home: 12 * http://www.appelsiini.net/projects/lazyload 13 * 14 * Version: 1.9.7 15 * 16 */ 17(function(c,b,a,e){var d=c(b);c.fn.lazyload=function(f){var h=this;var i;var g={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:false,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};function j(){var k=0;h.each(function(){var l=c(this);if(g.skip_invisible&&!l.is(":visible")){return}if(c.abovethetop(this,g)||c.leftofbegin(this,g)){}else{if(!c.belowthefold(this,g)&&!c.rightoffold(this,g)){l.trigger("appear");k=0}else{if(++k>g.failure_limit){return false}}}})}if(f){if(e!==f.failurelimit){f.failure_limit=f.failurelimit;delete f.failurelimit}if(e!==f.effectspeed){f.effect_speed=f.effectspeed;delete f.effectspeed}c.extend(g,f)}i=(g.container===e||g.container===b)?d:c(g.container);if(0===g.event.indexOf("scroll")){i.on(g.event,function(){return j()})}this.each(function(){var k=this;var l=c(k);k.loaded=false;if(l.attr("src")===e||l.attr("src")===false){if(l.is("img")){l.attr("src",g.placeholder)}}l.one("appear",function(){if(!this.loaded){if(g.appear){var m=h.length;g.appear.call(k,m,g)}c("<img />").one("load",function(){var o=l.attr("data-"+g.data_attribute);l.hide();if(l.is("img")){l.attr("src",o)}else{l.css("background-image","url('"+o+"')")}l[g.effect](g.effect_speed);k.loaded=true;var n=c.grep(h,function(q){return !q.loaded});h=c(n);if(g.load){var p=h.length;g.load.call(k,p,g)}}).attr("src",l.attr("data-"+g.data_attribute))}});if(0!==g.event.indexOf("scroll")){l.on(g.event,function(){if(!k.loaded){l.trigger("appear")}})}});d.on("resize",function(){j()});if((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appVersion)){d.on("pageshow",function(k){if(k.originalEvent&&k.originalEvent.persisted){h.each(function(){c(this).trigger("appear")})}})}c(a).ready(function(){j()});return this};c.belowthefold=function(g,h){var f;
17if(h.container===e||h.container===b){f=(b.innerHeight?b.innerHeight:d.height())+d.scrollTop()}else{f=c(h.container).offset().top+c(h.container).height()}return f<=c(g).offset().top-h.threshold};c.rightoffold=function(g,h){var f;if(h.container===e||h.container===b){f=d.width()+d.scrollLeft()}else{f=c(h.container).offset().left+c(h.container).width()}return f<=c(g).offset().left-h.threshold};c.abovethetop=function(g,h){var f;if(h.container===e||h.container===b){f=d.scrollTop()}else{f=c(h.container).offset().top}return f>=c(g).offset().top+h.threshold+c(g).height()};c.leftofbegin=function(g,h){var f;if(h.container===e||h.container===b){f=d.scrollLeft()}else{f=c(h.container).offset().left}return f>=c(g).offset().left+h.threshold+c(g).width()};c.inviewport=function(f,g){return !c.rightoffold(f,g)&&!c.leftofbegin(f,g)&&!c.belowthefold(f,g)&&!c.abovethetop(f,g)};c.extend(c.expr[":"],{"below-the-fold":function(f){return c.belowthefold(f,{threshold:0})},"above-the-top":function(f){return !c.belowthefold(f,{threshold:0})},"right-of-screen":function(f){return c.rightoffold(f,{threshold:0})},"left-of-screen":function(f){return !c.rightoffold(f,{threshold:0})},"in-viewport":function(f){return c.inviewport(f,{threshold:0})},"above-the-fold":function(f){return !c.belowthefold(f,{threshold:0})},"right-of-fold":function(f){return c.rightoffold(f,{threshold:0})},"left-of-fold":function(f){return !c.rightoffold(f,{threshold:0})}})})(jQuery,window,document);(function(a){a.fn.LoPopUp=function(d){var e=a.extend({clearBefore:false,contentHtml:"",timeoutAppend:"",title:"",top:"",maxwidth:"",minwidth:"",maxheight:"",minheight:"",loadingStart:false,closePopup:false,afterSuccess:null},d);if(!a("#IDLOpopup").html()){a("body").append('<div id="IDLOpopup" rel="0" class="LOpopup"><div class="LOpopupDialogClass"><div class="LOpopupDialogHead">Tiêu Äá»</div> <span class="closepopup" onclick="closeAllPopup($(this));; return false;">X</span><div class="loading"></div> <div class="LOpopupDialogBody"></div></div></div>')}if(e.clearBefore){a(this).find(".LOpopupDialogBody").html("")}if(!e.closePopup){a(this).show()}else{a(this).hide()}if(e.loadingStart){a(this).find(".loading").show()}if(a.trim(e.contentHtml)!=""){if(a.trim(e.timeoutAppend)==""){a(this).find(".LOpopupDialogBody").html(e.contentHtml);a(this).find(".loading").hide();a(this).find(".LOpopupDialogBody").slideDown("slow");a(this).find(".loading").hide();if(a.isFunction(e.afterSuccess)){e.afterSuccess.call(this)}}else{var c=a(this);setTimeout(function(){c.find(".LOpopupDialogBody").html(e.contentHtml);c.find(".loading").hide();c.find(".LOpopupDialogBody").slideDown("slow");c.find(".loading").hide();if(a.isFunction(e.afterSuccess)){e.afterSuccess.call(this)}},e.timeoutAppend)}}if(a.trim(e.title)!=""){a(this).find(".LOpopupDialogHead").html(e.title)}if(a.trim(e.top)!=""){a(this).css("top",e.top)}if(a.trim(e.maxwidth)!=""){a(this).find(".LOpopupDialogClass ").css("max-width",e.maxwidth)}if(a.trim(e.minwidth)!=""){a(this).find(".LOpopupDialogClass ").css("min-width",e.minwidth)}if(a.trim(e.maxheight)!=""){a(this).find(".LOpopupDialogClass ").css("max-height",e.maxheight)}if(a.trim(e.minheight)!=""){a(this).find(".LOpopupDialogClass ").css("max-height",e.minheight)}var b=this;setTimeout(function(){var f=a(b).find(".LOpopupDialogHead");if(a.trim(e.maxheight)!=""){a(b).find(".LOpopupDialogBody").css("max-height",(parseInt(e.maxheight)-8-f.outerHeight(true))+"px")}else{a(b).find(".LOpopupDialogBody").css("max-height",(a(b).find(".LOpopupDialogClass").height()-f.outerHeight(true))+"px")}},10);return this}})(jQuery);function closeAllPopup(){$(".LOpopup").each(function(){$(this).hide()})}function createPopup(a){if(a.popupId==""){return false}$("#IDLOpopup").clone().attr("id",a.popupId).after("#IDLOpopup");$("#"+settings.popupId).LoPopUp(a)}function parseJsonErrors(a,b){var c=$.parseJSON(a);if(b){b.find(".errorMessage").hide();b.find(".poError").removeClass("poError");$.each(c,function(d,e){b.find("#"+d+"_em_").text(e);b.find("#"+d+"_em_").show();b.find("#"+d+"_em_").parent().addClass("poError")})}else{jQuery(".errorMessage").hide();jQuery(".poError").removeClass("poError");$.each(c,function(d,e){jQuery("#"+d+"_em_").text(e);jQuery("#"+d+"_em_").show();jQuery("#"+d+"_em_").parent().addClass("poError")})}}
17function w3ShowLoading(c,f,a,i){if(!f){f="right"}if(!a){a=0}if(!i){i=0}a=parseInt(a);i=parseInt(i);var e=c.offset();if(e){var h=c.width();var b=c.height();switch(f){case"left":case"top":var g=e.left+a;var d=e.top+i;break;case"bottom":var g=e.left+a;var d=e.top-i+b;break;default:var g=e.left+a+h;var d=e.top+i;break}if(!$("#objloading").html()){$("body").append('<div id="objloading" style="position: absolute; top: 0px; left: 0px;z-index: 9999"><div id="imgloading" style="position: absolute; top:'+d+"px; left:"+g+'px;"><img style="display: block;" src="img/wating.gif" /></div></div>')}$("#imgloading").css({top:d+"px",left:g+"px"});$("#objloading").fadeTo("fast",1)}return false}function w3HideLoading(){jQuery("#objloading").fadeTo("slow",0,function(){$(this).hide()})}jQuery(document).on("submit",".w3f-form",function(){var a=$(this);if(a.hasClass("disable")){return false}a.addClass("disable");var c=$(this).serialize();var b=$(this).attr("action");if(b){jQuery.ajax({url:b,type:"POST",dataType:"JSON",data:c,success:function(d){switch(d.code){case 200:if(d.redirect){window.location.href=d.redirect}else{window.location.href=window.location.href}break;default:if(d.errors){parseJsonErrors(d.errors,a)}break}a.removeClass("disable")},error:function(){a.removeClass("disable")}})}else{a.removeClass("disable")}return false});function isNumber(a){return !isNaN(parseFloat(a))&&isFinite(a)}function updateCountCart(b,c){if(!b){return false}if(isNumber(b)){jQuery(".countCart").html(b);jQuery(".countCart").show();jQuery(".countCart").removeClass("shake");setTimeout(function(){jQuery(".countCart").addClass("shake")},200)}if(isNumber(c)){var a=".countProduct";if(jQuery(".cart-quantity").length){a=".cart-quantity"}jQuery(a).html(c);jQuery(a).show();jQuery(a).removeClass("shake");setTimeout(function(){jQuery(a).addClass("shake")},200)}}jQuery(document).ready(function(){var containerout=jQuery(".container-out");if(containerout.length){var container_width=parseInt(jQuery(".container:first").outerWidth());if(container_width){var body_width=jQuery("body").innerWidth();var containerout_width=(body_width-container_width)/2;if(containerout_width>10){containerout.css({width:containerout_width})}else{containerout.css({display:"none"})}}}if(jQuery(".product-detail .product-detail-img").length){if(jQuery(".product-detail .product-detail-img").hasClass("mobile")){var windowHeight=jQuery(window).height();console.log();$(".product-detail .product-detail-img a.product-img-large").colorbox({rel:"product-img-large",innerHeight:windowHeight-20,innerWidth:"100%"});$(".product-detail .product-detail-img a.product-img-small").colorbox({rel:"product-img-small",innerHeight:windowHeight-20,innerWidth:"100%"})}else{$(".product-detail .product-detail-img a.product-img-large").colorbox({rel:"product-img-large",innerHeight:600,innerWidth:800});$(".product-detail .product-detail-img a.product-img-small").colorbox({rel:"product-img-small",innerHeight:600,innerWidth:800})}jQuery(".product-detail .product-detail-img a.product-img-small").on("mouseover",function(){thumb_img_w=(typeof thumb_img_w!="undefined")?thumb_img_w:330;thumb_img_h=(typeof thumb_img_h!="undefined")?thumb_img_h:330;var href=jQuery(this).attr("href");var src=jQuery(this).find("img").attr("src");var thumb=jQuery(this).find("img").attr("data-thumb-image");if(href){var clo=jQuery(this).closest(".product-detail-img");clo.find(".product-img-main a.product-img-large").attr("href",href);if(!thumb){clo.find(".product-img-main a.product-img-large img").attr("src",src.replace("/s50_50/","/s"+thumb_img_w+"_"+thumb_img_h+"/"))}else{clo.find(".product-img-main a.product-img-large img").attr("src",thumb)}}return false})}jQuery(".addtocart").on("click",function(){var thi=jQuery(this);var url=thi.attr("href");if(!url){url=thi.attr("src")}if(!url){return false}var data_params=thi.attr("data-params");var data="";if(data_params){var data_params_object=jQuery(data_params);if(data_params_object.find(".product-attr").length){var check=true;var text="";data_params_object.find(".product-attr").each(function(){if(!$(this).find(".attrConfig-input").val()){check=false;if(!text){text=$(this).attr("attr-title")}else{text+=", "+$(this).attr("attr-title")}}});if(!check){var attrError=data_params_object.find(".product-attr-error");attrError.show();attrError.find("b").html(text);return false}else{data_params_object.find(".product-attr-error").hide()}}if(data_params_object.length){data=data_params_object.find("input,select,textarea").serialize()}}jQuery.ajax({type:"post",url:url,data:data,dataType:"JSON",beforeSend:function(){w3ShowLoading(thi,"right",15,0)},success:function(res){if(res.code=="200"){updateCountCart(res.total,res.products);if(thi.hasClass("refreshcart")){if(thi.hasClass("notAppend")){$(".cart").html(res.cart)}else{$(".cart").append(res.cart)}}if(!thi.hasClass("noredirect")&&res.redirect){window.location.href=res.redirect}else{var mess_success=(thi.data("mess-success"))?thi.data("mess-success"):"";var mess_function=(thi.data("mess-function"))?thi.data("mess-function"):"";if(mess_success){if(mess_function){eval(mess_function+"(mess_success)")}else{alert(mess_success)}}else{if(res.cart&&res.cartTitle){$(document).LoPopUp({title:res.cartTitle,clearBefore:true,clearAfter:true,maxwidth:"800px",minwidth:"800px",maxheight:"600px",top:"100px",contentHtml:res.cart});$(".LOpopup").show()}}}}
17w3HideLoading()},error:function(){w3HideLoading();return false}});return false});jQuery(document).on("mouseover",".get-product-detail",function(){var thi=jQuery(this);var attributes=thi.getAttributes();var url=attributes.href;if(!url){url=attributes.src}if(!url){return false}var target=attributes["target-detail"];if(!target||!thi.find(target).length){return false}if($.trim(thi.find(target).html())!=""){return false}if(thi.hasClass("block")){return false}thi.addClass("block");jQuery.ajax({type:"post",data:{attributes:JSON.stringify(attributes)},url:url,dataType:"JSON",beforeSend:function(){if(attributes["show-loading"]!="false"){w3ShowLoading(thi,"right",0,0)}},success:function(res){if(res.code=="200"){if(res.html){thi.find(target).html(res.html)}}w3HideLoading();thi.removeClass("block")},error:function(){w3HideLoading();thi.removeClass("block");return false}});return false})});(function(a){a.fn.getAttributes=function(){var b={};if(this.length){a.each(this[0].attributes,function(d,c){b[c.name]=c.value})}return b}})(jQuery);(function(d){var c;d.fn.printThis=function(j){c=d.extend({},d.fn.printThis.defaults,j);var i=this instanceof jQuery?this:d(this);var l="printThis-"+(new Date()).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var o='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")';var n=document.createElement("iframe");n.name="printIframe";n.id=l;n.className="MSIE";document.body.appendChild(n);n.src=o}else{var k=d("<iframe id='"+l+"' name='printIframe' />");k.appendTo("body")}var m=d("#"+l);if(!c.debug){m.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"})}setTimeout(function(){var u=m.contents(),p=u.find("head"),r=u.find("body");p.append('<base href="'+document.location.protocol+"//"+document.location.host+'">');if(c.importCSS){d("link[rel=stylesheet]").each(function(){var v=d(this).attr("href");if(v){var w=d(this).attr("media")||"all";p.append("<link type='text/css' rel='stylesheet' href='"+v+"' media='"+w+"'>")}})}if(c.importStyle){d("style").each(function(){d(this).clone().appendTo(p)})}if(c.pageTitle){p.append("<title>"+c.pageTitle+"</title>")}if(c.loadCSS){if(d.isArray(c.loadCSS)){jQuery.each(c.loadCSS,function(v,w){p.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")})}else{p.append("<link type='text/css' rel='stylesheet' href='"+c.loadCSS+"'>")}}if(c.header){r.append(c.header)}if(c.printContainer){r.append(i.outer())}else{i.each(function(){r.append(d(this).html())})}if(c.formValues){var t=i.find("input");if(t.length){t.each(function(){var y=d(this),z=d(this).attr("name"),v=y.is(":checkbox")||y.is(":radio"),w=u.find('input[name="'+z+'"]'),x=y.val();if(!v){w.val(x)}else{if(y.is(":checked")){if(y.is(":checkbox")){w.attr("checked","checked")}else{if(y.is(":radio")){u.find('input[name="'+z+'"][value='+x+"]").attr("checked","checked")}}}}})}var q=i.find("select");if(q.length){q.each(function(){var w=d(this),x=d(this).attr("name"),v=w.val();u.find('select[name="'+x+'"]').val(v)})}var s=i.find("textarea");if(s.length){s.each(function(){var w=d(this),x=d(this).attr("name"),v=w.val();u.find('textarea[name="'+x+'"]').val(v)})}}if(c.removeInline){if(d.isFunction(d.removeAttr)){u.find("body *").removeAttr("style")}else{u.find("body *").attr("style","")}}setTimeout(function(){if(m.hasClass("MSIE")){window.frames.printIframe.focus();p.append("<script> window.print(); <\/script>")}else{m[0].contentWindow.focus();m[0].contentWindow.print()}if(!c.debug){setTimeout(function(){m.remove()},1000)}},c.printDelay)},333)};d.fn.printThis.defaults={debug:false,importCSS:true,importStyle:false,printContainer:true,loadCSS:"",pageTitle:"",removeInline:false,printDelay:333,header:null,formValues:true};jQuery.fn.outer=function(){return d(d("<div></div>").html(this.clone())).html()};if(typeof g==="undefined"||!g){var g="/images/no-image.png"}jQuery("img").error(function(){jQuery(this).attr("data-src",jQuery(this).attr("src"));jQuery(this).attr("src",g)});if(typeof h==="undefined"||!h){var h="imglazyload"}if(typeof b==="undefined"||!b){var b=200}if(typeof f==="undefined"||!f){var f="src"}if(typeof a==="undefined"||!a){var a="data-original"}function e(){var i=false;jQuery("."+h).each(function(j,l){var k=jQuery(l).attr(a);if(k){jQuery(l).attr(f,k)}jQuery(l).removeClass(h);i=true;return false});return i}if(jQuery("img."+h).length){jQuery("img."+h).lazyload()}})(jQuery);var w3nPublic={};w3nPublic.NotFollowViewSource=function(){w3nPublic.disableRightClick();w3nPublic.disableViewSource();w3nPublic.disableCutCopy()};w3nPublic.disableRightClick=function(){$(document).mousedown(function(a){if
17(a.button==2){return false}});$(document).on("contextmenu",function(a){a.preventDefault();return false})};w3nPublic.disableViewSource=function(){$(document).on("keydown",function(b){var c=b.ctrlKey||b.metaKey;var a=b.keyCode||b.which;if((c&&a==85)||a==123){b.preventDefault();return false}})};w3nPublic.disableCutCopy=function(){jQuery(document).bind("cut copy",function(a){a.preventDefault();return false})};w3nPublic.addParamToUrl=function(b,c,d){var a=(b.indexOf("?")>-1)?"&":"?";return b+a+c+"="+d};
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.