1/* Validation form */ 2ValidationFormSelf("validation-newsletter"); 3ValidationFormSelf("validation-faq"); 4ValidationFormSelf("validation-contact"); 5ValidationFormSelf("validation-request"); 6 7/* Exists */ 8$.fn.exists = function(){ 9 return this.length; 10}; 11 12/* Paging ajax */ 13if($(".paging-product").exists()) 14{ 15 loadPagingAjax("ajax/ajax_product.php?perpage=6",'.paging-product'); 16} 17 18/* Datetime picker */ 19FK.DatetimePicker = function(){ 20 if($('.date_pick').exists()) 21 { 22 $('.date_pick').datetimepicker({ 23 timepicker: false, 24 format: 'd/m/Y', 25 formatDate: 'd/m/Y', 26 minDate: TIMENOW 27 }); 28 } 29}; 30 31/* Back to top */ 32FK.BackToTop = function(){ 33 $(window).scroll(function(){ 34 if(!$('.scrollToTop').length) $("body").append('<div class="scrollToTop"><img src="'+GOTOP+'" alt="Go Top"/></div>'); 35 if($(this).scrollTop() > 100) $('.scrollToTop').fadeIn(); 36 else $('.scrollToTop').fadeOut(); 37 }); 38 39 $('body').on("click",".scrollToTop",function() { 40 $('html, body').animate({scrollTop : 0},800); 41 return false; 42 }); 43}; 44 45FK.Common = function(){ 46 $('.procedure_it').click(function(event) { 47 $('.procedure_it').removeClass('active'); 48 $(this).addClass('active'); 49 $('.procedure-content').removeClass('active'); 50 $('.procedure-content-'+$(this).attr('data-id')).addClass('active'); 51 }); 52 53 54 $(".text iframe,.text embed").each(function(e,n){$(this).wrap("<div class='video-container'></div>")}); 55 $(".text table").each(function(e,t){$(this).wrap("<div class='table-responsive'></div>")}); 56 $('.frm_timkiem').submit(function(){ 57 var timkiem = $('#name_tk').val(); 58 if(!timkiem){ 59 alert('Vui lòng nháºp từ khóa !!!'); 60 } else { 61 window.location.href="tim-kiem?keyword="+timkiem; 62 } 63 return false; 64 }) 65 66 67 $('body').on('click', '.book-doctor', function(event) { 68 if($(this).hasClass('book-doctor')){ 69 $('#bacsi').val($(this).data('id')); 70 71 } 72 $('.modal_price').addClass('open'); 73 }); 74 $(".open_price,.book-doctor").click(function () { 75 if($(this).hasClass('book-doctor')){ 76 $('#bacsi').val($(this).data('id')); 77 78 } 79 $('.modal_price').addClass('open'); 80 }); 81 $(".modal_close,.ic_close").click(function () { 82 $('.modal_price').removeClass('open'); 83 }); 84 85 86 function history() { 87 var el=$('#timelineAbout'), elNav=$('#timelineAboutContent'); 88 el.on('init', function(event, slick) { 89 el.find('.timeline__logo').click(function() { 90 var _this=$(this), index=_this.parents('.slick-slide').data('slick-index'); 91 el.slick('slickGoTo', index) 92 }) 93 }).slick({ 94 infinite:true, 95 speed:300, 96 slidesToShow:4, 97 slidesToScroll:1, 98 arrows:false, 99 cssEase:'linear', 100 prevArrow:'<a class="arrow--1 arrow--prev"href="javascript:void(0)"><i class="fa fa-lg fa-angle-double-left"></i></a>', 101 nextArrow:'<a class="arrow--1 arrow--next"href="javascript:void(0)"><i class="fa fa-lg fa-angle-double-right"></i></a>', 102 asNavFor:elNav, 103 responsive:[ 104 { 105 breakpoint:1024, 106 settings: { slidesToShow: 4 } 107 }, 108 { 109 breakpoint:992, 110 settings: { slidesToShow: 4 } 111 }, 112 { 113 breakpoint:700, 114 settings: { slidesToShow: 3 } 115 }, 116 { 117 breakpoint:640, 118 settings: { slidesToShow: 2 } 119 } 120 ] 121 }); 122 elNav.slick( { 123 slidesToShow: 1, 124 slidesToScroll:1, 125 speed:300, 126 cssEase:'linear', 127 arrows:false, 128 asNavFor:el, 129 centerPadding:0, 130 fade:true, 131 centerMode:true, 132 focusOnSelect:true, 133 }) 134 } 135 136 $(window).on('load', function() { 137 history(); 138 }); 139 140 141 // show 142 $('.menu_content_fix_icon').click(function() { 143 $('.menu_content_fix').css({ 144 'left': '0px', 145 'z-index': '999999' 146 }); 147 $('.menu_content_fix_icon').css({ 148 'display': 'none' 149 }); 150 }); 151 // close 152 $(".menu_content_close").click(function() { 153 $('.menu_content_fix').css({ 154 'left': '-320px', 155 'z-index': '999999' 156 }); 157 $('.menu_content_fix_icon').css({ 158 'display': 'block' 159 }); 160 }); 161 // move and close 162 $(".menu_content_fix_content a").click(function() { 163 $(".menu_content_close").trigger("click"); 164 }); 165 // icon mobile 166 if ($(window).width() < 992) { 167 $('.menu_content_fix_icon').css({ 168 'width': '25px', 169 'height': '25px', 170 'right': '-25px' 171 }); 172 $('.menu_content_fix_icon .fa').css({ 173 'font-size': '16px'
174 }); 175 } 176 $(".click_show_menu").click(function() { 177 if ($('.meta-toc').hasClass('hidden')) { 178 $(".meta-toc").removeClass('hidden'); 179 $(".click_show_menu .fa").removeClass('fa-caret-down'); 180 $(".click_show_menu .fa").addClass('fa-caret-up'); 181 } else { 182 $(".meta-toc").addClass('hidden'); 183 $(".click_show_menu .fa").removeClass('fa-caret-up'); 184 $(".click_show_menu .fa").addClass('fa-caret-down'); 185 } 186 }); 187 $('.faqs').click(function(event) { 188 $('#popup-faqs').modal('show'); 189 }); 190 $('.view-doctor').click(function(event) { 191 $.ajax({ 192 url: 'ajax/ajax_doctor.php', 193 type: 'POST', 194 dataType: 'html', 195 data: {id: $(this).data('id')}, 196 success: function (res){ 197 $('#popup-doctor .modal-body').html(res); 198 $('#popup-doctor').modal('show'); 199 } 200 }); 201 202 }); 203} 204 205/* Alt images */ 206FK.AltImages = function(){ 207 $('img').each(function(index, element) { 208 if(!$(this).attr('alt') || $(this).attr('alt')=='') 209 { 210 $(this).attr('alt',WEBSITE_NAME); 211 } 212 }); 213}; 214 215/* Fix menu */ 216FK.FixMenu = function(){ 217 $(window).scroll(function(){ 218 if($(window).scrollTop() >= $('.header').height()) 219 $('.menu').addClass('fix'); 220 else $('.menu').removeClass('fix'); 221 222 if($(window).scrollTop() >= $('.header').height()) 223 $('.menu-res').addClass('fix'); 224 else $('.menu-res').removeClass('fix'); 225 }); 226}; 227 228 229/* Popup */ 230FK.Popup = function(){ 231 if($("#popup").exists()) 232 { 233 $('#popup').modal('show'); 234 } 235}; 236 237/* Mmenu */ 238FK.Mmenu = function(){ 239 if($("nav#menu").exists()) 240 { 241 $('nav#menu').mmenu(); 242 } 243}; 244 245/* Toc */ 246FK.Toc = function(){ 247 if($(".toc-list").exists()) 248 { 249 $(".toc-list").toc({ 250 content: "div#toc-content", 251 headings: "h2,h3,h4" 252 }); 253 254 if(!$(".toc-list li").length) $(".meta-toc").hide(); 255 256 $('.toc-list').find('a').click(function(){ 257 var x = $(this).attr('data-rel'); 258 goToByScroll(x); 259 }); 260 } 261}; 262 263/* Tabs */ 264FK.Tabs = function(){ 265 if($(".ul-tabs-pro-detail").exists()) 266 { 267 $(".ul-tabs-pro-detail li").click(function(){ 268 var tabs = $(this).data("tabs"); 269 $(".content-tabs-pro-detail, .ul-tabs-pro-detail li").removeClass("active"); 270 $(this).addClass("active"); 271 $("."+tabs).addClass("active"); 272 }); 273 } 274}; 275 276 277/* Owl */ 278FK.OwlPage = function(){ 279 if($(".owl-slideshow").exists()) 280 { 281 $('.owl-slideshow').owlCarousel({ 282 items: 1, 283 rewind: true, 284 autoplay: true, 285 loop: false, 286 lazyLoad: false, 287 mouseDrag: false, 288 touchDrag: false, 289 animateIn: 'animate__animated animate__fadeInLeft', 290 animateOut: 'animate__animated animate__fadeOutRight', 291 margin: 0, 292 smartSpeed: 500, 293 autoplaySpeed: 3500, 294 nav: false, 295 dots: false 296 }); 297 $('.prev-slideshow').click(function() { 298 $('.owl-slideshow').trigger('prev.owl.carousel'); 299 }); 300 $('.next-slideshow').click(function() { 301 $('.owl-slideshow').trigger('next.owl.carousel'); 302 }); 303 } 304 if($(".owl-partner").exists()) 305 { 306 $('.owl-partner').owlCarousel({ 307 items: 6, 308 autoplay: true, 309 loop: true, 310 lazyLoad: true, 311 mouseDrag: true, 312 touchDrag: true, 313 margin: 12, 314 smartSpeed: 250, 315 autoplaySpeed: 1000, 316 nav: false, 317 dots: false, 318 responsiveClass:true, 319 responsiveRefreshRate: 200, 320 responsive:{ 321 0:{ items:2 }, 322 500:{ items:4 }, 323 800:{ items:6 } 324 } 325 }); 326 } 327}; 328 329 330FK.SlickPage = function(){ 331 332 if($('.slick_project').length>0) { 333 $(".slick_project").slick({ 334 slidesToShow:2, 335 slidesToScroll:1, 336 infinite:!0, 337 autoplay:!0, 338 autoplaySpeed:5e3, 339 focusOnSelect:1, 340 arrows:!1, 341 vertical: true, 342 dots:!1, 343 }); 344 } 345 346 if($('.slick_center').length>0) { 347 $(".slick_center").slick({ 348 slidesToShow:3, 349 slidesToScroll:1, 350 infinite:!0, 351 autoplay:!0, 352 autoplaySpeed:5e3, 353 354 focusOnSelect:1, 355 arrows:!0, 356 vertical: false, 357 dots:!1, 358 centerPadding: '0px', 359 responsive:[{ 360 breakpoint:769, 361 settings:{ 362 slidesToShow:2, 363 slidesToScroll:1 364 } 365 },{ 366 breakpoint:450, 367 settings:{ 368 slidesToShow:2, 369 slidesToScroll:1 370 } 371 },{ 372 breakpoint:375, 373 settings:{ 374 slidesToShow:1, 375 slidesToScroll:1 376 } 377 }] 378 }); 379 } 380 381 382 if($('.box_ql_slider').length>0) {$(".box_ql_slider").slick({slidesToShow:3,slidesToScroll:1,infinite:!0,dots:!1,centerMode:!0,centerPadding: '0px',focusOnSelect:!0,arrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:990,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,rows:1}},{breakpoint:320,settings:{slidesToShow:1,slidesToScroll:1,rows:1}}]});} 383 384 // ==== 385 if($('.slider_tc').length>0) { 386 $(".slider_tc").slick({ 387 slidesToShow:5, 388 slidesToScroll:1, 389 infinite:!0, 390 autoplay:!0, 391 autoplaySpeed:5e3, 392 arrows:!0, 393 dots:!1, 394 responsive:[ 395 { 396 breakpoint:1024, 397 settings:{ 398 slidesToShow:4, 399 slidesToScroll:1 400 } 401 }, 402 { 403 breakpoint:990, 404 settings:{ 405 slidesToShow:3, 406 slidesToScroll:1 407 } 408 }, 409 { 410 breakpoint:769, 411 settings:{ 412 slidesToShow:2, 413 slidesToScroll:1 414 } 415 }, 416 { 417 breakpoint:450, 418 settings:{ 419 slidesToShow:2, 420 slidesToScroll:1 421 } 422 },{ 423 breakpoint:350, 424 settings:{ 425 slidesToShow:1, 426 slidesToScroll:1 427 } 428 }] 429 }); 430 } 431 if($('.slide-services').length>0) {$(".slide-services").slick({slidesToShow:3,slidesToScroll:1,infinite:!0,autoplay:!1,autoplaySpeed:5e3,arrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:990,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:400,settings:{slidesToShow:1,slidesToScroll:1}}]});} 432 if($('.slider-fields').length>0) {$(".slider-fields").slick({slidesToShow:1,slidesToScroll:1,infinite:!0,autoplay:!1,autoplaySpeed:5e3,arrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:990,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:400,settings:{slidesToShow:1,slidesToScroll:1}}]});} 433 if($('.slide_doctor').length>0) {$(".slide_doctor").slick({slidesToShow:1,slidesToScroll:1,infinite:!0,autoplay:!1,autoplaySpeed:5e3,arrows:!1,fade:!0,asNavFor:".box_ql_slider"});} 434 if($('.slide_doctor_nav').length>0) {$(".slide_doctor_nav").slick({slidesToShow:5,slidesToScroll:1,autoplay:!1,infinite:!0,asNavFor:".slide_doctor",dots:!1,arrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:990,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:1,rows:1}},{breakpoint:375,settings:{slidesToShow:1,slidesToScroll:1,rows:1}}]});} 435 $('.slide_doctor_nav').on('click', '.slick-slide', function (e) { 436 $('.slide_doctor_nav .slick-slide').removeClass('active').removeClass('slick-current');; 437 $(this).addClass('active'); 438 var $currTarget = $(e.currentTarget), 439 index = $currTarget.data('slick-index'),
440 slickObj = $('.slide_doctor').slick('getSlick'); 441 slickObj.slickGoTo(index); 442 }); 443} 444 445 446/* Ready */ 447$(document).ready(function(){ 448 FK.DatetimePicker(); 449 FK.Common(); 450 FK.Popup(); 451 FK.AltImages(); 452 FK.BackToTop(); 453 FK.FixMenu(); 454 FK.Mmenu(); 455 FK.OwlPage(); 456 FK.SlickPage(); 457 FK.Toc(); 458 FK.Tabs(); 459});
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.