Skip to content

Commit 4ef17cb

Browse files
committed
New dance bracket code
1 parent 298a426 commit 4ef17cb

3 files changed

Lines changed: 50 additions & 1 deletion

File tree

src/chat/elementjson/chat-styles.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,3 +1613,40 @@ a {
16131613
.onlineDivButton {
16141614
text-wrap: nowrap;
16151615
}
1616+
1617+
.danceBracket {
1618+
animation-name: danceBracketAnim;
1619+
animation-duration: 1.3s;
1620+
animation-iteration-count: infinite;
1621+
1622+
position: relative;
1623+
top: 0;
1624+
left: 0;
1625+
}
1626+
1627+
@keyframes danceBracketAnim {
1628+
/* Bounce */
1629+
0% {
1630+
transform: translate(0, 0) scale(1, 1);
1631+
animation-timing-function: ease-in-out;
1632+
}
1633+
/* Outwards left*/
1634+
25% {
1635+
transform: translate(-25%, -200%) rotate(-10deg);
1636+
animation-timing-function: ease-in;
1637+
}
1638+
/* Bounce */
1639+
50% {
1640+
transform: translate(0, 0) scale(1, 1);
1641+
animation-timing-function: ease-in-out;
1642+
}
1643+
/* Outwards right */
1644+
75% {
1645+
transform: translate(25%, -200%) rotate(10deg);
1646+
animation-timing-function: ease-in;
1647+
}
1648+
/* Go back to start (repeat) */
1649+
100% {
1650+
transform: translate(0, 0) scale(1, 1);
1651+
}
1652+
}

src/safehtmlencode.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,18 @@ function getBracketCodeJSON(inputText = "", triggerBracketCodes = {}) {
604604
});
605605
}
606606

607+
if (name == "dance" && !exists) {
608+
exists = true;
609+
610+
var newElm = run(true, "/dance");
611+
newElm.className = "danceBracket";
612+
elm.children.push(newElm);
613+
elm.children.push({
614+
element: "span",
615+
textContent: "",
616+
});
617+
}
618+
607619
if (name == "link" && !exists) {
608620
exists = true;
609621

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1761326156925"}
1+
{"timestamp":"1761329809452"}

0 commit comments

Comments
 (0)