53 lines
1.3 KiB
Cheetah
53 lines
1.3 KiB
Cheetah
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Solar Network Meet</title>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<style>
|
|
body {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.container {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
<script src='https://meet.element.io/external_api.js'></script>
|
|
</head>
|
|
<body>
|
|
<div class="parent">
|
|
<div class="container" id="meet">
|
|
</div>
|
|
</div>
|
|
<script>
|
|
function getQueryParam(name) {
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
return urlParams.get(name);
|
|
}
|
|
|
|
const node = document.querySelector('#meet');
|
|
|
|
const domain = 'meet.element.io';
|
|
const options = {
|
|
roomName: "{{ .RoomName }}",
|
|
width: '100%',
|
|
height: '100%',
|
|
parentNode: node,
|
|
userInfo: {
|
|
avatar: {{ .User.Avatar }},
|
|
displayName: "{{ .User.Nick }}"
|
|
}
|
|
};
|
|
const api = new JitsiMeetExternalAPI(domain, options)
|
|
</script>
|
|
</body>
|
|
</html>
|