added files and tasks
This commit is contained in:
16
roles/jitsimeet/files/welcomePageAdditionalContent.html
Normal file
16
roles/jitsimeet/files/welcomePageAdditionalContent.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user