-
Notifications
You must be signed in to change notification settings - Fork 0
/
framelogin.html
48 lines (48 loc) · 1.48 KB
/
framelogin.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>flespi auth frame</title>
<script>
window.addEventListener('message', function (event) {
if (typeof event.data === 'string' && ~event.data.indexOf('FlespiToken')) {
var div = document.createElement('div');
div.innerHTML = event.data;
document.querySelector('#tokens').appendChild(div);
}
})
</script>
<style>
body {
font-family: Arial;
}
#tokens {
border: 1px solid #999;
}
#tokens>div {
border-bottom: 1px solid #999;
}
</style>
</head>
<body>
<h2>iframe examples:</h2>
<div>
https://flespi.io/frame/index.html<br>
<iframe src="https://flespi.io/frame/index.html" style="height:50px;border:0;width:250px"></iframe>
</div>
<div>
https://flespi.io/frame/index.html#0f0<br>
<iframe src="https://flespi.io/frame/index.html#0f0" style="height:50px;border:0;width:250px"></iframe>
</div>
<div>
https://flespi.io/frame/index.html#666;ccc<br>
<iframe src="https://flespi.io/frame/index.html#666;ccc" style="height:50px;border:0;width:250px"></iframe>
</div>
<div>
https://flespi.io/frame/index.html#ff0;c00;90<br>
<iframe src="https://flespi.io/frame/index.html#ff0;c00;90" style="height:110px;border:0;width:600px"></iframe>
</div>
<h2>Flespi tokens:</h2>
<div id="tokens"></div>
</body>
</html>