-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
41 lines (32 loc) · 863 Bytes
/
popup.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<script>
var req = new XMLHttpRequest();
var nextGameID = localStorage["next_game_id"];
if(!nextGameID || nextGameID <= 0) {
return;
}
var url = "http://www.yucata.de/en/Game/" + nextGameID;
//alert(url);
req.open(
"POST",
url,
true);
req.onload = showPhotos;
req.send(null);
function showPhotos() {
var content = req.responseText;
var doc = document.open("text/html","replace");
doc.write(content);
doc.close();
//var iframe = document.createElement("iframe");
//document.body.appendChild(iframe);
//var doc = iframe.document;
//if(iframe.contentDocument)
// doc = iframe.contentDocument; // For NS6
//else if(iframe.contentWindow)
// doc = iframe.contentWindow.document; // For IE5.5 and IE6
// Put the content in the iframe
//doc.open();
//doc.writeln(content);
//doc.close();
}
</script>