[mirotalk] - automize snow effect
This commit is contained in:
+5
-4
@@ -39,7 +39,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.3.99
|
||||
* @version 1.4.00
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -390,13 +390,14 @@ app.use((req, res, next) => {
|
||||
}
|
||||
});
|
||||
|
||||
// Logs requests
|
||||
app.use((req, res, next) => {
|
||||
const ipAddress = getIP(req);
|
||||
log.debug('New request:', {
|
||||
// headers: req.headers,
|
||||
body: req.body,
|
||||
ip: ipAddress,
|
||||
method: req.method,
|
||||
path: req.originalUrl,
|
||||
body: req.body,
|
||||
headers: req.headers,
|
||||
});
|
||||
next();
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.3.99",
|
||||
"version": "1.4.00",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
+2
-2
@@ -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.3.99
|
||||
* @version 1.4.00
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -10664,7 +10664,7 @@ function showAbout() {
|
||||
Swal.fire({
|
||||
background: swBg,
|
||||
position: 'center',
|
||||
title: '<strong>WebRTC P2P v1.3.99</strong>',
|
||||
title: '<strong>WebRTC P2P v1.4.00</strong>',
|
||||
imageAlt: 'mirotalk-about',
|
||||
imageUrl: images.about,
|
||||
customClass: { image: 'img-about' },
|
||||
|
||||
+7
-1
@@ -2,7 +2,13 @@
|
||||
|
||||
// https://codepen.io/tutsplus/pen/BaVqjvg
|
||||
|
||||
const snowEnabled = true;
|
||||
const now = new Date();
|
||||
const month = now.getMonth(); // 0 = January, 11 = December
|
||||
|
||||
// Enable snow effect for December (11) and January (0)
|
||||
const snowEnabled = month === 11 || month === 0;
|
||||
|
||||
console.log(`Snow enabled: ${snowEnabled}`);
|
||||
|
||||
const snowContainer = document.getElementById('snow-container');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user