[mirotalk] - add common
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ dependencies: {
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.2.71
|
||||
* @version 1.2.72
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.2.71",
|
||||
"version": "1.2.72",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.2.71
|
||||
* @version 1.2.72
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
'use strict';
|
||||
|
||||
// Html pages
|
||||
const poweredBy = document.getElementById('poweredBy');
|
||||
const sponsors = document.getElementById('sponsors');
|
||||
const advertisers = document.getElementById('advertisers');
|
||||
const footer = document.getElementById('footer');
|
||||
//...
|
||||
|
||||
// Common config...
|
||||
const config = {
|
||||
html: {
|
||||
poweredBy: true,
|
||||
sponsors: true,
|
||||
advertisers: true,
|
||||
footer: true,
|
||||
},
|
||||
//...
|
||||
};
|
||||
|
||||
// Handle config...
|
||||
!config.html.poweredBy && elementDisplay(poweredBy, false);
|
||||
!config.html.sponsors && elementDisplay(sponsors, false);
|
||||
!config.html.advertisers && elementDisplay(advertisers, false);
|
||||
!config.html.footer && elementDisplay(footer, false);
|
||||
//...
|
||||
|
||||
/**
|
||||
* Handle Element display
|
||||
* @param {object} element
|
||||
* @param {boolean} display
|
||||
* @param {string} mode
|
||||
*/
|
||||
function elementDisplay(element, display, mode = 'block') {
|
||||
if (!element) return;
|
||||
element.style.display = display ? mode : 'none';
|
||||
}
|
||||
@@ -107,7 +107,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<footer id="footer" class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="footer-top space-between text-xxs">
|
||||
@@ -219,13 +219,14 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">© 2023 MiroTalk, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk, all rights reserved</div>
|
||||
</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>
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
</iframe>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
@@ -188,7 +189,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">© 2023 MiroTalk, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -472,9 +472,9 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="clients section">
|
||||
<section id="poweredBy" class="clients section">
|
||||
<div class="container">
|
||||
<p class="mt-24" style="text-align: center">Powered by</p>
|
||||
<h4 class="mt-24" 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-top" data-reveal-delay="150">
|
||||
@@ -498,7 +498,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="clients section">
|
||||
<section id="sponsors" class="clients section">
|
||||
<div class="container">
|
||||
<h2 class="mt-24" style="text-align: center">Our sponsors</h2>
|
||||
<div class="clients-inner section-inner has-animations has-top-divider has-bottom-divider">
|
||||
@@ -576,7 +576,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="clients section">
|
||||
<section id="advertisers" class="clients section">
|
||||
<div class="container">
|
||||
<h2 class="mt-24" style="text-align: center">Our advertisers</h2>
|
||||
<div class="clients-inner section-inner has-animations has-top-divider has-bottom-divider">
|
||||
@@ -597,7 +597,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<footer id="footer" class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="footer-top space-between text-xxs">
|
||||
@@ -710,7 +710,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">© 2023 MiroTalk, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -718,6 +718,7 @@
|
||||
</div>
|
||||
|
||||
<!-- <script defer src="../js/snow.js"></script> -->
|
||||
<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>
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<footer id="footer" class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="footer-top space-between text-xxs">
|
||||
@@ -317,13 +317,14 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">© 2023 MiroTalk, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk, all rights reserved</div>
|
||||
</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>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="cta section center-content-mobile reveal-from-bottom">
|
||||
<section class="cta section center-content-mobile reveal-from-bottom mb-32">
|
||||
<div class="container">
|
||||
<div class="cta-inner section-inner cta-split br-12">
|
||||
<div class="cta-slogan">
|
||||
@@ -188,7 +188,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<footer id="footer" class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="footer-top space-between text-xxs">
|
||||
@@ -300,13 +300,14 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">© 2023 MiroTalk, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk, all rights reserved</div>
|
||||
</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>
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<footer id="footer" class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="footer-top space-between text-xxs">
|
||||
@@ -267,13 +267,14 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">© 2023 MiroTalk, all rights reserved</div>
|
||||
<div class="footer-copyright">© 2024 MiroTalk, all rights reserved</div>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user