intiial
This commit is contained in:
25
templates/index.html
Normal file
25
templates/index.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user