Giter VIP home page Giter VIP logo

rad's People

Contributors

lisandropuzzolo avatar mattnish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rad's Issues

Small problem with margins

First off I would like to say thanks. I've been working on a responsive design for something for a few days now and was starting to integrate the ads in and was surprised to see Google had no method available to dealing with that. Your plugin works quite well.

I found one little problem. I'm using a highly modified version of Bootstrap and the span# tags have margins set. The plugin didn't take into account margins so the result was the ad was the width of the margin wider than the span# block. I made this modification:

Directly below line 62 (var pWidth = this.adParent.width();)

I added this:

pWidth -= (parseInt(this.adParent.parent().css('marginLeft').replace('px', '')) + parseInt(this.adParent.parent().css('marginRight').replace('px', '')));

This seems to have done the trick resulting in the ad being sized correctly.

Thanks once again for the plugin.

Stewart

Use within another div an issue?

I have implemented this code on my site for the top 728x90 banner:

http://www.protoolreviews.com

Unfortunately, though the js file seems to be called correctly and all other code insertions seem to match your example page, I can't get the banner to resize.

Is it possible that the location of the banner within the theme is preventing the script from properly executing?

I'd love any feedback you may have on this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.