Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #464596

    Hi everyone,

    i tried adding the follwing Javascript to a Code Block:

    <script type=”text/javascript”><!–
    jQuery(function($) {
    $(‘.timer’).countTo({
    from: 0,
    to: 2487,
    speed: 3500,
    refreshInterval: 50,
    onComplete: function(value) {
    console.debug(this);
    }
    });
    });
    //–></script>

    Über <span style=”color: #8bba34;”><span class=”timer”></span> kreative Geister in unserer Community

    But i can’t get it done. The JavaScript doesn’t seem to be executed properly. Does anyone of you know how to fix that?

    Thanks in advance.

    #465056

    Hi haddahardy!

    Try this out instead.

    <script type=”text/javascript”><!–
    jQuery(document).ready(function() {
    jQuery('.timer').countTo({
    from: 0,
    to: 2487,
    speed: 3500,
    refreshInterval: 50,
    onComplete: function(value) {
    console.debug(this);
    }
    });
    });
    //–></script>

    If it’s not working then send us a link to the page and we’ll take a quick look.

    Regards,
    Elliott

    • This reply was modified 9 years, 5 months ago by Elliott.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.