Plugin Directory

Changeset 2002094


Ignore:
Timestamp:
12/27/2018 06:35:50 AM (7 years ago)
Author:
Surfstang
Message:

Fix chrome issues with scrolling.

Location:
mega-ad/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mega-ad/trunk/assets/css/style.css

    r1317381 r2002094  
    3434  width: 80px;
    3535  height: 80px; }
     36
     37  body.has-message,
     38  html.has-message {
     39      overflow-x: hidden!important;
     40  }
  • mega-ad/trunk/assets/js/mega-ad-cookie.js

    r1101718 r2002094  
    1010        /* Cookie Not Detected Show Mega Ad */
    1111        jQuery( '#mega_ad_wrap' ).fadeIn(0);
    12         jQuery( 'body' ).addClass( 'has-message' );
     12        jQuery( 'html, body' ).addClass( 'has-message' );
    1313
    1414        /* Mega Ad CSS Scroll Fix */
    1515        jQuery( 'html, body' ).css({
    1616            'overflow': 'hidden',
     17            'overflow-x': 'hidden',
    1718            'height': '100%'
    1819        });
     
    2526    }
    2627
    27     /* User Clicks Dismiss Mega Ad Drops Cookie */
    28     jQuery( "#dismiss" ).click(function() {
     28    /* User Clicks Dismiss Mega Ad Drops Cookie */ 
     29    jQuery( '#dismiss','#mega_ad_wrap', '#mega_ad' ).click(function() {
    2930
    3031        jQuery.cookie( "mega-ad", 1, {  path: '/', expires : 1 });
     
    3233
    3334        /* Mega Ad CSS Scroll Reset */
    34         jQuery( 'body' ).css({
     35        jQuery( 'html, body' ).css({
    3536            'overflow': 'scroll',
     37            'overflow-x': 'scroll',
    3638            'height': '100%'
    37         });
     39        }); 
    3840
    3941    });
     
    4547        jQuery( '#mega_ad_wrap' ).hide();
    4648
     49        /* Mega Ad CSS Scroll Reset */
     50        jQuery( 'html, body' ).css({
     51            'overflow': 'scroll',
     52            'overflow-x': 'scroll',
     53            'height': '100%'
     54        });
     55
    4756    });
    4857
  • mega-ad/trunk/mega-ad-plugin.php

    r2002033 r2002094  
    66 * Author: Simon Web Design, LLC
    77 * Author URI: http://simonwebdesign.com
    8  * Version: 1.1.0
     8 * Version: 1.1.2
    99 * License: GPLv2
    1010 */
Note: See TracChangeset for help on using the changeset viewer.