File: test20_frame2.html

package info (click to toggle)
libjs-jstorage 0.3.1-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: javascript: 706; makefile: 13; xml: 8
file content (27 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
    <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
    <script src="../jstorage.js"></script>
    <script>

        var received = {}, done = false;

        $.jStorage.subscribe("test", function(channel, payload){
            if(done)return;

            received[payload] = true;
            
            if(received["pest1"] && received["pest2"]){
                done = true;
                parent.listenReady(true);
            }
        });

        parent.iframeReady(2, window);
    </script>
</head>
<body>

</body>
</html>