Giter Site home page Giter Site logo

Comments (5)

sitexw avatar sitexw commented on July 18, 2024

First, thank you for your enthusiasm for BlockAdBlock.

If I understand correctly, currently, you create an instance of BlockAdBlock for each ad block?
And do you have a small example of a script?

from blockadblock.

denissteinhorst avatar denissteinhorst commented on July 18, 2024

WOW! Thanks for the fast reply! thats pretty awesome!

sure, there you got the part of my code:

https://pastebin.com/xx9YKuJN

on top of the page i just include your .js file
btw: im using bootstrap - may this info will help you

from blockadblock.

sitexw avatar sitexw commented on July 18, 2024

You have more, a problem of jQuery, than of BlockAdBlock =)

In the world of development, typically the IDs are made to be unique. In your case, you try to create elements with the same ID and jQuery does not tolerate it, that's why it only works with a single ID. In your case, it would be better to use "class" instead of "id".
Here is a concrete example that shows the difference between "id" and "class" with jQuery: https://codepen.io/anon/pen/eWqWrp

from blockadblock.

denissteinhorst avatar denissteinhorst commented on July 18, 2024

Oh my God!... how i could not see that!...
u are totaly right, in general im aware of classes and ids. - i just didnt mentioned the IDs instead of classes.

im so sorry to interrupt you with such a nasty misstake.

keep going with the good work and hold up that blazing fast support!
10/10.

regards

from blockadblock.

sitexw avatar sitexw commented on July 18, 2024

No problem, and good continuation.

from blockadblock.

Related Issues (20)

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.