📸 āĻāĻ•āϟি āχāĻŽেāϜে āĻ•্āϞিāĻ• āĻ•āϰāϞে ā§Ģāϟি āϞিংāĻ• āĻ–ুāϞāĻŦে

 <!DOCTYPE html>

<html lang="bn">

<head>

  <meta charset="UTF-8">

  <title>āĻāĻ•āϟি āχāĻŽেāϜ, āĻĒাঁāϚāϟি āϞিংāĻ•</title>

  <style>

    body {

      font-family: Arial;

      padding: 20px;

      text-align: center;

    }

    input[type="text"], input[type="file"] {

      margin: 10px 0;

      width: 80%;

      padding: 8px;

    }

    button {

      padding: 10px 20px;

      font-size: 16px;

      cursor: pointer;

    }

    img {

      max-width: 300px;

      margin-top: 20px;

      cursor: pointer;

    }

    textarea {

      width: 90%;

      height: 150px;

      margin-top: 20px;

    }

  </style>

</head>

<body>

  <h2>📸 āĻāĻ•āϟি āχāĻŽেāϜে āĻ•্āϞিāĻ• āĻ•āϰāϞে ā§Ģāϟি āϞিংāĻ• āĻ–ুāϞāĻŦে</h2>


  <input type="file" id="imageInput"><br><br>


  <!-- āĻĒাঁāϚāϟি āϞিংāĻ• āχāύāĻĒুāϟ -->

  <div>

    <input type="text" id="link1" placeholder="🔗 āϞিংāĻ• 1 āĻĻিāύ"><br>

    <input type="text" id="link2" placeholder="🔗 āϞিংāĻ• 2 āĻĻিāύ"><br>

    <input type="text" id="link3" placeholder="🔗 āϞিংāĻ• 3 āĻĻিāύ"><br>

    <input type="text" id="link4" placeholder="🔗 āϞিংāĻ• 4 āĻĻিāύ"><br>

    <input type="text" id="link5" placeholder="🔗 āϞিংāĻ• 5 āĻĻিāύ"><br>

    <input type="text" id="link1" placeholder="🔗 āϞিংāĻ• 6 āĻĻিāύ"><br>

    <input type="text" id="link2" placeholder="🔗 āϞিংāĻ• 7 āĻĻিāύ"><br>

    <input type="text" id="link3" placeholder="🔗 āϞিংāĻ• 8 āĻĻিāύ"><br>

    <input type="text" id="link4" placeholder="🔗 āϞিংāĻ• 9 āĻĻিāύ"><br>

    <input type="text" id="link5" placeholder="🔗 āϞিংāĻ• 10 āĻĻিāύ"><br>

  </div>


  <button onclick="generateClickableImage()">Create Clickable Image</button>


  <div id="output"></div>


  <script>

    function generateClickableImage() {

      const file = document.getElementById('imageInput').files[0];

      const links = [

        document.getElementById('link1').value,

        document.getElementById('link2').value,

        document.getElementById('link3').value,

        document.getElementById('link4').value,

        document.getElementById('link5').value

      ];


      if (!file || links.some(link => !link)) {

        alert("āĻĻ⧟া āĻ•āϰে āχāĻŽেāϜ āĻāĻŦং ā§Ģāϟি āϞিংāĻ• āĻĻিāύ!");

        return;

      }


      const reader = new FileReader();

      reader.onload = function (e) {

        const base64 = e.target.result;

        const html = `

          <img src="${base64}" onclick="openAllLinks()" alt="Clickable Image">

          <script>

            function openAllLinks() {

              ${links.map(link => `window.open('${link}', '_blank');`).join('\n')}

            }

          <\/script>

        `;


        document.getElementById('output').innerHTML = `

          <h3>✅ āύিāϚেāϰ āĻ•োāĻĄāϟি āĻ•āĻĒি āĻ•āϰে āφāĻĒāύাāϰ āĻ“ā§ŸেāĻŦāϏাāχāϟে āĻĒেāϏ্āϟ āĻ•āϰুāύ:</h3>

          <textarea readonly>${html}</textarea>

          <div>${html}</div>

        `;

      };

      reader.readAsDataURL(file);

    }

  </script>

</body>

</html>


Post a Comment

0 Comments