github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/static/libs/sockjs-client-1.1.0/tests/html/iframe.html (about) 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <script> 7 document.domain = document.domain; 8 </script> 9 <script src="/lib/sockjs.js"></script> 10 </head> 11 <body> 12 <h2>Don't panic!</h2> 13 <script> 14 c = parent._sockjs_global; 15 window_id = window.location.hash.slice(1); 16 hook = c(window_id); 17 hook.callback = function(code) {eval(code);}; 18 hook.open(); 19 </script> 20 </body>