+ 2
The '++' operator isn't working for me
When you click the div it supposed to expand until a certain size. You can click again while it's expanding to contract it(sorry if my English is wrong) and it will return to the original size. According to the system the problem is in line 8 of js but I can't figure out what. https://code.sololearn.com/W574qWN5946o/?ref=app
6 odpowiedzi
+ 12
remove this line...
selected=1;
+ 11
https://code.sololearn.com/W2QVsQjaQl7e/?ref=app
updated to reflect question requirements.
** updated to include size limits
+ 10
also animate is a protected word. rename it.
I would also separate animate and resize function, but that's me.
+ 6
It's only one way to go about this :) probably not even the best way.
Just use it as a reference, if you get stuck again. There are probably other 'cleaner' methods to accomplish your task
+ 1
You kind of completed it for me jay although that's not what I really wanted, but thanks anyway.