Joined February 2012
·
Posted to
fit image in a smaller div without stretching it
over 1 year
ago
I don't see how you code is resizing image? It's just cropping an image.
Achievements
373 Karma
36,340 Total ProTip Views
Forked 50
Have a project with a thriving community of users that's been forked at least 50 times
Cub
Have at least one original jQuery or Prototype open source repo
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Altruist
Increase developer well-being by sharing at least 20 open source projects
Forked 20
Have an established project that's been forked at least 20 times
Kona
Have at least one original repo where CoffeeScript is the dominant language
Komodo Dragon
Have at least one original repo where Java is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Desert Locust
Have at least one original repo where Erlang is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Raven
Have at least one original repo where some form of shell script is the dominant language
or you can do
$("#my_form")[0].reset()
or even better
document.getElementById('#my_form').reset()