-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtci-test.html
57 lines (56 loc) · 2.34 KB
/
tci-test.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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src='https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js'></script>
</head>
<body>
<button onclick='cpaccess()'>CP Access</button>
this is on pranavsethi.com <button onclick="requestAccess1()">request popup</button> <button onclick="requestAccess2()">request resource from ext url</button>
<script type="text/javascript">
function cpaccess(){
var cp = window.open('https://cp-test.decisionlender.solutions/');
setTimeout(()=> {
document.hasStorageAccess().then(
() => console.log('access granted') | cp.close(),
() => console.error('access deined')
)
}, 2000);
}
function requestAccess2(){
document.getElementById('appstore').src='https://whispering-ridge-71998.herokuapp.com/appstore.png';
}
function requestAccess1(){
var w = window.open('https://whispering-ridge-71998.herokuapp.com/', 'win');
}
function iframeLoad(){
alert('iframe loaded');
}
</script>
<hr>
<table width="100%">
<tr>
<td width='33%'> CNAME on DNS</td>
<td width='33%'> Absolute URL on heroku</td>
<td width='*'> </td>
</tr>
<tr>
<td width="33%"> <iframe src="http://tci-test.pranavsethi.com"></iframe> </td>
<td width="33%"> <iframe src="https://whispering-ridge-71998.herokuapp.com/"></iframe>
<iframe sandbox='allow-popups allow-popups-to-escape-sandbox allow-top-navigation allow-top-navigation-by-user-activation allow-modals allow-forms allow-same-origin allow-scripts allow-storage-access-by-user-activation' src="https://whispering-ridge-71998.herokuapp.com/"></iframe>
</td>
<td width="*"> <img width='200px' id='appstore' alt='appstore request' /> </td>
</tr>
</table>
<hr>
<table width="100%">
<tr>
<td width="50%">
<iframe src="http://tci-cp.pranavsethi.com/cp2/cons429/" width="100%" height="500px" frameborder="0"></iframe>
</td>
<td width="50%">
<iframe sandbox='allow-popups allow-popups-to-escape-sandbox allow-top-navigation allow-top-navigation-by-user-activation allow-modals allow-forms allow-same-origin allow-scripts allow-storage-access-by-user-activation' src="http://cp-test.decisionlender.solutions/cp2/cons429/" width="100%" height="500px" frameborder="0" onload='iframeLoad()'></iframe>
</td>
</tr>
</table>
</body>
</html>