1jQuery( 'document' ).ready(function() { 2 3 //jQuery('.page-id-333 #main > .featured-videos:first-child .section-title').replaceWith( "<h1 class='section-title'>" + jQuery( '.page-id-333 #main > .featured-videos:first-child .section-title' ).text() + "</h1>" ); 4 5 // Banner - Featured Pages 6 jQuery(".banner .content .title").html(function () { 7 var text = jQuery(this).text().trim().split(" "); 8 var first = text.shift(); 9 return (text.length > 0 ? "<span class='highlight'>" + first + "</span> " : first) + text.join(" "); 10 }); 11 12 // IMAGES 13 jQuery('img').addClass('img-fluid'); 14 15 // MEET THE TEAM 16 jQuery('#doctor-tab .nav-item-doctor:first-child .nav-link').addClass('active'); 17 jQuery('#doctor-tabContent .tab-pane-doctor:first-child').addClass('show active'); 18 jQuery('#doctor-info-tab .nav-item-doctor-info:first-child .nav-link').addClass('active'); 19 jQuery('#doctor-info-tabContent .tab-pane-doctor-info:first-child').addClass('show active'); 20 21 // PARALLAX EFFECT 22 jQuery(function () { 23 24 // Cache the window object 25 var jQuerywindow = jQuery(window); 26 27 // Parallax background effect 28 // Tutorial: http://code.tutsplus.com/tutorials/a-simple-parallax-scrolling-technique--net-27641 29 30 jQuery('section[data-type="background"]').each(function () { 31 32 var jQuerybgobj = jQuery(this); // assigning the object 33 34 jQuery(window).scroll(function () { 35 36 // scroll the background at var speed 37 // the yPos is a negative value because we're scrolling it UP! 38 39 var yPos = -(jQuerywindow.scrollTop() / jQuerybgobj.data('speed')); 40 41 // Put together our final background position 42 var coords = '50% ' + yPos + 'px'; 43 44 // Move the background 45 jQuerybgobj.css({ backgroundPosition: coords }); 46 47 }); // end window scroll 48 49 }); 50 51 }); 52 53 // Slick - As Seen on TV 54 jQuery('.as-seen-on-tv .items').slick({ 55 infinite: false, 56 speed: 300, 57 slidesToShow: 3, 58 slidesToScroll: 1, 59 autoplay: true, 60 autoplaySpeed: 2000, 61 speed: 500, 62 responsive: [ 63 { 64 breakpoint: 1024, 65 settings: { 66 slidesToShow: 3, 67 slidesToScroll: 3, 68 infinite: true, 69 dots: true 70 } 71 }, 72 { 73 breakpoint: 600, 74 settings: { 75 slidesToShow: 2, 76 slidesToScroll: 2 77 } 78 }, 79 { 80 breakpoint: 480, 81 settings: { 82 slidesToShow: 1, 83 slidesToScroll: 1 84 } 85 } 86 // You can unslick at a given breakpoint now by adding: 87 // settings: "unslick" 88 // instead of a settings object 89 ] 90 }); 91 92 93 // Slick - Home Slider 94 jQuery('.home-slider-items').slick({ 95 arrows: false 96 }); 97 98 // Slick - Testimonials 99 jQuery('.testimonials .items').slick({ 100 arrows: false, 101 autoplay: 'true', 102 adaptiveHeight: true 103 }); 104 105 jQuery(function () { 106 jQuery('[data-toggle="tooltip"]').tooltip() 107 }) 108 109 // Back To Top 110 var scrollTrigger = 100, // px 111 offset_opacity = 800, // px 112 backToTop = function () { 113 var scrollTop = jQuery(window).scrollTop(); 114 115 if (scrollTop > scrollTrigger) { 116 jQuery('#back-to-top').addClass('show'); 117 } else { 118 jQuery('#back-to-top').removeClass('show'); 119 } 120 121 if (scrollTop > offset_opacity) { 122 jQuery('#back-to-top').addClass('fade-out'); 123 } else { 124 jQuery('#back-to-top').removeClass('fade-out'); 125 } 126 }; 127 //backToTop(); 128 129 jQuery(window).on('scroll', function () { 130 backToTop(); 131 });
132 133 jQuery('#back-to-top').on('click', function (e) { 134 e.preventDefault(); 135 jQuery('html,body').animate({ 136 scrollTop: 0 137 }, 700); 138 }); 139 140 // MOBILE MENU 141 var shrink = 200; 142 jQuery(window).scroll(function () { 143 var scroll = getCurrentScroll(); 144 if (scroll >= shrink) { 145 jQuery('.menu-on-scroll #primary-menu').show().addClass('animated fadeInDown'); 146 } else { 147 jQuery('.menu-on-scroll #primary-menu').hide(); 148 } 149 }); 150 151 function getCurrentScroll() { 152 return window.pageYOffset || document.documentElement.scrollTop; 153 } 154 155 var url = document.URL; 156 var hash = url.substring(url.indexOf('#')); 157 158 jQuery(".nav").find("li div").each(function (key, val) { 159 if (hash == jQuery(val).attr('href')) { 160 jQuery(val).click(); 161 } 162 163 jQuery(val).click(function (ky, vl) { 164 location.hash = jQuery(this).attr('href'); 165 }); 166 }); 167 168}); 169 170function scaleCaptcha(a) { 171 var c = jQuery(".ginput_recaptcha").width(); 172 if (304 > c) { 173 var e = c / 304; 174 jQuery(".ginput_recaptcha>div").css({ 175 transform: "scale(" + e + ")" 176 }) 177 } 178} 179jQuery(function () { 180 scaleCaptcha(), jQuery(window).resize(jQuery.throttle(100, scaleCaptcha)) 181}); 182 183 184(function (b, c) { 185 var $ = b.jQuery || b.Cowboy || (b.Cowboy = {}), 186 a; 187 $.throttle = a = function (e, f, j, i) { 188 var h, d = 0; 189 if (typeof f !== "boolean") { 190 i = j; 191 j = f; 192 f = c 193 } 194 195 function g() { 196 var o = this, 197 m = +new Date() - d, 198 n = arguments; 199 200 function l() { 201 d = +new Date(); 202 j.apply(o, n) 203 } 204 205 function k() { 206 h = c 207 } 208 if (i && !h) { 209 l() 210 } 211 h && clearTimeout(h); 212 if (i === c && m > e) { 213 l() 214 } else { 215 if (f !== true) { 216 h = setTimeout(i ? k : l, i === c ? e - m : e) 217 } 218 } 219 } 220 if ($.guid) { 221 g.guid = j.guid = j.guid || $.guid++ 222 } 223 return g 224 }; 225 $.debounce = function (d, e, f) { 226 return f === c ? a(d, e, false) : a(d, f, e !== false) 227 } 228})(this); 229 230/** 231 * File skip-link-focus-fix.js. 232 * 233 * Helps with accessibility for keyboard only users. 234 * 235 * Learn more: https://git.io/vWdr2 236 */ 237(function () { 238 var isIe = /(trident|msie)/i.test(navigator.userAgent); 239 240 if (isIe && document.getElementById && window.addEventListener) { 241 window.addEventListener('hashchange', function () { 242 var id = location.hash.substring(1), 243 element; 244 245 if (!(/^[A-z0-9_-]+$/.test(id))) { 246 return; 247 } 248 249 element = document.getElementById(id); 250 251 if (element) { 252 if (!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))) { 253 element.tabIndex = -1; 254 } 255 256 element.focus(); 257 } 258 }, false); 259 } 260})(); 261 262(function (b, c) { 263 var $ = b.jQuery || b.Cowboy || (b.Cowboy = {}), 264 a; 265 $.throttle = a = function (e, f, j, i) { 266 var h, d = 0; 267 if (typeof f !== "boolean") { 268 i = j; 269 j = f; 270 f = c 271 } 272 273 function g() { 274 var o = this, 275 m = +new Date() - d, 276 n = arguments; 277 278 function l() { 279 d = +new Date(); 280 j.apply(o, n) 281 } 282 283 function k() { 284 h = c 285 } 286 if (i && !h) { 287 l() 288 } 289 h && clearTimeout(h); 290 if (i === c && m > e) { 291 l() 292 } else { 293 if (f !== !0) { 294 h = setTimeout(i ? k : l, i === c ? e - m : e) 295 } 296 } 297 } 298 if ($.guid) { 299 g.guid = j.guid = j.guid || $.guid++ 300 } 301 return g 302 }; 303 $.debounce = function (d, e, f) { 304 return f === c ? a(d, e, !1) : a(d, f, e !== !1) 305 } 306})(this)
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.