File: sockjs-in-parent.html

package info (click to toggle)
node-sockjs-client 1.6.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,424 kB
  • sloc: javascript: 4,966; sh: 7; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <script>
    document.domain = document.domain;
  </script>
  <script>
    c = parent._sockjs_global;
    window_id = window.location.hash.slice(1);
    hook = c(window_id);
    hook.callback = function(code) {eval(code);};
    hook.open();
  </script>
</head>
<body>
  <h2>Don't panic!</h2>
</body>