1/*! 2 3 * IE10 viewport hack for Surface/desktop Windows 8 bug 4 5 */ 6 7// https://getbootstrap.com/getting-started/#support-ie10-width 8 9(function () { 10 11 'use strict'; 12 13 if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 14 15 var msViewportStyle = document.createElement('style'); 16 17 msViewportStyle.appendChild( 18 19 document.createTextNode( 20 21 '@-ms-viewport{width:auto!important}' 22 23 ) 24 25 ); 26 27 document.head.appendChild(msViewportStyle); 28 29 } 30 31}()); 32 33;(function($){ 34 35/*================= Global Variable Start =================*/ 36 37var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 38 39var IEbellow9 = !$.support.leadingWhitespace; 40 41var iPhoneAndiPad = /iPhone|iPod/i.test(navigator.userAgent); 42 43var isIE = navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; 44 45function isIEver () { 46 47 var myNav = navigator.userAgent.toLowerCase(); 48 49 return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false; 50 51} 52 53//if (isIEver () == 8) {} 54 55var ww = document.body.clientWidth, wh = document.body.clientHeight; 56 57var mobilePort = 800, ipadView = 1024, wideScreen = 1600; 58 59/*================= Global Variable End =================*/ 60 61var jsFolder = "https://claremontdentalgroupnh.com/wp-content/themes/theme30/js/"; 62 63var cssFolder = "https://claremontdentalgroupnh.com/wp-content/themes/theme30/css/"; 64 65 66var cssfilea = document.createElement("link"); 67cssfilea.setAttribute("href", cssFolder + 'animate.css'); 68cssfilea.setAttribute("rel", "preload"); 69cssfilea.setAttribute("as", "style"); 70document.body.appendChild(cssfilea); 71 72var cssfileaa = document.createElement("link"); 73cssfileaa.setAttribute("href", cssFolder + 'animate.css'); 74cssfileaa.setAttribute("rel", "stylesheet"); 75cssfileaa.setAttribute("type", "text/css"); 76document.body.appendChild(cssfileaa); 77 78var jsfileb = document.createElement("link"); 79jsfileb.setAttribute("href", cssFolder + 'video-js.css'); 80jsfileb.setAttribute("rel", "preload"); 81jsfileb.setAttribute("as", "style"); 82document.body.appendChild(jsfileb); 83 84var jsfilebb = document.createElement("link"); 85jsfilebb.setAttribute("href", cssFolder + 'video-js.css'); 86jsfilebb.setAttribute("rel", "stylesheet"); 87jsfilebb.setAttribute("type", "text/css"); 88document.body.appendChild(jsfilebb); 89 90/*================= On Document Load Start =================*/ 91 92$(document).ready( function(){ 93 94 95 // Custom Selectbox HeapBox 96 97 setTimeout(function() { 98 if( $("select").length){ 99 if( $("#selectpos").length){ 100 $('#selectpos').val(titlee) 101 } 102 $("select").heapbox(); 103 } 104 }, 1000); 105 106 $( ".color_selector button:nth-child(1)" ).addClass('white-div'); 107 $( ".color_selector button:nth-child(2)" ).addClass('black-div'); 108 109 110 $(".white-div").on('click', function(event){ 111 $('body').removeClass('black-div_accessibility_color'); 112 $('body').addClass('white-div_accessibility_color'); 113 $(".hmpozativesection div").removeAttr("style"); 114 $("#logo").removeAttr("style"); 115 $("#logo a").removeAttr("style"); 116 $("#logo a img").removeAttr("style"); 117 $(".teasercaption").removeAttr("style"); 118 $(".teasercaption div").removeAttr("style"); 119 $(".teasercaption h2").removeAttr("style"); 120 $(".teasercaption p").removeAttr("style"); 121 $(".teasercaption a").removeAttr("style"); 122 $(".advboxcenter .advcircleicon").css("background-color", ""); 123 }); 124 125 $(".black-div").on('click', function(event){ 126 $('body').removeClass('white-div_accessibility_color'); 127 $('body').addClass('black-div_accessibility_color'); 128 $(".hmpozativesection div").removeAttr("style"); 129 $("#logo").removeAttr("style"); 130 $("#logo a").removeAttr("style"); 131 $("#logo a img").removeAttr("style"); 132 $(".teasercaption").removeAttr("style"); 133 $(".teasercaption div").removeAttr("style"); 134 $(".teasercaption h2").removeAttr("style"); 135 $(".teasercaption p").removeAttr("style"); 136 $(".teasercaption a").removeAttr("style"); 137 $(".advboxcenter .advcircleicon").css("background-color", ""); 138 }); 139 140 141 // Select all <a> tags on the page 142 const allAnchorTags = document.querySelectorAll('a'); 143 144 // Loop through all <a> tags and add the role attribute
145 allAnchorTags.forEach((anchorTag) => { 146 anchorTag.setAttribute('role', 'button'); 147 }); 148 149 document.addEventListener('DOMContentLoaded', function() { 150 // Get all <button> elements 151 const buttons = document.querySelectorAll('button'); 152 153 // Add the role attribute to all <button> elements 154 buttons.forEach(function(button) { 155 button.setAttribute('role', 'button'); 156 }); 157 }); 158 159 $(document).ready(function(){ 160$(".booksubtitle-content a").attr('target', '_self'); 161}); 162 163 164 $(".qrcodeimg").hide(); 165 166$(".qrcodeicon").click(function () { 167 $(".qrcodeicon").hide('slow'); 168 $(".qrcodeimg").show("slide", { direction: "right" }, 1000); 169 }); 170 171$(".qrclose").click(function () { 172$(".qrcodeicon").show('slow'); 173$(".qrcodeimg").hide('slow'); 174}); 175 176 $(this).scrollTop(0); 177 178 // Get OS add Body Class 179 180 var os = ['iphone', 'ipad', 'windows', 'mac', 'linux']; 181 182 var match = navigator.appVersion.toLowerCase().match(new RegExp(os.join('|'))); 183 184 if (match) { 185 186 $('body').addClass(match[0]); 187 188 } 189 190 //Set Element to vertical center using padding 191 192 $.fn.verticalAlign = function () {return this.css("padding-top", ($(this).parent().height() - $(this).height()) / 2 + 'px');}; 193 194 $.fn.windowAlign = function () {return this.css("padding-top", ($(window).height() - $(this).height()) / 2 + 'px');}; 195 196 // Header Sticky 197 198 $(window).scroll(function() { 199 200 if (ww > 991){ 201 202 if ($(this).scrollTop() > 1){ 203 204 $('body').addClass("fixed"); 205 206 } 207 208 else{ 209 210 $('body').removeClass("fixed"); 211 212 } 213 214 } 215 216 }); 217 218 219 220 221 $('#uploadresume').simpleFileInput({ 222 223 placeholder : 'Upload Resume', 224 225 buttonText : 'Select', 226 227 allowedExts : ['pdf', 'doc', 'docx', 'pages'] 228 229 }); 230 231 232 // Service Banner Slider 233 234 if( $(".serviceBanner").length) { 235 236 var owlser = $(".serviceBanner"); 237 238 var autoplaysevice; 239 240 var autodotsevice; 241 242 if (owlser.children().length == 1) {autoplaysevice = false, autodotsevice = false} 243 244 else {autoplaysevice = true, autodotsevice = true} 245 246 owlser.owlCarousel({ 247 248 loop:autoplaysevice, 249 250 autoplay:autoplaysevice, 251 252 mouseDrag:false, 253 254 autoplayTimeout:4000, 255 256 animateOut: 'fadeOut', 257 258 autoplaySpeed:800, 259 260 smartSpeed:1200, 261 262 nav:false, 263 264 dots:autodotsevice, 265 266 items : 1, 267 268 navText : ["<i class='ion ion-ios-arrow-dropleft-circle'></i>","<i class='ion ion-ios-arrow-dropright-circle'></i>"], 269 270 autoplayHoverPause: false 271 272 }); 273 274 $('.serviceBanner .item').each(function(i){ 275 276 var $serBan = $(this).find('img').attr('src'); 277 278 $(this).css({'backgroundImage': 'url(' + $serBan +')'}); 279 280 $(this).addClass("servitem" + (i+1)); 281 282 }); 283 284 } 285 286$(document).ready(function(){ 287 288 function alignModal(){ 289 290 var modalDialog = $(this).find(".modal-dialog"); 291 292 // Applying the top margin on modal dialog to align it vertically center 293 294 modalDialog.css("margin-top", Math.max(0, ($(window).height() - modalDialog.height()) / 2)); 295 296 } 297 298 // Align modal when it is displayed 299 300 $(".modal").on("shown.bs.modal", alignModal); 301 302 // Align modal when user resize the window 303 304 $(window).on("resize", function(){ 305 306 $(".modal:visible").each(alignModal); 307 308 }); 309 310}); 311 312 if( $(".teamslider .item").length > 2) { 313 314 $('.teamslider').owlCarousel({ 315 316 loop:true, 317 318 autoplay:true, 319 320 autoplayTimeout:4000, 321 322 smartSpeed:1200, 323 324 margin:0, 325 326 nav:true, 327 328 dots:false, 329 330 responsiveClass:true, 331 332 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 333 334 responsive:{ 335 336 0:{ 337 338 items:1 339 340 }, 341 342 576:{ 343 344 items:2 345 346 }, 347 348 992:{ 349 350 items:3 351 352 } 353 354 } 355 356 }); 357 358 } 359 360 361 362 if( $(".teamslider2 .item").length > 1) { 363 364 $('.teamslider2').owlCarousel({ 365 366 loop:true, 367 368 autoplay:true, 369 370 autoplayTimeout:4000, 371 372 smartSpeed:1200, 373 374 margin:0, 375 376 nav:true, 377 378 dots:false, 379 380 responsiveClass:true, 381 382 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 383 384 responsive:{ 385 386 0:{ 387 388 items:1 389 390 }, 391 392 576:{ 393 394 items:2 395 396 } 397 398 } 399 400 }); 401 402 } 403 404 405 406 if( $(".locationdrslider .item").length > 3) { 407 408 $('.locationdrslider').owlCarousel({ 409 410 loop:true, 411 412 autoplay:true, 413 414 autoplayTimeout:4000, 415 416 smartSpeed:1200, 417 418 margin:0, 419 420 nav:true, 421 422 dots:false, 423 424 responsiveClass:true, 425 426 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 427 428 responsive:{ 429 430 0:{ 431 432 items:1 433 434 }, 435 436 576:{ 437 438 items:2 439 440 }, 441 442 992:{ 443 444 items:3 445 446 } 447 448 } 449 450 }); 451 452 } 453 454 455 456 if( $(".teamslider3 .item").length > 1) { 457 458 $('.teamslider3').owlCarousel({ 459 460 loop:true, 461 462 autoplay:true, 463 464 autoplayTimeout:4000, 465 466 smartSpeed:1200, 467 468 margin:0, 469 470 nav:true, 471 472 dots:false, 473 474 responsiveClass:true, 475 476 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 477 478 responsive:{ 479 480 0:{ 481 482 items:1 483 484 }, 485 486 576:{ 487 488 items:1 489 490 }, 491 492 992:{ 493 494 items:1 495 496 } 497 498 } 499 500 }); 501 502 } 503 504 if( $(".blogslider .item").length > 1) { 505 506 $('.blogslider').owlCarousel({ 507 508 loop:true, 509 510 autoplay:true, 511 512 autoplayTimeout:4000, 513 514 animateOut: 'fadeOut', 515 516 smartSpeed:1200, 517 518 margin:0, 519 520 nav:false, 521 522 dots:true, 523 524 responsiveClass:true, 525 526 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 527 528 responsive:{ 529 530 0:{ 531 532 items:1 533 534 }, 535 536 576:{ 537 538 items:2 539 540 }, 541 542 992:{ 543 544 items:3 545 546 } 547 548 } 549 550 }); 551 552 } 553 554 555 556 if( $(".promotion-silder .item").length > 2) { 557 558 $('.promotion-silder').owlCarousel({ 559 560 loop:true, 561 562 autoplay:true, 563 564 autoplayTimeout:4000, 565 566 smartSpeed:1200, 567 568 margin:2, 569 570 nav:false, 571 572 dots:false, 573 574 responsiveClass:true, 575 576 responsive:{ 577 578 0:{ 579 580 items:1 581 582 }, 583 584 576:{ 585 586 items:2 587 588 }, 589 590 992:{ 591 592 items:2 593 594 } 595 596 } 597 598 }); 599 600 } 601 602 603 604 if( $(".promosilder .item").length > 2) { 605 606 $('.promosilder').owlCarousel({ 607 608 loop:true 609 610 ,autoplay:true 611 612 ,autoplayTimeout:4000 613 614 ,smartSpeed:1200 615 616 ,mouseDrag:true 617 618 ,margin:0 619 620 ,nav:false 621 622 ,dots:false 623 624 ,responsive:{ 625 626 0:{ 627 628 items:1 629 630 ,dots:true 631 632 }, 633 634 576:{ 635 636 items:2 637 638 ,dots:true 639 640 }, 641 642 992:{ 643 644 items:3 645 646 ,dots:false 647 648 } 649 650 } 651 652 }) 653 654 } 655 656 657 658 if( $(".planssilderlist .item").length > 4) { 659 660 $('.planssilderlist').owlCarousel({ 661 662 loop:true, 663 664 autoplay:false, 665 666 autoplayTimeout:4000, 667 668 smartSpeed:1200, 669 670 mouseDrag:true, 671 672 margin:5, 673 674 nav:false, 675 676 dots:false, 677 678 responsive:{ 679 680 0:{ 681 682 items:1 683 684 }, 685 686 576:{ 687 688 items:2 689 690 }, 691 692 992:{ 693 694 items:3 695 696 }, 697 698 1200:{ 699 700 items:4 701 702 } 703 704 } 705 706 }); 707 708 } 709 710 711 712 if( $(".planssilderlist-four .item").length > 3) { 713 714 //if (ww < 1200){ 715 716 $('.planssilderlist-four').owlCarousel({ 717 718 loop:true, 719 720 autoplay:false, 721 722 autoplayTimeout:4000, 723 724 smartSpeed:1200, 725 726 mouseDrag:true, 727 728 margin:5, 729 730 nav:false, 731 732 dots:false, 733 734 responsive:{ 735 736 0:{ 737 738 items:1 739 740 }, 741 742 576:{ 743 744 items:2 745 746 }, 747 748 992:{ 749 750 items:3 751 752 } 753 754 } 755 756 }); 757 758 //} 759 760 } 761 762 763 764 if( $(".planssilderlist-three .item").length > 2) { 765 766 if (ww < 992){ 767 768 $('.planssilderlist-three').owlCarousel({ 769 770 loop:true, 771 772 autoplay:false, 773 774 autoplayTimeout:4000, 775 776 smartSpeed:1200, 777 778 mouseDrag:true, 779 780 margin:5, 781 782 nav:false, 783 784 dots:false, 785 786 responsive:{ 787 788 0:{ 789 790 items:1 791 792 }, 793 794 576:{ 795 796 items:2 797 798 } 799 800 } 801 802 }); 803 804 } 805 806 } 807 808 809 810 if( $(".planssilderlist-two .item").length > 1) { 811 812 if (ww < 576){ 813 814 $('.planssilderlist-two').owlCarousel({ 815 816 loop:true, 817 818 autoplay:false, 819 820 autoplayTimeout:4000, 821 822 smartSpeed:1200, 823 824 mouseDrag:true, 825 826 margin:5, 827 828 nav:false, 829 830 dots:false, 831 832 responsive:{ 833 834 0:{ 835 836 items:1 837 838 } 839 840 } 841 842 }); 843 844 } 845 846 } 847 848 849 850 if( $(".testimonialslider .item").length > 2) { 851 852 $('.testimonialslider').owlCarousel({ 853 854 loop:true 855 856 ,autoplay:false 857 858 ,autoplayTimeout:4000 859 860 ,smartSpeed:1200 861 862 ,mouseDrag:true 863 864 ,margin:0 865 866 ,navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"] 867 868 ,nav:true 869 870 ,dots:false 871 872 ,responsive:{ 873 874 0:{ 875 876 items:1 877 878 } 879 880 } 881 882 }); 883 884 } 885 886 if( $(".galleryslider .item").length > 2) { 887 888 $('.galleryslider').owlCarousel({ 889 890 loop:true, 891 892 autoplay:true, 893 894 autoplayTimeout:4000, 895 896 smartSpeed:1200, 897 898 margin:0, 899 900 nav:true, 901 902 dots:false, 903 904 responsiveClass:true, 905 906 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 907 908 responsive:{ 909 910 0:{ 911 912 items:1 913 914 }, 915 916 992:{ 917 918 items:2 919 920 } 921 922 } 923 924 }); 925 926 } 927 928 if( $(".facilitiesilser .item").length > 2) { 929 930 $('.facilitiesilser').owlCarousel({ 931 932 loop:true, 933 934 autoplay:true, 935 936 mouseDrag:true, 937 938 touchDrag:true, 939 940 autoplayTimeout:4000, 941 942 smartSpeed:1200, 943 944 margin:0, 945 946 nav:true, 947 948 lazyLoad:true, 949 950 dots:true, 951 952 responsiveClass:true, 953 954 autoplayHoverPause: true, 955 956 navText : ["<i class='ion ion-ios-arrow-dropleft-circle'></i>","<i class='ion ion-ios-arrow-dropright-circle'></i>"], 957 958 responsive:{ 959 960 0:{ 961 962 items:1, 963 dots:false 964 965 }, 966 967 576:{ 968 969 items:2, 970 dots:false 971 972 973 }, 974 975 992:{ 976 977 items:4, 978 dots:true 979 980 } 981 982 } 983 984 }); 985 986 } 987 988 if( $(".technologyslider .item").length > 1) { 989 990 $('.technologyslider').owlCarousel({ 991 992 loop:true, 993 994 autoplay:true, 995 996 autoplayTimeout:4000, 997 998 smartSpeed:1200, 999 1000 margin:0, 1001 1002 nav:true, 1003 1004 dots:false, 1005 1006 responsiveClass:true, 1007 1008 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1009 1010 responsive:{ 1011 1012 0:{ 1013 1014 items:1 1015 1016 }, 1017 1018 576:{ 1019 1020 items:1 1021 1022 }, 1023 1024 992:{ 1025 1026 items:2 1027 1028 } 1029 1030 } 1031 1032 }); 1033 1034 } 1035 1036 if( $(".medialider .item").length > 2) { 1037 1038 $('.medialider').owlCarousel({ 1039 1040 loop:true, 1041 1042 autoplay:true, 1043 1044 autoplayTimeout:4000, 1045 1046 smartSpeed:1200, 1047 1048 margin:0, 1049 1050 nav:true, 1051 1052 dots:false, 1053 1054 responsiveClass:true, 1055 1056 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1057 1058 responsive:{ 1059 1060 0:{ 1061 1062 items:1 1063 1064 }, 1065 1066 576:{ 1067 1068 items:1 1069 1070 }, 1071 1072 992:{ 1073 1074 items:2 1075 1076 } 1077 1078 } 1079 1080 }); 1081 1082 } 1083 1084 if( $(".eventmediaslider .item").length > 2) { 1085 1086 $('.eventmediaslider').owlCarousel({ 1087 1088 loop:true 1089 1090 ,autoplay:true 1091 1092 ,autoplayTimeout:4000 1093 1094 ,smartSpeed:1200 1095 1096 ,mouseDrag:true 1097 1098 ,margin:0 1099 1100 ,nav:false 1101 1102 ,dots:false 1103 1104 ,responsive:{ 1105 1106 0:{ 1107 1108 items:1 1109 1110 ,dots:true 1111 1112 }, 1113 1114 576:{ 1115 1116 items:2 1117 1118 ,dots:true 1119 1120 }, 1121 1122 992:{ 1123 1124 items:3 1125 1126 ,dots:false 1127 1128 } 1129 1130 } 1131 1132 }) 1133 1134 }; 1135 1136 if( $(".hmserviceslider .item").length > 2) { 1137 1138 $('.hmserviceslider').owlCarousel({ 1139 1140 loop:true, 1141 1142 autoplay:true, 1143 1144 mouseDrag:true, 1145 1146 autoplayTimeout:4000, 1147 1148 smartSpeed:1200, 1149 1150 margin:15, 1151 1152 nav:true, 1153 1154 dots:false, 1155 1156 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1157 1158 responsive:{ 1159 1160 0:{ 1161 1162 items:1 1163 1164 }, 1165 1166 576:{ 1167 1168 items:2 1169 1170 }, 1171 1172 992:{ 1173 1174 items:2 1175 1176 } 1177 1178 } 1179 1180 }); 1181 1182 } 1183 1184 if( $(".seviceserviceslider .item").length > 4) { 1185 1186 $('.seviceserviceslider').owlCarousel({ 1187 1188 loop:true, 1189 1190 autoplay:true, 1191 1192 mouseDrag:true, 1193 1194 touchDrag:true, 1195 1196 autoplayTimeout:4000, 1197 1198 smartSpeed:1200, 1199 1200 margin:15, 1201 1202 nav:true, 1203 1204 dots:true, 1205 1206 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1207 1208 responsive:{ 1209 1210 0:{ 1211 1212 items:1, 1213 dots:false 1214 1215 }, 1216 1217 576:{ 1218 1219 items:2, 1220 dots:false 1221 1222 }, 1223 1224 992:{ 1225 1226 items:3, 1227 dots:true 1228 1229 }, 1230 1231 1200:{ 1232 1233 items:4, 1234 dots:true 1235 1236 } 1237 1238 } 1239 1240 }); 1241 1242 } 1243 1244 if( $(".multiserviceslider .item").length > 3) { 1245 1246 $('.multiserviceslider').owlCarousel({ 1247 1248 loop:true, 1249 1250 autoplay:true, 1251 1252 mouseDrag:true, 1253 1254 autoplayTimeout:4000, 1255 1256 smartSpeed:1200, 1257 1258 margin:30, 1259 1260 nav:true, 1261 1262 dots:false, 1263 1264 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1265 1266 responsive:{ 1267 1268 0:{ 1269 1270 items:1 1271 1272 }, 1273 1274 576:{ 1275 1276 items:2 1277 1278 }, 1279 1280 992:{ 1281 1282 items:3 1283 1284 } 1285 1286 } 1287 1288 }); 1289 1290 } 1291 1292 if( $(".locatgalleryslider .item").length > 2) { 1293 1294 $('.locatgalleryslider').owlCarousel({ 1295 1296 loop:true, 1297 1298 autoplay:true, 1299 1300 mouseDrag:true, 1301 1302 autoplayTimeout:4000, 1303 1304 smartSpeed:1200, 1305 1306 margin:30, 1307 1308 nav:true, 1309 1310 dots:false, 1311 1312 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1313 1314 responsive:{ 1315 1316 0:{ 1317 1318 items:1 1319 1320 }, 1321 1322 480:{ 1323 1324 items:2 1325 1326 }, 1327 1328 768:{ 1329 1330 items:1 1331 1332 }, 1333 1334 992:{ 1335 1336 items:2 1337 1338 }, 1339 1340 1199:{ 1341 1342 items:2 1343 1344 } 1345 1346 } 1347 1348 }); 1349 1350 } 1351 1352 if( $(".hmspserviceslider .item").length > 1) { 1353 1354 $('.hmspserviceslider').owlCarousel({ 1355 1356 loop:true, 1357 1358 autoplay:true, 1359 1360 mouseDrag:true, 1361 1362 autoplayTimeout:4000, 1363 1364 autoplaySpeed:800, 1365 1366 smartSpeed:1200, 1367 1368 nav:true, 1369 1370 dots:false, 1371 1372 items : 1, 1373 1374 navText : ["<i class='ion ion-ios-arrow-round-back'></i>","<i class='ion ion-ios-arrow-round-forward'></i>"], 1375 1376 autoplayHoverPause: false 1377 1378 }); 1379 1380 } 1381 1382 if( $(".prmoplabslider .item").length) { 1383 1384 var owl = $(".prmoplabslider"); 1385 1386 var autoplay; 1387 1388 var autodot; 1389 1390 var autonav; 1391 1392 if (owl.children().length == 3) {autoplay = false, autodot = false, autonav = false} 1393 1394 else {autoplay = true, autodot = true, autonav = false} 1395 1396 owl.owlCarousel({ 1397 1398 loop:true, 1399 1400 autoplay:false, 1401 1402 mouseDrag:true, 1403 1404 autoplayTimeout:4000, 1405 1406 smartSpeed:1200, 1407 1408 margin:0, 1409 1410 nav:autonav, 1411 1412 dots:autodot, 1413 1414 slideBy: 1, 1415 1416 navText : ["",""], 1417 1418 responsive:{ 1419 1420 0:{ 1421 1422 items:1, 1423 1424 dots:true, 1425 1426 autoplay:true 1427 1428 }, 1429 1430 576:{ 1431 1432 items:2, 1433 1434 dots:true, 1435 1436 autoplay:true 1437 1438 }, 1439 1440 992:{ 1441 1442 items:3 1443 1444 } 1445 1446 } 1447 1448 }); 1449 1450 } 1451 1452 if( $(".hmlogosilder .item").length > 3) { 1453 1454 $('.hmlogosilder').owlCarousel({ 1455 1456 loop:true, 1457 1458 autoplay:true, 1459 1460 mouseDrag:true, 1461 1462 autoplayTimeout:4000, 1463 1464 smartSpeed:1200, 1465 1466 margin:0, 1467 1468 nav:false, 1469 1470 dots:false, 1471 1472 responsive:{ 1473 1474 0:{ 1475 1476 items:1 1477 1478 }, 1479 1480 420:{ 1481 1482 items:2 1483 1484 }, 1485 1486 768:{ 1487 1488 items:3 1489 1490 }, 1491 1492 992:{ 1493 1494 items:4 1495 1496 } 1497 1498 } 1499 1500 }); 1501 1502 } 1503 1504 // Responsive Tabing Script 1505 1506 if( $(".restab").length) { 1507 1508 $('.restab').responsiveTabs({ 1509 1510 rotate: false, 1511 1512 startCollapsed: 'tab', //accordion 1513 1514 collapsible: 'tab', //accordion 1515 1516 scrollToAccordion: true 1517 1518 }); 1519 1520 } 1521 1522 if( $(".restabver").length) { 1523 1524 $('.restabver').responsiveTabs({ 1525 1526 rotate: false, 1527 1528 startCollapsed: 'tab', //accordion 1529 1530 collapsible: 'tab', //accordion 1531 1532 scrollToAccordion: true, 1533 1534 active:1 1535 1536 }); 1537 1538 } 1539 1540 if( $(".accordion").length){ 1541 1542 $('.accordionfaqs .accordionrow .acclink').addClass("active"); 1543 1544 $('.accordionfaqs .accordionrow .accord-detail').show(); 1545 1546 $('.accordion .acclink').click(function(){ 1547 1548 if ($(this).hasClass('active')) { 1549 1550 $(this).removeClass('active'); 1551 1552 $(this).next().slideUp(); 1553 1554 } else { 1555 1556 //if ($('body').hasClass('desktop')) { 1557 1558 // $('.accordion .acclink').removeClass('active'); 1559 1560 // $('.accordion .accord-detail').slideUp(); 1561 1562 //} 1563 1564 $(this).addClass('active'); 1565 1566 $(this).next().slideDown(); 1567 1568 } 1569 1570 return false;
1571 1572 }); 1573 1574 } 1575 1576 if( $(".tableData").length > 0){ 1577 1578 $('.tableData').each(function(){ 1579 1580 $(this).wrap('<div class="tableOut"></div>'); 1581 1582 $(this).find('tr').each(function(){ 1583 1584 $(this).find('td:first').addClass('firstTd'); 1585 1586 $(this).find('th:first').addClass('firstTh'); 1587 1588 $(this).find('th:last').addClass('lastTh'); 1589 1590 }); 1591 1592 $(this).find('tr:last').addClass('lastTr'); 1593 1594 $(this).find('tr:even').addClass('evenRow'); 1595 1596 $(this).find('tr:nth-child(2)').find('th:first').removeClass('firstTh'); 1597 1598 }); 1599 1600 } 1601 1602 // Responsive Table 1603 1604 if( $(".responsiveTable").length){ 1605 1606 $(".responsiveTable").each(function(){ 1607 1608 $(this).find('td').removeAttr('width'); 1609 1610 //$(this).find('td').removeAttr('align'); 1611 1612 var head_col_count = $(this).find('tr th').size(); 1613 1614 // loop which replaces td 1615 1616 for ( i=0; i <= head_col_count; i++ ) { 1617 1618 // head column label extraction 1619 1620 var head_col_label = $(this).find('tr th:nth-child('+ i +')').text(); 1621 1622 // replaces td with <div class="column" data-label="label"> 1623 1624 $(this).find('tr td:nth-child('+ i +')').attr("data-label", head_col_label); 1625 1626 } 1627 1628 }); 1629 1630 } 1631 1632 // Responsive Table 1633 1634 if( $(".tableScroll").length){ 1635 1636 $(".tableScroll").each(function(){ 1637 1638 $(this).wrap('<div class="tableOut"></div>'); 1639 1640 }); 1641 1642 } 1643 1644 // Inner Page Banner BG Image 1645 1646 if( $(".innerbanner").length){ 1647 1648 $('.innerbanner').each(function(){ 1649 1650 var $innBan = $(this).find('img').attr('src'); 1651 1652 $(this).css({'backgroundImage': 'url(' + $innBan +')'}); 1653 1654 }); 1655 1656 } 1657 1658 1659 if( $(".mfpyoutube").length){ 1660 1661 //$('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 1662 1663 $('.mfpyoutube').magnificPopup({ 1664 1665 type: 'iframe', 1666 1667 mainClass: 'mfp-fade', 1668 1669 removalDelay: 160, 1670 1671 preloader: false, 1672 1673 fixedContentPos: false 1674 1675 }); 1676 1677 } 1678 1679 if( $(".mfpgallery").length){ 1680 1681 $('.mfpgallery').magnificPopup({ 1682 1683 delegate: 'a', 1684 1685 type: 'image', 1686 1687 gallery: { 1688 1689 enabled:true 1690 1691 } 1692 1693 }); 1694 1695 } 1696 1697 if( $(".mfpinline").length){ 1698 1699 $('.mfpinline').magnificPopup({ 1700 1701 type:'inline', 1702 1703 midClick: true 1704 1705 }); 1706 1707 } 1708 1709 // Back to Top function 1710 1711 if( $("#backtotop").length){ 1712 1713 $(window).scroll(function(){ 1714 1715 if ($(window).scrollTop()>120){ 1716 1717 $('#backtotop').fadeIn('250').css('display','block');} 1718 1719 else { 1720 1721 $('#backtotop').fadeOut('250');} 1722 1723 }); 1724 1725 $('#backtotop').click(function(){ 1726 1727 $('html, body').animate({scrollTop:0}, '200'); 1728 1729 return false; 1730 1731 }); 1732 1733 } 1734 1735 // For device checking 1736 1737 if (isMobile === false) { 1738 1739 } 1740 1741 if( $(".litebox").length){ 1742 1743 $('.litebox').liteBox(); 1744 1745 } 1746 1747 if( $(".equalHeights").length){ 1748 1749 $('.equalHeights > div').equalHeight(); 1750 1751 } 1752 1753 /*================= On Document Load and Resize Start =================*/ 1754 1755 $(window).on('resize', function () { 1756 1757 ww = document.body.clientWidth; 1758 1759 wh = document.body.clientHeight; 1760 1761 $('.vCenter').each(function () {$(this).verticalAlign();}); 1762 1763 $('.wCenter').each(function () {$(this).windowAlign();}); 1764 1765 if (ww < 992){ 1766 1767 $('body').removeClass("fixed"); 1768 1769 } 1770 1771 }).trigger('resize'); 1772 1773 /*================= On Document Load and Resize End =================*/ 1774 1775 /*Navigation */ 1776 1777 if($("#nav").length){ 1778 1779 /*if($(".toggleMenu").length == 0){ 1780 1781 $("#mainNav").prepend('<a href="#" class="toggleMenu"><span class="mobileMenu">Menu</span><span class="iconBar"></span></a>'); 1782 1783 }*/ 1784 1785 $('.menu-icon').on('click', function(e){ 1786 1787 e.preventDefault(); 1788 1789 $(this).toggleClass("open"); 1790 1791 $('#nav').slideToggle('slow'); 1792 1793 return false; 1794 1795 }); 1796 1797 $("#nav li a").each(function() { 1798 1799 if ($(this).next().length) { 1800 1801 $(this).parent().addClass("parent"); 1802 1803 } 1804 1805 }); 1806 1807 $("#nav li.parent").each(function () { 1808 1809 if ($(this).has(".arrowclick").length <= 0) { 1810 1811 $(this).append('<i class="arrowclick"> </i>'); 1812 1813 } 1814 1815 }); 1816 1817 $(".arrowclick").on('click', function() { 1818 1819 if ($(this).hasClass("active")) { 1820 1821 if ($(this).parents("li").hasClass("parent")) { 1822 1823 $(this).closest("li").find(".sub-menu").slideUp(250); 1824 1825 $(this).removeClass("active"); 1826 1827 } else { 1828 1829 } 1830 1831 } else { 1832 1833 if ($(this).parents("li").hasClass("parent")) { 1834 1835 } else { 1836 1837 $(".sub-menu").slideUp(250); 1838 1839 $(".arrowclick").removeClass("active"); 1840 1841 } 1842 1843 $(this).closest("li").find(".sub-menu:first").slideDown(250); 1844 1845 $(this).addClass("active"); 1846 1847 } 1848 1849 }); 1850 1851 /*$(".arrowclick").click(function() { 1852 1853 if ($(this).hasClass("active")) { 1854 1855 $(".sub-menu").slideUp(250); 1856 1857 $(".arrowclick").removeClass("active"); 1858 1859 } else { 1860 1861 $(".sub-menu").slideUp(250); 1862 1863 $(".arrowclick").removeClass("active"); 1864 1865 $(this).closest("li").find(".sub-menu").slideDown(250); 1866 1867 $(this).addClass("active"); 1868 1869 } 1870 1871 });*/ 1872 1873 } 1874 1875}); 1876 1877/*================= On Document Load End =================*/ 1878 1879/*================= On Window Resize Start =================*/ 1880 1881$(window).bind('resize orientationchange', function() { 1882 1883 $('.vCenter').each(function () {$(this).verticalAlign();}); 1884 1885 $('.wCenter').each(function () {$(this).windowAlign();}); 1886 1887}); 1888 1889/*================= On Window Resize End =================*/ 1890 1891/*================= On Window Load Start =================*/ 1892 1893$(window).load(function() { 1894setTimeout(function() { 1895 if( $("select").length){ 1896 if( $("#selectpos").length){ 1897 $('#selectpos').val(titlee) 1898 } 1899 $("select").heapbox(); 1900 } 1901 }, 5000); 1902setTimeout(function(){ 1903 1904 $(this).scrollTop(0); 1905 1906},100); 1907 1908 1909$('#container a').each(function(){ 1910 1911 var domaincustname= this.protocol + "//" + (this.hostname || this.pathname); 1912 1913 //alert("domain"+domaincustname); 1914 1915 if(domaincustname == "https://www.claremontdentalgroupnh.com" || domaincustname == "tel://603-542-5197" || domaincustname == "mailto://[email protected]"){ 1916 $(this).removeAttr("target","_blank"); 1917 }else{ 1918 //alert(domaincustname); 1919 $(this).attr('target','_blank'); 1920 1921 } 1922 1923 $('a[href$=".pdf"]').attr('target', '_blank'); 1924 1925 }); 1926 1927 1928}); 1929 1930/*================= On Document Load End =================*/ 1931 1932/*================= On Window Load Start =================*/ 1933 1934$(window).load(function() { 1935 1936 if($('.datepicker').length){ 1937 1938 $( ".datepicker" ).datepicker({ 1939 1940 dateFormat:"mm/dd/yy" 1941
1942 ,changeMonth: false 1943 1944 ,changeYear: false 1945 1946 ,showOn: "both" 1947 1948 ,buttonText: "<span class='sprite calIcon'></span>" 1949 1950 ,shortYearCutoff: 50 1951 1952 ,minDate: new Date() 1953 1954 ,beforeShow: function (textbox, instance) { 1955 1956 instance.dpDiv.css({ 1957 1958 marginTop: /*(textbox.offsetHeight)*/ 0 + 'px' 1959 1960 ,marginLeft: 0 + 'px' 1961 1962 }); 1963 1964 } 1965 1966 }).attr("readonly", "readonly"); 1967 1968 } 1969 1970if($('.dobpicker').length){ 1971 1972 $( ".dobpicker" ).datepicker({ 1973 1974 dateFormat : 'mm/dd/yy', 1975 1976 changeMonth : true, 1977 1978 changeYear : true, 1979 1980 buttonText: "<span class='sprite calIcon'></span>", 1981 1982 yearRange: '-100y:c+nn', 1983 1984 maxDate: '-1d' 1985 1986 }).attr("readonly", "readonly"); 1987 1988 } 1989 1990// lazy start 1991 1992if( $(".lazy").length) { 1993 1994 $(function(){ 1995 1996 $('.lazy').lazy({ 1997 1998 afterLoad: function(element){ 1999 2000 var imgEl = document.getElementsByTagName('img'); 2001 2002 for (var i=0; i<imgEl.length; i++) { 2003 2004 if(imgEl[i].getAttribute('data-src')) { 2005 2006 imgEl[i].setAttribute('src',imgEl[i].getAttribute('data-src')); 2007 2008 imgEl[i].removeAttribute('data-src'); //use only if you need to remove data-src attribute after setting src 2009 2010 } 2011 2012 } 2013 2014 $('.vCenter').each(function () {$(this).verticalAlign();}); 2015 2016 } 2017 2018 }); 2019 2020 }); 2021 2022 } 2023 2024// lazy close 2025 2026}); 2027 2028/*================= On Document Load End =================*/ 2029 2030})(jQuery); 2031 2032 2033 2034(function(){ 2035var AMP_KEY="8SBsKXbHdSmbaLhIdOHPqLQiwoZTsBC";window._AMP_CONF=window._AMP_CONF || {};window._AMP_CONF.key=AMP_KEY; 2036var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; 2037s1.async=true; 2038s1.src='https://embed.simplifeye.co/8SBsKXbHdSmbaLhIdOHPqLQiwoZTsBC/embed'; 2039s1.charset='UTF-8'; 2040s1.setAttribute('crossorigin','*'); 2041s0.parentNode.insertBefore(s1,s0); 2042})(); 2043
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.