-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomframe.html
57 lines (53 loc) · 3.14 KB
/
comframe.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 lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/src/css/iframe.min.css" async>
<style id="importantComSheet"></style>
</head>
<body>
<hr>
<h1>Communication</h1>
<hr>
<h2 style="letter-spacing: 1px;font-weight: 100;font-size:12px">Welcome, researcher. Please select one of the following actions</h2>
<span class="applicationBtn" id="vc">Encrypted communication system</span>
<span class="applicationBtn" id="updateLog">Update Log</span>
<span class="applicationBtn" id="patreon">Credit</span>
<script src="/src/ex_file/scripts/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
$("#vc").off('click').bind('click', function() {
checkauthLoaded()
function checkauthLoaded() {
if (parent.userLoggedIn != undefined) {
if (parent.userLoggedIn == false) {
parent.showWarning(`<div>You must be logged in before you can use this function.</div>`)
return;
} else if (parent.tag == "Not yet registered") {
parent.showWarning(`<div>You are using a legacy account that does not support the communication function. Please go to the SCiPNET Dashboard tab, enter "Edit" in the terminal and edit your username to update your account.</div>`)
return;
} else if (parent.tag != undefined) {
parent.popUp("Encrypted communication system",
`<div><div><p>Enter the User ID (With #) of the registered Foundation member you wish to call:</p><p id="callIndicator"></p><input id='callID' placeholder="Username#0000" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Username#0000'" ></input><span class='applicationBtn' id='callBtn' style='margin-left:15px;font-size:14px' onclick='call(this)'>CALL</span></div><br><div><p>Click to receive calls:</p><br><span class='applicationBtn' id='callBtn' style='font-size:14px' onclick='recieve(this)'>RECEIVE</span></div><br></div><div><br></div><small style="opacity:0.7">ⓘ: This encryption communication system allows you to voice call another registered Foundation member. Click the "Receive" button to enter call receiving mode. Request another registered member to enter your User ID and click the "Call" button to establish connection with the member you wish to call.<br></small>`
)
return;
}
}
parent.popUp("Encrypted communication system", "<div class='pulse'></div><div class='loadText'>Loading Communication System...</div><br>")
window.setTimeout(checkauthLoaded, 100);
}
})
$("#updateLog").off('click').bind('click', function() {
parent.popUp("TERMINAL UPDATE LOG", "<div class='pulse'></div><div class='loadText'>Loading Update Log...</div>")
$.get("/src/ex_file/html/updatelog.html", function(va) {
parent.popUp("TERMINAL UPDATE LOG", va)
})
})
$("#patreon").off('click').bind('click', function() {
parent.popUp("CREDIT", "<div class='pulse'></div><div class='loadText'>Loading Credit...</div>")
$.get("/src/ex_file/html/patreon.html", function(va) {
parent.popUp("CREDIT", va)
})
})
</script>
</body>
</html>