-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextchat.html
112 lines (88 loc) · 3.33 KB
/
extchat.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!--
https://stackoverflow.com/questions/8318264/how-to-move-an-iframe-in-the-dom-without-losing-its-state
https://stackoverflow.com/questions/30964292/move-iframe-dom-to-new-window
https://paul.kinlan.me/creating-a-popout-iframe-with-adoptnode-and-magic-iframes/
https://medium.com/@jakob/change-an-iframe-parent-without-reload-3563d79d50a9
TLDR: non è possibile spostare un iframe nel DOM o altra finestra senza reloadarlo. Period.
-->
<!DOCTYPE html>
<head>
<title>Chiacchiere poppate via</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Ruscellatore">
<meta name="author" content="Fooryo">
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="cache-control" content="no-cache, must-revalidate, post-check=0, pre-check=0" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<style>
*{
border: 0px;
margin: 0px;
padding: 0px;
}
body{
background-color: black;
width: 100vw;
height: 100vh;
overflow: hidden;
}
#extChatFrame{
width: 100%;
height: 100%;
width: 100vw;
height: 100vh;
}
</style>
<script type="text/javascript">
var testvarchild="777 su ogni cosa"
var parentWindow=null;
function communicateExitToParentWindow(a){
console.log("inside child window handler function. number: "+a);
//parentWindow.commuteChatPopOut();
window.opener.receiveExitToParentWindow(a);
console.log("called parentWindow.commuteChatPopOut");
}
console.log("initialized window, my parent is:"+parentWindow);
window.addEventListener("beforeunload", ()=>{communicateExitToParentWindow(0);});
console.log("added listener");
//window.onbeforeunload=communicateExitToParentWindow(2); //<- questa riga l'ho letta da qualche parte su stackoverflow...
//... e praticamente mi trigghera la funzione al loading, la commento perchè non la voglio cancellare, effettivamente...
//... manda il 2 nella finestra parent
</script>
</head>
<body>
<div id="extChatFrame">
<script class="chatte" id="cid0020000305359219210" data-cfasync="false" async
src="//st.chatango.com/js/gz/emb.js" style="width: 100%;height: 100%;">
{"handle":"niuscello","arch":"js",
"styles":
{
"a":"000000",
"b":100,
"c":"c0c0c0",
"d":"a0a0a0",
"e":"000000",
"g":"e0e0e0",
"h":"363636",
"j":"FFFFFF",
"k":"141414",
"l":"404040",
"m":"000000",
"n":"c0c0c0",
"p":"9",
"q":"000000",
"r":100,
"usricon":0,
"sbc":"141414",
"allowpm":0,
"cnrs":"0.38",
"useonm":1
}
}
</script>
</script>
</div>
</body>