Newer
Older
WebShareDemo / install.html
root on 25 May 2022 1 KB initial comit
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Web Share Target Demo</title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <!-- import the webpage's stylesheet -->
  9. <link rel="stylesheet" href="./style.css">
  10. <!-- Manifest -->
  11. <link rel="manifest" href="./manifest.json">
  12. </head>
  13. <body>
  14. <h1>
  15. Web Share Target Demo
  16. </h1>
  17. <p id="requireHTTPS" class="hidden">
  18. <b>STOP!</b> This page <b>must</b> be served over HTTPS.
  19. Please <a>reload this page via HTTPS</a>.
  20. </p>
  21. <p>
  22. The Web Share Target API allows installed web apps to register
  23. with the underlying OS as a share target to receive shared content
  24. from either the Web Share API or system events, like the
  25. OS-level share button.
  26. </p>
  27. <p id="shareNotSupported" class="hidden">
  28. <code>navigator.share</code> is not supported in this
  29. browser, try sharing from another app instead.
  30. </p>
  31. <p id="instructions">
  32. <b>Try it out:</b>
  33. Install me, then try sharing an image from another app.
  34. </p>
  35. <pre id="result">
  36. </pre>
  37.  
  38. <!-- Install/Share buttons, disabled by default -->
  39. <div id="installContainer">
  40. <button id="butInstall" type="button" disabled>
  41. Install
  42. </button>
  43. </div>
  44.  
  45. <!-- import the webpage's javascript file -->
  46. <script src="./script.js"></script>
  47. </body>
  48. </html>
Buy Me A Coffee