25 lines
683 B
HTML
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> |