shorten repetitive code & randomize divs
I have written a code that will have a lot of repetition in it as it stands. Ideally, I would write this shorter and be able to randomize the divs. I don't know how to start and if it's even possible. I'm guessing with a loop. I'm still pretty new to coding so I'm having difficulty seeing if it's even possible with my setup.
It's an experiment, where participant's would get 40 trials. In every trial they need to predict n=51 and n= 52. The order of the trials (the graphs) should be different for every participant, so randomized.
I only put the first threedata series in, so you can get the idea. The jquery code is now for the first time series, determining data point 51 and 52. It would then need to go the next time series. the order of the time series should be at random.
is this possible with this code? can anyone help me get started on this?