result.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <script async src="https://cdn.ampproject.org/v0.js"></script>
  6. <title>Your link</title>
  7. <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  8. <script type="application/ld+json">
  9. {
  10. "@context": "http://schema.org",
  11. "@type": "NewsArticle",
  12. "headline": "Open-source framework for publishing content",
  13. "datePublished": "2015-10-07T12:02:41Z",
  14. "image": [
  15. "logo.jpg"
  16. ]
  17. }
  18. </script>
  19. <link rel="stylesheet" href="https://newcss.net/lite.css">
  20. <link rel="stylesheet" href="https://newcss.net/theme/night.css">
  21. <script>
  22. function copyLink() {
  23. const copyText = document.getElementById("link");
  24. copyText.select();
  25. navigator.clipboard.writeText(copyText.value)
  26. .then(() => info.textContent = "Copied!")
  27. .catch(err => console.error(err));
  28. //let info = document.getElementById("info");
  29. //info.textContent = "Copied!";
  30. }
  31. </script>
  32. </head>
  33. <body>
  34. <input type="text" value="{{.}}" id="link"/>
  35. <button onclick="copyLink()">Copy link</button>
  36. <div id="info"></div>
  37. </body>
  38. </html>