Jumble component

15 views
Skip to first unread message

kmul...@gmail.com

unread,
Oct 21, 2022, 2:03:55 PM10/21/22
to CTAT Users

Hi,

We were hoping to use the CTATJumble component, one where the background of the text boxes being shuffled is colored. We can't get the color part to work: the colors always stay in the original location after text corresponding to the colored box is dragged to a new one. We implemented this by adding a style to the items in the jumble example posted on the CTAT website, see below; we also tried to use images instead of text in the jumble (this did not work as the images were not movable). 

Any suggestions would be really appreciated – thank you! 

Kasia Muldner

 Snippet of  HTML file with Jumble:

 <div data-silex-type="container" class="container-element CTATJumble editable-style silex-id-1666043116374-0 page-page-1 paged-element CTATComponent" data-ctat-tabindex="1" data-silex-id="silex-id-1666043116374-0" id="ctatdiv3" data-ctat-component="CTATJumble" data-ctat-enabled="true" tabindex="1" data-ctat-tutor="false">

 <div id="item1" style="background-color:blue"> fox</div>

 <div id="item2" style="background-color:red">brown</div>

  <div id="item3" style="background-color:green">quick</div>

</div>

    </div>

Octav Popescu

unread,
Oct 21, 2022, 2:40:06 PM10/21/22
to ctat-...@googlegroups.com, kmul...@gmail.com

Hi Kasia,

It seems the jumble is implemented by making it so on a shuffle the elements stay in place, only their ids and contents are replaced. I don't know if there are any advantages of implementing it that way, but it does mean that if you put styles directly on the elements, they won't move when contents are shuffled. If instead you put the styles on ids in an attached stylesheet (which could be in a separate file or in a <style> element in the html interface) like below, they should be working fine.

#item1 { background-color: blue }
#item2 { background-color: red }
#item3 { background-color: green }

Best,
Octav

--
You received this message because you are subscribed to the Google Groups "CTAT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ctat-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ctat-users/5ddb0572-1b8b-405d-95f0-97c7ed55a324n%40googlegroups.com.

Jonathan Sewall

unread,
Oct 22, 2022, 4:26:49 PM10/22/22
to ctat-...@googlegroups.com
Thanks for replying. That solution is more elegant than any I thought of 

kmul...@gmail.com

unread,
Nov 6, 2022, 5:24:00 PM11/6/22
to CTAT Users
Thank you so much - this worked perfectly!

Kasia
Reply all
Reply to author
Forward
0 new messages