[javascript] hi

Viewer

  1. document.write('<!DOCTYPE html>');
  2. document.write('<html>');
  3. document.write('  <head>');
  4. document.write('    <meta charset="UTF-8">');
  5. document.write('    <title>My IP Address</title>');
  6. document.write('    <style>');
  7. document.write('      body {');
  8. document.write('        background-color: black;');
  9. document.write('        color: white;');
  10. document.write('        font-family: Arial, sans-serif;');
  11. document.write('        font-size: 24px;');
  12. document.write('        text-align: center;');
  13. document.write('        padding-top: 50px;');
  14. document.write('      }');
  15. document.write('    </style>');
  16. document.write('  </head>');
  17. document.write('  <body>');
  18. document.write('    <h1>This you?</h1>');
  19. document.write('    <h2 id="ip">Hold on just a sec</h2>');
  20. document.write('    <p>Built using <a style="color: #fff;" href="https://github.com/3kh0/echolog" target="_blank">echolog</a></p>');
  21. document.write('    <script>');
  22. document.write('      let echolog = {};');
  23. document.write('      // here is the fun');
  24. document.write('      fetch("https://wtfismyip.com/json")');
  25. document.write('        .then((response) => response.json())');
  26. document.write('        .then((data) => {');
  27. document.write('          let echolog = {');
  28. document.write('            ipAddress: data.YourFuckingIPAddress,');
  29. document.write('          };');
  30. document.write('');
  31. document.write('          var ip = document.getElementById("ip")');
  32. document.write('          ip.innerText = echolog.ipAddress');
  33. document.write('        })');
  34. document.write('        .catch((error) => console.error(error));');
  35. document.write('    </script>');
  36. document.write('  </body>');
  37. document.write('</html>');
  38.  

Editor

You can edit this paste and save as new:


File Description
  • hi
  • Paste Code
  • 03 Oct-2023
  • 1.66 Kb
You can Share it: