The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › This code works on JSFiddle… doesn't work on Codepen :(
Here is the JSFiddle:
Here is the Codepen:
What is the deal?
By the way, the reason you KNOW it doesn’t work on Codepen is… reload your browser. The positions of the draggable divs does not persist, even though it’s supposed to be stored as a cookie.
JUST KIDDING! It does work. Sorry folks. For some reason it works on the forums and not on the actual Codepen page. Well, if you need to know how to persist draggable divs without a database… that’s how.
Here is another example:
Same code… different results.
Again… never mind. I’m just going to shut up with this thread.