Calculator Tools Calculator Tools
Create

Emoji Mixer

Sep 19, 2023

About this app

Mix and match emojis with Emoji Mixer

Emoji Mixer Emoji Mixer 😀 + 😂 Mix Emojis Mixed Emoji: 😀😂

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Emoji Mixer</title>
<meta name="description" content="Mix and match emojis with Emoji Mixer">
<meta name="keywords" content="emoji, mixer, mix, match">

<link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
$(document).ready(function() {
// Function to randomly select emojis from an array
function getRandomEmoji() {
const emojis = ['😀', '😂', '😍', '😎', 'ðŸĨģ', 'ðŸĪĐ', '😊', 'ðŸĪ”', '😘', 'ðŸĪĢ', '😉', 'ðŸĨ°', 'ðŸĪŠ', '😇', '😋'];
const randomIndex = Math.floor(Math.random() * emojis.length);
return emojis[randomIndex];
}

// Function to generate a new mixed emoji
function generateMixedEmoji() {
const emoji1 = getRandomEmoji();
const emoji2 = getRandomEmoji();
return emoji1 + emoji2;
}

// Update the mixed emoji on button click
$('#mix-button').click(function() {
const mixedEmoji = generateMixedEmoji();
$('#mixed-emoji').text(mixedEmoji);
});
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
}

.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}

h1 {
color: #333;
font-size: 36px;
font-weight: 700;
margin-bottom: 20px;
}

.emoji-mixer {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40px;
}

.emoji-mixer .emoji-icon {
font-size: 80px;
margin: 0 10px;
}

.emoji-mixer .plus-icon {
font-size: 40px;
}

.mix-button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
}

.mix-button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Emoji Mixer</h1>
<div class="emoji-mixer">
<div class="emoji-icon" id="emoji1">😀</div>
<div class="plus-icon">+</div>
<div class="emoji-icon" id="emoji2">😂</div>
</div>
<button id="mix-button" class="mix-button">Mix Emojis</button>
<h2>Mixed Emoji:</h2>
<div class="emoji-icon" id="mixed-emoji">😀😂</div>
</div>
</body>
</html>