2 | | <h1 style="text-align: right; color: blue"> |
3 | | HTML Test |
4 | | </h1> |
| 2 | <head> |
| 3 | <title>Webswing</title> |
| 4 | <meta charset="utf-8"/> |
| 5 | <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> |
| 6 | <meta http-equiv="Access-Control-Allow-Origin" content="*"> |
| 7 | <link rel="icon" href="favicon.ico"/> |
| 8 | </head> |
| 9 | |
| 10 | <body> |
| 11 | |
| 12 | Testing 1 2 3 4 |
| 13 | |
| 14 | |
| 15 | |
| 16 | <div class="webswing-element" data-webswing-instance="webswingInstance0"> |
| 17 | <div id="loading" class="ws-modal-container"> |
| 18 | <div class="ws-login"> |
| 19 | <div class="ws-login-content"><div class="ws-spinner"><div class="ws-spinner-dot-1"></div> <div class="ws-spinner-dot-2"></div></div></div> |
| 20 | </div> |
| 21 | </div> |
| 22 | </div> |
| 23 | <script> |
| 24 | var webswingInstance0 = |
| 25 | { |
| 26 | options: |
| 27 | { |
| 28 | autoStart: true, |
| 29 | connectionUrl:'https://webswing.ewi.tudelft.nl/bart/', |
| 30 | args: getParam('args'), |
| 31 | recording: getParam('recording'), |
| 32 | binarySocket: getParam('binarySocket'), |
| 33 | debugPort: getParam('debugPort'), |
| 34 | recordingPlayback: getParam('recordingPlayback'), |
| 35 | securityToken: getParam('securityToken'), |
| 36 | realm: getParam('realm'), |
| 37 | debugLog: getParam('debugLog') |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | function getParam(name) { |
| 42 | name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); |
| 43 | var results = new RegExp("[\\?&]" + name + "=([^&#]*)").exec(location.href); |
| 44 | return results == null ? null : decodeURIComponent(results[1]); |
| 45 | } |
| 46 | </script> |
| 47 | |
| 48 | <script data-webswing-global-var="webswing"> |
| 49 | (function (window, document) { |
| 50 | var loader = function () { |
| 51 | //fix for ie |
| 52 | if (!window.location.origin) { |
| 53 | window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : ''); |
| 54 | } |
| 55 | var baseUrl = 'https://webswing.ewi.tudelft.nl/bart/'; |
| 56 | var xmlhttp = new XMLHttpRequest(); |
| 57 | xmlhttp.onreadystatechange = function () { |
| 58 | if (xmlhttp.readyState == XMLHttpRequest.DONE) { |
| 59 | var version = xmlhttp.status == 200 ? xmlhttp.responseText : "undefined"; |
| 60 | var script = document.createElement("script"), |
| 61 | tag = document.getElementsByTagName("script")[0]; |
| 62 | script.src = baseUrl + "javascript/webswing-embed.js?version=" + version; |
| 63 | tag.parentNode.insertBefore(script, tag); |
| 64 | } |
| 65 | }; |
| 66 | xmlhttp.open("GET", baseUrl + "rest/version", true); |
| 67 | xmlhttp.send(); |
| 68 | }; |
| 69 | window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader); |
| 70 | })(window, document); |
| 71 | </script> |
| 72 | </body> |