Grow your CSS skills. Land your dream job.

How would you improve this little jQuery Dice Roller?

  • # March 7, 2012 at 8:27 pm

    Trying to teach myself a few things, and am wondering how I could improve this code: http://jsfiddle.net/joshnh/K5tCE/

    Basically I’m after alternate/better ways to code it, and ways to streamline it. Thanks in advance guys!

    Also, how do you guys remember what does and doesn’t have a semicolon after it?

    # March 8, 2012 at 1:21 am

    http://jsfiddle.net/K5tCE/27/
    I’ve added comments where I’ve changed
    The , was changed to ; because the variable “value” was being re-declared instead of redefined

    Functions don’t need to end in ; just lines within the function

    # March 8, 2012 at 2:19 am

    Ah, awesome. Good catches Karl. Thanks mate!

    # March 8, 2012 at 2:23 am

    I was trying to find a font that would change numbers to die faces
    but….
    wait for it….

    … no dice
    lol

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".