1. Chris Nanney
  2. Apple-Style Flip Counter
  3. Issues
Issue #1 invalid

Impossible to use div id different from "counter"

Anonymous created an issue

In the demo page, on line 36, replace "counter" by "counter1", or any other string different from "counter" Do the same on line 115. The demo stop working. (tested in safari and firefox). No javascript error. I suppose "counter" is hardcoded somewhere... Thanks !

Comments (2)

  1. Anonymous

    found it ! The id is hardcoded in the css. So, to be able to display several counter in the same page, you need to add a class to the counter, and change the css accordingly. And don't forget to change the "idPre" option too !

  2. Log in to comment