Files
ansible-pull/roles/jitsimeet/files/welcomePageAdditionalContent.html
2022-02-21 15:49:29 +01:00

17 lines
1.6 KiB
HTML

<template id = "welcome-page-additional-content-template">
<div style="text-align: center; font-size: 16px; margin: 20px 0; margin-top: 10px; z-index: 900; position: relative; color: #fff;">
Mewimeet |
<a href="https://mewimeet.de/jitsi-meet-anleitung" style="color: #42b2e2; text-decoration: underline;">Anleitung</a> |
<a href="https://test.webrtc.org" style="color: #42b2e2; text-decoration: underline;">Browser Test</a> |
<a href="https://mewimeet.de/datenschutz" style="color: #42b2e2; text-decoration: underline;">Datenschutz</a>|
<a href=" https://mewimeet.de/impressum" style="color: #42b2e2; text-decoration: underline;">Impressum</a>
<p>Aktuelle Nutzung: <span id="x-conferences">X</span> Konferenzen mit <span id="x-participants">X</span> Teilnehmer | <span id="x-cpu">X.X</span>% CPU und <span id="x-memory">X.X</span>% RAM</p>
<script>
var totelram = 1987; // Arbeitsspeicher in MB
fetch('https://mewimeet.de/stats.json').then(function (response) {return response.json();}).then(function (data){document.getElementById('x-conferences').innerHTML = data.conferences;document.getElementById('x-participants').innerHTML = data.participants;}).catch(function (err){console.warn('Something went wrong.', err);});
fetch('https://mewimeet.de/cpu.txt').then(response => response.text()).then(data => { document.getElementById('x-cpu').innerHTML = parseFloat(data).toFixed(1)});
fetch('https://mewimeet.de/memory.txt').then(response => response.text()).then(data => {var memory =100/totelram*data; document.getElementById('x-memory').innerHTML = memory.toFixed(1)});
</script>
</div>
</template>