Version 13 (modified by 6 years ago) ( diff ) | ,
---|
http://webswing.ewi.tudelft.nl/bart/?anonym=true
{{{!html
<div
style="height:500px;" data-webswing-instance="webswing" data-webswing-options="{autoStart:true, anonym:true, args:'foo', applicationName:'SwingSet3', connectionUrl:'http://<webswing-host-and-port>'}">
</div>
<script>
(function (window, document) {
var loader = function () {
fix for ie if (!window.location.origin) {
window.location.origin = window.location.protocol + "" + window.location.hostname
+ (window.location.port ? ':' + window.location.port : );
} var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == XMLHttpRequest.DONE ) {
var version = xmlhttp.status == 200 ? xmlhttp.responseText : "undefined"; var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0]; script.src = document.location.origin + document.location.pathname + "javascript/webswing-embed.js?version="+version; tag.parentNode.insertBefore(script, tag);
}
}; xmlhttp.open("GET", document.location.origin + document.location.pathname +"rest/webswing/version", true); xmlhttp.send();
}; window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader);
})(window, document);
</script> }}}