Skip to content

A word-sorting experiment #814

Answered by jodeleeuw
qxu1994 asked this question in Q&A
Jul 2, 2020 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @qxu1994

This is definitely new plugin territory.

The free-sort plugin could be a good starting point, but it doesn't have the feature of snapping into a blank spot. There are some JavaScript libraries that already do this kind of user interaction. For example, this demo of jQuery UI's sortable feature seems pretty similar to what you are looking for:

https://jqueryui.com/sortable/#display-grid

Here's another similar library:

https://sortablejs.github.io/Sortable/

My suggestion would be to start by implementing one trial of your task using a library like one of these in a plain HTML document with no jsPsych. Once you've got a single trial working roughly how you want it, then you can t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jodeleeuw
Comment options

@qxu1994
Comment options

Answer selected by qxu1994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants