WebShareDemo / install.html
root on 25 May 2022 1 KB initial comit
<!DOCTYPE html>
<html lang="en">
    <title>Web Share Target Demo</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- import the webpage's stylesheet -->
    <link rel="stylesheet" href="./style.css">
    <!-- Manifest -->
    <link rel="manifest" href="./manifest.json">
      Web Share Target Demo
    <p id="requireHTTPS" class="hidden">
      <b>STOP!</b> This page <b>must</b> be served over HTTPS.
      Please <a>reload this page via HTTPS</a>.
      The Web Share Target API allows installed web apps to register
      with the underlying OS as a share target to receive shared content
      from either the Web Share API or system events, like the
      OS-level share button. 
    <p id="shareNotSupported" class="hidden">
      <code>navigator.share</code> is not supported in this
      browser, try sharing from another app instead.
    <p id="instructions">
      <b>Try it out:</b>
      Install me, then try sharing an image from another app.
    <pre id="result">

    <!-- Install/Share buttons, disabled by default -->
    <div id="installContainer">
      <button id="butInstall" type="button" disabled>

    <!-- import the webpage's javascript file -->
    <script src="./script.js"></script>