Hi everybody,
I am going crazy here. I have this .js-code allowing the user to drag and drop a sentence into the right order. TME had helped me with it some time ago. Since then, I had it updated to behave nicely on mobile devices. You can see a working example here. As you can see, it works horizontally on large-screen devices and switches to a vertical layout on smaller screens. So far so good.
Then I wanted to include that function into a bigger project, a language placement test. So I copied all the CSS and all the Story's Javascript from the working example provided above to the new file, available here. (I provided links to the affected passages on the bottom of the starting passage)
For some reason, the drag-and-drop behaviour doesn't work in the new file. The function draginit is called exactly in the same way as in the working example - I can not figure out where the problem is.
Any help is greatly appreciated.