Confirmed users
70
edits
| Line 120: | Line 120: | ||
* Slidebar html code: http://github.com/Laurian/MUPPLE/blob/master/slidebar.html | * Slidebar html code: http://github.com/Laurian/MUPPLE/blob/master/slidebar.html | ||
* Slidebar javascript: http://github.com/Laurian/MUPPLE/blob/master/script/slide.js | * Slidebar javascript: http://github.com/Laurian/MUPPLE/blob/master/script/slide.js | ||
'If github has issues, you can see the raw sources:' | |||
* Jetpack code: http://purl.org/ou/mupple/script/core.js | |||
* Slidebar html code: http://purl.org/ou/mupple/slidebar.html | |||
* Slidebar javascript: http://purl.org/ou/mupple/script/slide.js | |||
We adapted some cross-site scripting style strategies in order to achieve a tight coordination between Jetpack and the code in the slidebar; therefore we use a hidden iframe (fed with data URIs) to communicate from the slidebat to jetpack (which listens for the load event), while from jetpack to slidebar or to any tab we inject script tags with raw code or JSONP. | We adapted some cross-site scripting style strategies in order to achieve a tight coordination between Jetpack and the code in the slidebar; therefore we use a hidden iframe (fed with data URIs) to communicate from the slidebat to jetpack (which listens for the load event), while from jetpack to slidebar or to any tab we inject script tags with raw code or JSONP. | ||