How To add iframe code to exercise question in perseus

56 views
Skip to first unread message

bn

unread,
Apr 12, 2015, 1:05:57 PM4/12/15
to khanacademy...@googlegroups.com
Hello Experts , 

I want to add an audio clip from the sound cloud in the Perseus exercise. The final question should look like this. As you noticed, I have to embed the SoundCloud iframe code in the Perseus question area. 

Can this type of question be done using Perseus ? 

iframe code 



Thanks

Aria Toole

unread,
Apr 13, 2015, 2:49:42 PM4/13/15
to khanacademy...@googlegroups.com
Hi!

Perseus has an iframe widget that might suit your needs. To get it, you can type `[[iframe` and then press [TAB].

It has some sandbox settings that might prevent it from loading iframes from other websites; to modify those you could see `perseus/src/widgets/iframe.jsx` line 103:

        return <iframe sandbox="allow-same-origin allow-scripts"

                       style={style} src={url} />;

Regards,
Aria

--
You received this message because you are subscribed to the Google Groups "Khan Academy Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to khanacademy-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bn

unread,
Apr 15, 2015, 6:52:57 PM4/15/15
to khanacademy...@googlegroups.com
Thanks iframe widget worked after I upgrade to recent version of perseus. 

I have a follow up question. 

How is the compatibility of across various version of Perseus. I had taken perseus last july and created 2000+ math questions using  perseus editor. Are those questions would work on newer version of peresus ? 

Thanks

To unsubscribe from this group and stop receiving emails from it, send an email to khanacademy-developers+unsub...@googlegroups.com.

snacht

unread,
May 4, 2015, 6:59:27 AM5/4/15
to khanacademy...@googlegroups.com
2000 math questions in perseus? Nice!. Would you be willing to share them?
Regards,
Stefaan

bn

unread,
May 4, 2015, 12:40:54 PM5/4/15
to khanacademy...@googlegroups.com
All our exercises are written on a local Indian language. I am not sure if that helps. However, we did learn a lot from Khan Academy team how to write exercise using perseus. Aria was very helpful on forums. 

Thanks 
Biswajit
Reply all
Reply to author
Forward
0 new messages