🎈 Welcome to the Text Processor! 🎈
🌟 Output will appear here! 🌟
✨ Have fun! ✨
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Emoji Text Processor 🎉✨</title>
<style>
@keyframes bounce {
0% { transform: scale(1); }
25% { transform: scale(1.2); }
50% { transform: scale(1); }
75% { transform: scale(1.2); }
100% { transform: scale(1); }
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.animate-bounce {
animation: bounce 0.5s;
}
.animate-shake {
animation: shake 0.5s;
}
</style>
</head>
<body>
<div style="width: 400px; height: 400px; margin: auto; padding: 20px; box-sizing: border-box; background-color: #f0f8ff; border: 2px solid #add8e6; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-around;">
<div style="font-size: 24px;">🎈 Welcome to the Text Processor! 🎈</div>
<textarea id="inputText" style="width: 90%; height: 100px; padding: 10px; border: 2px solid #ff69b4; border-radius: 5px; font-size: 16px;" placeholder="Enter your text here... ✍️"></textarea>
<button id="processBtn" style="padding: 10px 20px; font-size: 16px; background-color: #ff69b4; color: white; border: none; border-radius: 5px; cursor: pointer;">🚀 Process 🚀</button>
<div id="outputText" style="width: 90%; height: 100px; padding: 10px; border: 2px solid #90ee90; border-radius: 5px; background-color: #e0ffe0; font-size: 16px; overflow-y: auto;">🌟 Output will appear here! 🌟</div>
<div style="font-size: 18px;">✨ Have fun! ✨</div>
</div>
<script>
const processBtn = document.getElementById('processBtn');
const inputText = document.getElementById('inputText');
const outputText = document.getElementById('outputText');
processBtn.addEventListener('click', () => {
processBtn.classList.add('animate-bounce');
setTimeout(() => {
processBtn.classList.remove('animate-bounce');
}, 500);
const lines = inputText.value.split('\n');
const processed = lines
.filter(line => /^\[.*\]$/.test(line.trim()))
.map(line => `banid 0 ${line.trim()} kick`)
.join('\n');
outputText.textContent = processed || "❌ No matching lines found! ❌";
if (!processed) {
outputText.classList.add('animate-shake');
setTimeout(() => {
outputText.classList.remove('animate-shake');
}, 500);
}
});
</script>
</body>
</html>
```