Skip to main content

✅ | Emoji-Magnifier.php

Here's a page to generate some huge emojis.

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=0.8">
    <title>Emoji Magnifier</title>
    <style>
        #emoji {
            font-size: 269px;
            margin-top: 20px;
            text-align: center;
            /* Initial background color */
            background-color: #00000000;
            /*  display: inline-block;
            /*  border: 1px solid #000; /* Optional: adds a border around the emoji */
        }
        @media (max-width: 980px) {
          body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            background-color: #007eca;
          }
        }
        @media (min-width: 981px) {
          body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            background-color: #007eca;
            background-image: url("https://dl.itslittlekevin.com/projects/5069.png");
            background-repeat: no-repeat;
            background-position: right center;
            background-size: auto 100%;
          }
        }
        h1, p, h4 {
          text-shadow: 2px 2px 2px #00000055;
            }
        * {
        color: white;
        }
        button {
        font-size: 15px;
        background-color: #00325565;
        padding: 5px 15px;
        border-radius: 5px;
        border-width: 0px;
        margin: 5px;
        cursor: pointer;
        }
        h4 a {
        text-decoration: none;
        }
        input.custom-input {
        color: black;
        width: 45x; /* Width of the input field */
        height: 25px; /* Height of the input field */
        border: 0px solid #3498db; /* Border color and width */
        border-radius: 5px; /* Rounded corners */
        }
        input.custom-color {
        color: black;
        width: 45x; /* Width of the input field */
        height: 25px; /* Height of the input field */
        border-radius: 5px; /* Rounded corners */
        padding: 5px 10px
        align-items: center
        }    
        #app {
        text-align: center;
    }
  </style>
</head>
<body>
    <h1 align=center>表情放大器 <br> Emoji Magnifier</h1>
    <div> <input type="number" class="custom-input" id="font-size" placeholder="Default size 270(px)" onchange="updateFontSize()">&nbsp; |&nbsp; <input type="text" id="emoji-input" class="custom-input" placeholder="Input an emoji, e.g.😅" oninput="updateEmoji()"></div>
    <p></p>
    <div id="emoji">😅</div>
    <div><h4>Please Select Background Color ↗ <input type="color" id="bg-color" value="#007eca" background-color="#007eca" class="custom-color" onchange="updateBgColor()"></h4></div>
    <div id="emoji"></div>
    <h4><a href="https://itslittlekevin.com/gadgetslist">»返回工具列表 | Return to Gadgets List«</a></h4>
    <p>© itsLittleKevin · All rights reserved.</p>

    <script>
        function updateEmoji() {
            var emoji = document.getElementById('emoji-input').value;
            document.getElementById('emoji').textContent = emoji;
        }

        function updateBgColor() {
            var color = document.getElementById('bg-color').value;
            document.getElementById('emoji').style.backgroundColor = color;
        }

        function updateFontSize() {
            var size = document.getElementById('font-size').value;
            document.getElementById('emoji').style.fontSize = size + 'px';
        }
    </script>
</body>
</html>