CNCLgithub / rooms-psiturk

1 stars 0 forks source link

editing key presses and navigation #2

Closed belledon closed 3 years ago

belledon commented 3 years ago

@victoriaaa333

I think that having both key presses and click is redundant. Can you please make the page continue to the next when either key is pressed?

The relevant section is here

https://github.com/CNCLgithub/rooms-psiturk/blob/51d5a39f7557db8f852377a403a961931db6f622/psiturk/static/js/page.js#L47-L56

callback is a function that shows the next Page.

You can use the class property, this.show_response to toggle between using a next button (ie the instruction pages) and using key presses.

belledon commented 3 years ago

also can we make the keys be f and j ? thats the standard for these kinds of experiments

belledon commented 3 years ago

great job so far @victoriaaa333 , closing for now