[mirotalksfu] - add Common
هذا الالتزام موجود في:
@@ -40,7 +40,7 @@ dependencies: {
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.3.54
|
||||
* @version 1.3.55
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.3.54",
|
||||
"version": "1.3.55",
|
||||
"description": "WebRTC SFU browser-based video calls",
|
||||
"main": "Server.js",
|
||||
"scripts": {
|
||||
@@ -27,6 +27,7 @@
|
||||
"keywords": [
|
||||
"webrtc",
|
||||
"socket.io",
|
||||
"broadcasting",
|
||||
"sfu",
|
||||
"nodejs",
|
||||
"video",
|
||||
|
||||
28
public/js/Common.js
Normal file
28
public/js/Common.js
Normal file
@@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
const poweredBy = document.getElementById('poweredBy');
|
||||
const sponsors = document.getElementById('sponsors');
|
||||
const advertisers = document.getElementById('advertisers');
|
||||
const footer = document.getElementById('footer');
|
||||
//...
|
||||
|
||||
const config = {
|
||||
html: {
|
||||
poweredBy: true,
|
||||
sponsors: true,
|
||||
advertisers: true,
|
||||
footer: true,
|
||||
},
|
||||
//...
|
||||
};
|
||||
|
||||
!config.html.poweredBy && elementDisplay(poweredBy, false);
|
||||
!config.html.sponsors && elementDisplay(sponsors, false);
|
||||
!config.html.advertisers && elementDisplay(advertisers, false);
|
||||
!config.html.footer && elementDisplay(footer, false);
|
||||
//...
|
||||
|
||||
function elementDisplay(element, display, mode = 'block') {
|
||||
if (!element) return;
|
||||
element.style.display = display ? mode : 'none';
|
||||
}
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.3.54
|
||||
* @version 1.3.55
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.3.54
|
||||
* @version 1.3.55
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -188,12 +188,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -180,12 +180,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
</iframe>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
@@ -166,7 +167,7 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -390,9 +390,9 @@
|
||||
</section>
|
||||
<br /><br />
|
||||
|
||||
<section class="clients section">
|
||||
<section id="poweredBy" class="clients section">
|
||||
<div class="container">
|
||||
<p style="text-align: center">Powered by</p>
|
||||
<h4 style="text-align: center; color: grey">Powered by</h4>
|
||||
<div class="clients-inner section-inner has-animations has-top-divider has-bottom-divider">
|
||||
<ul class="list-reset">
|
||||
<li class="reveal-from-left" data-reveal-delay="150">
|
||||
@@ -410,7 +410,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="clients section">
|
||||
<section id="sponsors" class="clients section">
|
||||
<div class="container">
|
||||
<h3 style="text-align: center">Our sponsors</h3>
|
||||
<br />
|
||||
@@ -489,7 +489,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="clients section">
|
||||
<section id="advertisers" class="clients section">
|
||||
<div class="container">
|
||||
<h3 style="text-align: center">Our advertisers</h3>
|
||||
<br />
|
||||
@@ -511,7 +511,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -600,12 +600,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script defer src="../js/newRoom.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -308,12 +308,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
<hr />
|
||||
|
||||
<section class="cta section">
|
||||
<section class="cta section mb-32">
|
||||
<div class="container">
|
||||
<div class="cta-inner section-inner br-12">
|
||||
<h3 class="section-title mt-0">
|
||||
@@ -192,7 +192,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -281,12 +281,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script defer src="../js/newRoom.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -203,12 +203,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<footer id="footer" class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
@@ -196,12 +196,13 @@
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2023 MiroTalk SFU, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script defer src="../js/Common.js"></script>
|
||||
<script defer src="../js/landing.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</body>
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم