Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function( $ ){
- var headerhldr = $('.wpex-sticky-header-holder');
- $( window ).scroll(function() {
- if(headerhldr.hasClass('is-sticky')){
- $('.wpex-sticky-header-holder a.overlay-header-logo').html('<img src="https://745078.smushcdn.com/1283475/wp-content/uploads/logo-black-cali.png?lossy=1&strip=1&webp=1" alt="Vacation Rental Demo" class="logo-img" data-no-retina="data-no-retina" height="28" srcset="https://745078.smushcdn.com/1283475/wp-content/uploads/logo-black-cali-150x23.png?lossy=1&strip=1&webp=1 150w, https://745078.smushcdn.com/1283475/wp-content/uploads/logo-black-cali-300x46.png?lossy=1&strip=1&webp=1 300w, https://745078.smushcdn.com/1283475/wp-content/uploads/logo-black-cali.png?lossy=1&strip=1&webp=1 362w" sizes="(max-width: 362px) 100vw, 362px" data-resize-detection="0">');
- } else if(headerhldr.hasClass('not-sticky')){
- $('.wpex-sticky-header-holder a.overlay-header-logo').html('<img src="https://745078.smushcdn.com/1283475/wp-content/uploads/logo-white-cali.png?lossy=1&strip=1&webp=1" alt="Vacation Rental Demo" class="logo-img" data-no-retina="data-no-retina" height="28" srcset="https://745078.smushcdn.com/1283475/wp-content/uploads/logo-white-cali-150x23.png?lossy=1&strip=1&webp=1 150w, https://745078.smushcdn.com/1283475/wp-content/uploads/logo-white-cali-300x46.png?lossy=1&strip=1&webp=1 300w, https://745078.smushcdn.com/1283475/wp-content/uploads/logo-white-cali.png?lossy=1&strip=1&webp=1 362w" sizes="(max-width: 362px) 100vw, 362px" data-resize-detection="0">');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement