Using plain javascript, enhance this jsfiddle snippet

  • Status: Pending
  • Prize: $15
  • Entries Received: 14
  • Winner: tljafar

Contest Brief

See https://jsfiddle.net/richkingsford/3edg9nwu/1/

Please use your own jsfiddle to enhance this solution so it's more robust and scalable.

Example inputs: [1, 8], [3, 4], [2, 7]
Example outputs:
1. We can think of 1 x 8 as 1 group of 8
2. We can think of 3 x 4 as 3 group of 4
3. We can think of 2 x 7 as 2 groups of 7

Other requirements
1. Use just the one css animation (and preserve its functionality)
2. Create the <p> tags using javascript (not hardcoded like it is now)
3. Use plain javascript (no 3rd party libraries)
4. Minimal code changes is nice (just a little javascript would be ideal)
5. Readable code. Minimal hardcode.

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

  • mdtausifiqbal
    mdtausifiqbal
    • 2 months ago

    Please check #15

    • 2 months ago
  • testotorko
    testotorko
    • 2 months ago

    https://jsfiddle.net/szce7kt8/

    • 2 months ago
  • testotorko
    testotorko
    • 2 months ago

    heck thhe demo here

    • 2 months ago
  • tljafar
    tljafar
    • 2 months ago

    Do you want to use input text for enter input value?

    • 2 months ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!