1Number.prototype.formatMoney = function(c, d, t){ 2 var n = this, 3 c = isNaN(c = Math.abs(c)) ? 2 : c, 4 d = d == undefined ? "." : d, 5 t = t == undefined ? "," : t, 6 s = n < 0 ? "-" : "", 7 i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", 8 j = (j = i.length) > 3 ? j % 3 : 0; 9 return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); 10 }; 11 12var app = (function($) { 13 14 var init = function () { 15 initTextControls(); 16 initSlick(); 17 initWaypoints(); 18 initBpkTabs(); 19 20 if ($('.doctor-page').length) { 21 //initDoctorPage(); 22 } 23 }, 24 25 initDoctorPage = function () { 26 27 var doctorCardContainer = $('.doctor-card-container'); 28 29 doctorCardContainer.on('click', '.doctor-card', function(event) { 30 31 event.preventDefault(); 32 33 var btn = $(this), 34 doctorPanel = $(btn.attr('href')); 35 36 doctorCardContainer.slideUp(); 37 doctorPanel.slideDown().siblings().hide(); 38 39 app.scrollToTop(); 40 41 }); 42 43 $('.doctor-panel-container').on('click', '.btn-back', function(event) { 44 45 event.preventDefault(); 46 47 var doctorPanel = $(this).closest('.doctor-panel'); 48 49 doctorPanel.hide(); 50 doctorCardContainer.slideDown(); 51 52 app.scrollToTop(); 53 54 }); 55 56 }, 57 58 initTextControls = function () { 59 60 //cookie 61 $.cookie.json = true; 62 var textControlCookie=$.cookie('bpk_web_text_control'); 63 if (textControlCookie===undefined){ 64 textControlCookie={}; 65 textControlCookie['size_class']='font-sm'; 66 } 67 else{ 68 if (textControlCookie['size_class']=='font-sm') { 69 $('body').removeClass('font-md font-lg').addClass('font-sm'); 70 } else if (textControlCookie['size_class']=='font-md') { 71 $('body').removeClass('font-sm font-lg').addClass('font-md'); 72 } else if (textControlCookie['size_class']=='font-lg') { 73 $('body').removeClass('font-sm font-md').addClass('font-lg'); 74 } 75 76 var btn = $(".text-controls li."+textControlCookie['size_class']); 77 btn.addClass('active').siblings().removeClass('active'); 78 } 79 80 $('.text-controls').on('click', 'li', function(event) { 81 event.preventDefault(); 82 var btn = $(this); 83 btn.addClass('active').siblings().removeClass('active'); 84 var size_class=""; 85 if (btn.hasClass('font-sm')) { 86 $('body').removeClass('font-md font-lg').addClass('font-sm'); 87 size_class="font-sm"; 88 } else if (btn.hasClass('font-md')) { 89 $('body').removeClass('font-sm font-lg').addClass('font-md'); 90 size_class="font-md"; 91 } else if (btn.hasClass('font-lg')) { 92 $('body').removeClass('font-sm font-md').addClass('font-lg'); 93 size_class="font-lg"; 94 } 95 96 textControlCookie['size_class']=size_class; 97 $.cookie('bpk_web_text_control', textControlCookie, { expires: 365, path: '/' }); 98 }); 99 }, 100 101 initWaypoints = function () { 102 103 // nav menu 104 $('#main-content').waypoint(function(direction) { 105 106 $('.header').toggleClass('sticky', direction === "down"); 107 $('.header-nav').toggleClass('sticky', direction === "down"); 108 109 }); 110 111 $('#main-content').waypoint(function(direction) { 112 $('.go-to-top').toggleClass('in', direction === "down"); 113 }, { 114 offset: '-100%' 115 }); 116 117 $(".go-to-top").on('click', function() { 118 app.scrollToTop(); 119 return false; 120 }); 121 122 }, 123 124 initSlick = function () { 125 var center_slider_config=''; 126 var center_html2_slider_config=''; 127 var gallery_slider_config=''; 128 var picture_slider_config=''; 129 var doctor_slider_config = { 130 lazyLoad: 'ondemand', 131 slidesToShow: 6, 132 slidesToScroll: 3, 133 infinite: false, 134 dots: false, 135 responsive: [ 136 { 137 breakpoint: 1024, 138 settings: { 139 slidesToShow: 4, 140 slidesToScroll: 4, 141 dots: false 142 } 143 }, 144 { 145 breakpoint: 600, 146 settings: { 147 slidesToShow: 3, 148 slidesToScroll: 3, 149 dots: false 150 } 151 }, 152 { 153 breakpoint: 480, 154 settings: { 155 slidesToShow: 2, 156 slidesToScroll: 2, 157 dots: false 158 } 159 } 160 ] 161 }; 162 var care_blog_slider_config=''; 163 var content_package_config=''; 164 var content_doctor_config=''; 165 var home_slider_config = { 166 lazyLoad: 'ondemand', 167 slidesToShow: 1, 168 slidesToScroll: 1, 169 infinite: true, 170 dots: false, 171 adaptiveHeight:true, 172 autoplay:true, 173 autoplaySpeed:3000 174 }; 175 var package_slider_config = { 176 lazyLoad: 'ondemand', 177 slidesToShow: 2, 178 slidesToScroll: 2, 179 infinite: true, 180 dots: false, 181 responsive: [ 182 { 183 breakpoint: 769, 184 settings: { 185 slidesToShow: 1, 186 slidesToScroll: 1 187 } 188 } 189 ] 190 }; 191 var news_slider_config=''; 192 193 if(design_version.indexOf('bpkgroup-')!=-1){ 194 center_slider_config={ 195 lazyLoad: 'ondemand', 196 slidesToShow: 5, 197 slidesToScroll: 5, 198 infinite: false, 199 dots: true, 200 responsive: [ 201 { 202 breakpoint: 1450, 203 settings: { 204 slidesToShow: 4, 205 slidesToScroll: 4, 206 } 207 }, 208 { 209 breakpoint: 1220, 210 settings: { 211 slidesToShow: 3, 212 slidesToScroll: 3, 213 } 214 }, 215 { 216 breakpoint: 900, 217 settings: { 218 slidesToShow: 2, 219 slidesToScroll: 2, 220 } 221 }, 222 { 223 breakpoint: 610, 224 settings: { 225 slidesToShow: 1, 226 slidesToScroll: 1, 227 } 228 }] 229 }; 230 picture_slider_config={ 231 lazyLoad: 'ondemand', 232 slidesToShow: 3, 233 slidesToScroll: 3, 234 infinite: false, 235 dots: true, 236 responsive: [ 237 { 238 breakpoint: 1215, 239 settings: { 240 slidesToShow: 2, 241 slidesToScroll: 2, 242 } 243 }, 244 { 245 breakpoint: 828, 246 settings: { 247 slidesToShow: 1, 248 slidesToScroll: 1, 249 } 250 }] 251 }; 252 } 253 else if(design_version.indexOf('bpkgroup2-')!=-1){ 254 home_slider_config = { 255 lazyLoad: 'ondemand', 256 slidesToShow: 1, 257 slidesToScroll: 1, 258 infinite: true, 259 dots: true, 260 adaptiveHeight:true, 261 autoplay:true, 262 autoplaySpeed:3000 263 }; 264 package_slider_config = { 265 lazyLoad: 'ondemand', 266 slidesToShow: 3, 267 slidesToScroll: 3, 268 infinite: false, 269 dots: true, 270 responsive: [ 271 { 272 breakpoint: 1220, 273 settings: { 274 slidesToShow: 2, 275 slidesToScroll: 2, 276 } 277 }, 278 { 279 breakpoint: 780, 280 settings: { 281 slidesToShow: 1, 282 slidesToScroll: 1, 283 } 284 }] 285 }; 286 news_slider_config = { 287 lazyLoad: 'ondemand', 288 slidesToShow: 3, 289 slidesToScroll: 3, 290 infinite: false, 291 dots: true, 292 responsive: [ 293 { 294 breakpoint: 1220, 295 settings: { 296 slidesToShow: 2, 297 slidesToScroll: 2, 298 } 299 }, 300 { 301 breakpoint: 780, 302 settings: { 303 slidesToShow: 1, 304 slidesToScroll: 1, 305 } 306 }] 307 }; 308 care_blog_slider_config={ 309 lazyLoad: 'ondemand', 310 slidesToShow: 1, 311 slidesToScroll: 1, 312 infinite: true, 313 dots: true, 314 autoplay:true, 315 autoplaySpeed:3000 316 }; 317 } 318 else if(design_version.indexOf('tria-')!=-1){ 319 center_slider_config = {
320 arrows: false, 321 lazyLoad: 'ondemand', 322 slidesToShow: 1, 323 slidesToScroll: 1, 324 infinite: true, 325 dots: true, 326 autoplay:true, 327 autoplaySpeed:3000 328 }; 329 center_html2_slider_config = { 330 arrows: false, 331 lazyLoad: 'ondemand', 332 slidesToShow: 1, 333 slidesToScroll: 1, 334 infinite: true, 335 dots: true, 336 autoplay:true, 337 autoplaySpeed:3000 338 }; 339 gallery_slider_config = { 340 arrows: false, 341 lazyLoad: 'ondemand', 342 slidesToShow: 1, 343 slidesToScroll: 1, 344 infinite: true, 345 dots: true, 346 autoplay:true, 347 autoplaySpeed:3000 348 }; 349 doctor_slider_config = { 350 arrows: false, 351 lazyLoad: 'ondemand', 352 slidesToShow: 1, 353 slidesToScroll: 1, 354 infinite: true, 355 dots: true, 356 autoplay:true, 357 autoplaySpeed:3000 358 }; 359 content_package_config={ 360 lazyLoad: 'ondemand', 361 slidesToShow: 3, 362 slidesToScroll: 3, 363 infinite: false, 364 dots: true, 365 responsive: [ 366 { 367 breakpoint: 1100, 368 settings: { 369 slidesToShow: 2, 370 slidesToScroll: 2, 371 } 372 }, 373 { 374 breakpoint: 780, 375 settings: { 376 slidesToShow: 1, 377 slidesToScroll: 1, 378 } 379 }] 380 }; 381 content_doctor_config={ 382 lazyLoad: 'ondemand', 383 slidesToShow: 4, 384 slidesToScroll: 4, 385 infinite: false, 386 dots: true, 387 responsive: [ 388 { 389 breakpoint: 1200, 390 settings: { 391 slidesToShow: 3, 392 slidesToScroll: 3, 393 } 394 }, 395 { 396 breakpoint: 992, 397 settings: { 398 slidesToShow: 2, 399 slidesToScroll: 2, 400 } 401 }, 402 { 403 breakpoint: 600, 404 settings: { 405 slidesToShow: 1, 406 slidesToScroll: 1, 407 } 408 }] 409 }; 410 care_blog_slider_config={ 411 lazyLoad: 'ondemand', 412 slidesToShow: 3, 413 slidesToScroll: 3, 414 infinite: false, 415 dots: true, 416 responsive: [ 417 { 418 breakpoint: 1250, 419 settings: { 420 slidesToShow: 2, 421 slidesToScroll: 2, 422 } 423 }, 424 { 425 breakpoint: 850, 426 settings: { 427 slidesToShow: 1, 428 slidesToScroll: 1, 429 } 430 }] 431 }; 432 package_slider_config={ 433 lazyLoad: 'ondemand', 434 slidesToShow: 3, 435 slidesToScroll: 3, 436 infinite: false, 437 dots: true, 438 responsive: [ 439 { 440 breakpoint: 1100, 441 settings: { 442 slidesToShow: 2, 443 slidesToScroll: 2, 444 } 445 }, 446 { 447 breakpoint: 780, 448 settings: { 449 slidesToShow: 1, 450 slidesToScroll: 1, 451 } 452 }] 453 }; 454 } 455 else if(design_version=='pyh' && design_sub_version==''){ 456 center_slider_config={ 457 lazyLoad: 'ondemand', 458 slidesToShow: 10, 459 slidesToScroll: 10, 460 infinite: false, 461 dots: false, 462 responsive: [ 463 { 464 breakpoint: 1200, 465 settings: { 466 slidesToShow: 8, 467 slidesToScroll: 8, 468 dots: false 469 } 470 }, 471 { 472 breakpoint: 1024, 473 settings: { 474 slidesToShow: 6, 475 slidesToScroll: 6, 476 dots: false 477 } 478 }, 479 { 480 breakpoint: 800, 481 settings: { 482 slidesToShow: 4, 483 slidesToScroll: 4, 484 dots: false 485 } 486 }, 487 { 488 breakpoint: 600, 489 settings: { 490 slidesToShow: 3, 491 slidesToScroll: 3, 492 dots: false 493 } 494 }, 495 { 496 breakpoint: 480, 497 settings: { 498 slidesToShow: 2, 499 slidesToScroll: 2, 500 dots: false 501 } 502 }] 503 }; 504 } 505 else{ 506 center_slider_config={ 507 lazyLoad: 'ondemand', 508 slidesToShow: 6, 509 slidesToScroll: 3, 510 infinite: false, 511 dots: false, 512 responsive: [ 513 { 514 breakpoint: 1024, 515 settings: { 516 slidesToShow: 4, 517 slidesToScroll: 4, 518 dots: false 519 } 520 }, 521 { 522 breakpoint: 600, 523 settings: { 524 slidesToShow: 3, 525 slidesToScroll: 3, 526 dots: false 527 } 528 }, 529 { 530 breakpoint: 480, 531 settings: { 532 slidesToShow: 2, 533 slidesToScroll: 2, 534 dots: false 535 } 536 }] 537 }; 538 } 539 var slickConfig = { 540 'home-slider': home_slider_config, 541 'center-slider': center_slider_config, 542 'center-html2-slider': center_html2_slider_config, 543 'gallery-slider': gallery_slider_config, 544 'doctor-slider': doctor_slider_config, 545 'package-slider': package_slider_config, 546 'room-slider': { 547 adaptiveHeight: true, 548 lazyLoad: 'ondemand', 549 slidesToShow: 1, 550 slidesToScroll: 1, 551 infinite: true, 552 dots: true 553 }, 554 'picture-slider': picture_slider_config,
555 'care_blog-slider': care_blog_slider_config, 556 'content_package-slider': content_package_config, 557 'content_doctor-slider': content_doctor_config, 558 'news-slider': news_slider_config, 559 }; 560 $('.slick-container').not('.slick-initialized').each(function(index, el) { 561 var container = $(el), 562 config = container.data('slick-config') ? slickConfig[ container.data('slick-config') ] : null; 563 if (config) { 564 $(el).slick(config); 565 } 566 }); 567 568 }, 569 570 initBpkTabs = function () { 571 572 var bpkNavTabs = $('.bpk-nav-tabs'); 573 574 bpkNavTabs.find('.slick-nav').on('click', 'a', function(event) { 575 event.preventDefault(); 576 }); 577 578 // Tab-content 579 bpkNavTabs.find('.tab-content').slick({ 580 slidesToShow: 1, 581 slidesToScroll: 1, 582 arrows: false, 583 fade: true, 584 swipe: false, 585 asNavFor: '.slick-nav' 586 }); 587 588 // Tabs nav 589 bpkNavTabs.find('.slick-nav').slick({ 590 slidesToShow: 3, 591 slidesToScroll: 1, 592 asNavFor: '.tab-content', 593 dots: false, 594 swipe: false, 595 centerMode: false, 596 focusOnSelect: true, 597 mobileFirst: true, 598 responsive: [ 599 { 600 breakpoint: 992, 601 settings: { 602 slidesToShow: 4, 603 slidesToScroll: 1 604 } 605 } 606 ] 607 }); 608 609 }, 610 611 scrollToTop = function (offset) { 612 offset = offset || 0 613 $("html, body").animate({ scrollTop: offset }, "fast"); 614 }; 615 616 return { 617 init: init, 618 scrollToTop: scrollToTop 619 }; 620 621})(jQuery); 622 623jQuery(document).ready(function($) { 624 app.init(); 625});
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.