Files
caller/templates/index.html
Egor Matveev aaaa29a5a5
Some checks failed
Deploy Dev / Build (pull_request) Successful in 1m19s
Deploy Dev / Push (pull_request) Failing after 1s
Deploy Dev / Deploy dev (pull_request) Has been skipped
intiial
2025-11-24 02:36:02 +03:00

25 lines
683 B
HTML

<html>
<head>
<script>
function startCall() {
fetch("/call", {
method: "POST",
}).then(response => response.json()).then(
(data) => {
const element = document.getElementById("call");
element.href = "/call?call_id=" + data.call_id;
element.hidden = false;
}
)
}
</script>
</head>
<body>
<button onclick="startCall();">
Start call
</button>
<a hidden id="call">
Go to call
</a>
</body>
</html>