Add files via upload
This commit is contained in:
14
css/app.css
14
css/app.css
@@ -181,23 +181,9 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#chat .message.twitch.first-message > div .first-chatter {
|
#chat .message.twitch.first-message > div .first-chatter {
|
||||||
animation-name: wave-animation;
|
|
||||||
animation-duration: 2.5s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
transform-origin: 70% 70%;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes wave-animation {
|
|
||||||
0% { transform: rotate( 0.0deg) }
|
|
||||||
10% { transform: rotate(14.0deg) }
|
|
||||||
20% { transform: rotate(-8.0deg) }
|
|
||||||
30% { transform: rotate(14.0deg) }
|
|
||||||
40% { transform: rotate(-4.0deg) }
|
|
||||||
50% { transform: rotate(10.0deg) }
|
|
||||||
60% { transform: rotate( 0.0deg) }
|
|
||||||
100% { transform: rotate( 0.0deg) }
|
|
||||||
}
|
|
||||||
|
|
||||||
#chat .message.twitch .platform { color: #a970ff; background: transparent !important; text-shadow: 0px 0px 0px #a970ff;}
|
#chat .message.twitch .platform { color: #a970ff; background: transparent !important; text-shadow: 0px 0px 0px #a970ff;}
|
||||||
#chat .message.twitch .platform::after {
|
#chat .message.twitch .platform::after {
|
||||||
|
@@ -80,7 +80,7 @@ async function addMessageToChat(userID, messageID, platform, data) {
|
|||||||
<div id="${messageID}" data-user="${userID}" class="${platform} ${data.classes} message" style="">
|
<div id="${messageID}" data-user="${userID}" class="${platform} ${data.classes} message" style="">
|
||||||
<div class="animate__animated ${chatHorizontal == true ? 'animate__fadeInRight' : 'animate__fadeInUp'} animate__faster">
|
<div class="animate__animated ${chatHorizontal == true ? 'animate__fadeInRight' : 'animate__fadeInUp'} animate__faster">
|
||||||
|
|
||||||
${data.classes.includes("first-message") ? '<span class="first-chatter">👋</span>' : '' }
|
${data.classes.includes("first-message") ? '<span class="first-chatter">✨</span>' : '' }
|
||||||
|
|
||||||
${!data.shared ? '' : data.shared}
|
${!data.shared ? '' : data.shared}
|
||||||
|
|
||||||
@@ -301,4 +301,4 @@ const notifySuccess = (success) => {
|
|||||||
|
|
||||||
function escapeRegex(string) {
|
function escapeRegex(string) {
|
||||||
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||||
}
|
}
|
@@ -3,8 +3,6 @@ const showStreamElementsTips = getURLParam("showStreamElementsTips", true
|
|||||||
const streamElementsHandlers = {
|
const streamElementsHandlers = {
|
||||||
'StreamElements.Tip': (response) => {
|
'StreamElements.Tip': (response) => {
|
||||||
console.debug(response.data);
|
console.debug(response.data);
|
||||||
if (showStreamElementsTips == false)
|
|
||||||
return;
|
|
||||||
streamElementsEventMessage(response.data);
|
streamElementsEventMessage(response.data);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -15,6 +13,9 @@ for (const [event, handler] of Object.entries(streamElementsHandlers)) {
|
|||||||
|
|
||||||
|
|
||||||
async function streamElementsEventMessage(data) {
|
async function streamElementsEventMessage(data) {
|
||||||
|
|
||||||
|
if (showStreamElementsTips == false) return;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
username: userName,
|
username: userName,
|
||||||
amount: moneyFromUser,
|
amount: moneyFromUser,
|
||||||
|
@@ -3,8 +3,6 @@ const showStreamlabsDonations = getURLParam("showStreamlabsDonations", tru
|
|||||||
const streamLabsHandlers = {
|
const streamLabsHandlers = {
|
||||||
'Streamlabs.Donation': (response) => {
|
'Streamlabs.Donation': (response) => {
|
||||||
console.debug(response.data);
|
console.debug(response.data);
|
||||||
if (showStreamlabsDonations == false)
|
|
||||||
return;
|
|
||||||
streamLabsEventMessage(response.data);
|
streamLabsEventMessage(response.data);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -13,6 +11,9 @@ for (const [event, handler] of Object.entries(streamLabsHandlers)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function streamLabsEventMessage(data) {
|
async function streamLabsEventMessage(data) {
|
||||||
|
|
||||||
|
if (showStreamlabsDonations == false) return;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
from: userName,
|
from: userName,
|
||||||
formattedAmount: moneyFromUser,
|
formattedAmount: moneyFromUser,
|
||||||
|
@@ -123,7 +123,10 @@ async function twitchChatMessage(data) {
|
|||||||
if (showTwitchSharedChat == true) {
|
if (showTwitchSharedChat == true) {
|
||||||
if (!data.sharedChat.primarySource)
|
if (!data.sharedChat.primarySource)
|
||||||
{
|
{
|
||||||
var sharedChat = `<div class="shared"><span><i class="fa-solid fa-comments"></i> <strong>${data.sharedChat.sourceRoom.name}</strong></span> <i class="fa-solid fa-arrow-turn-down"></i></div>`;
|
var sharedChat = `<div class="shared">
|
||||||
|
<span><i class="fa-solid fa-comment-dots"></i> <strong>${data.sharedChat.sourceRoom.name}</strong></span>
|
||||||
|
<i class="fa-solid fa-arrow-turn-down"></i>
|
||||||
|
</div>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!data.sharedChat.primarySource && showTwitchSharedChat == false) {
|
else if (!data.sharedChat.primarySource && showTwitchSharedChat == false) {
|
||||||
|
Reference in New Issue
Block a user