


<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <meta charset="utf-8"/>
    <style>
        body {
            font-family: Arial, sans-serif;
            width: 270px;
            height: 100px;
            margin: auto;
            margin-top: 10px;
            
        }

        .draggable1, .draggable2, .draggable3, .draggable4, .draggable5, .draggable6, .draggable7, .draggable8, .draggable9 {
            width: 58px;
            height: 54px;
            position: absolute;
            border: 1.5px solid cyan;
            border-radius: 13px;
            background-color: transparent;
            cursor: move; 
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 2px;
        }

        #menuView {
            top: 300px;
            left: 305px;
        }

        #menuView2 {
            top: 300px;
            left: 305px;
        }

        #menuView3 {
            top: 300px;
            left: 305px;
        }

        #menuView4 {
            top: 300px;
            left: 305px;
        }

        #menuView5 {
            top: 300px;
            left: 305px;
        }

        #menuView6 {
            top: 300px;
            left: 305px;
        }

        #menuView7 {
            top: 300px;
            left: 305px;
        }

        #menuView8 {
            top: 300px;
            left: 305px;
        }

        #menuView9 {
            top: 300px;
            left: 305px;
        }

        .switch {
            transform: scale(1);
            border: 2.5px solid transparent;
            border-radius: 16px;
        }

        input[type="checkbox"].switch {
            -webkit-appearance: none;
            appearance: none;
            width: 51px;
            height: 31px;
            background-color: transparent;
            position: relative;
            outline: none;
            background-color:gray
        }

        input[type="checkbox"].switch:checked {
            background-color: rgb(0, 255, 55);
        }

        input[type="checkbox"].switch::before {
            content: '';
            position: absolute;
            top: 0px;
            left: 0px;
            width: 27px;
            height: 27px;
            border-radius: 50%;
            background-color: rgb(255, 255, 255);
            transition: 0.2s;
        }

        input[type="checkbox"].switch:checked::before {
            left: 20px;
            
        }
        
        #tsw {
            color:rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }
        #tsw2 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }
        #tsw3 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

        #tsw4 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

  #tsw5 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

        #tsw6 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

        #tsw7 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

        #tsw8 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

        #tsw9 {
            color: rgb(255, 0, 0);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 5px;
        }

        #Me {
            color: rgb(0, 255, 200);
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            font-size: 15px;
            margin-bottom: 5px;
            
        }


    </style>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            const items = [
                {element: document.getElementById('menuView')},
                {element: document.getElementById('menuView2')},
                {element: document.getElementById('menuView3')},
                {element: document.getElementById('menuView4')},
                {element: document.getElementById('menuView5')},
                {element: document.getElementById('menuView6')},
                {element: document.getElementById('menuView7')},
                {element: document.getElementById('menuView8')},
                {element: document.getElementById('menuView9')}
            ];

            items.forEach((item, i) => {
                let active = false;
                let currentX = 0, currentY = 0, initialX = 0, initialY = 0, xOffset = 0, yOffset = 0;

                item.element.addEventListener('mousedown', e => dragStart(e), false);
                item.element.addEventListener('touchstart', e => dragStart(e), false);
                document.addEventListener('mouseup', dragEnd, false);
                document.addEventListener('touchend', dragEnd, false);
                document.addEventListener('mousemove', e => drag(e), false);
                document.addEventListener('touchmove', e => drag(e), false);

                function dragStart(e) {
                    if (e.type === "touchstart") {
                        initialX = e.touches[0].clientX - xOffset;
                        initialY = e.touches[0].clientY - yOffset;
                    } else {
                        initialX = e.clientX - xOffset;
                        initialY = e.clientY - yOffset;
                    }
                    active = true;
                }

                function dragEnd() {
                    initialX = currentX;
                    initialY = currentY;
                    active = false;
                }

                function drag(e) {
                    if (active) {
                        e.preventDefault();
                        if (e.type === "touchmove") {
                            currentX = e.touches[0].clientX - initialX;
                            currentY = e.touches[0].clientY - initialY;
                        } else {
                            currentX = e.clientX - initialX;
                            currentY = e.clientY - initialY;
                        }
                        xOffset = currentX;
                        yOffset = currentY;
                        item.element.style.transform = `translate3d(${currentX}px, ${currentY}px, 0)`;
                    }
                }
            });
        });



}
        // New functions for new buttons
     

    </script>
</head>
<body>
    <div id="menuView" class="draggable1">
        <label id="tsw">SpeedBASIC</label>
        <input type="checkbox" class="switch" onclick="Speed(this)">
    </div>


    
<label id="Me">Telegram @Basic_X</label>

</div>


</body>
</html>
