view service/frontDoorLock/simple.html @ 1574:6618d481421c dependabot/pip/service/colplay/pillow-8.1.1

Bump pillow from 3.1.1 to 8.1.1 in /service/colplay Bumps [pillow](https://github.com/python-pillow/Pillow) from 3.1.1 to 8.1.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/3.1.1...8.1.1) Signed-off-by: dependabot[bot] <support@github.com>
author dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
date Thu, 18 Mar 2021 20:13:07 +0000
parents baf1acaa9ac9
children
line wrap: on
line source

<!doctype html>
<html>
  <head>
    <title>front door lock simple</title>
    <meta charset="utf-8" />
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>

    <style>
     button {
         min-width: 60px;
         min-height: 40px;
     }
    </style>
    
    <p>Simple door control:</p>
    
    <button id="lock">Lock now</button> <button id="unlock">Unlock now</button>

    <div id="result"></div>
    
    <script>
     (()=>{

       const send = (state) => {
         const resultReport = document.querySelector('#result');
         resultReport.innerText = 'sending..';
         fetch('../simpleState', {
           method: 'POST',
           body: state,
           headers: new Headers({
             'Content-type': 'text/plain'
           })}).then((resp) => {
             resultReport.innerText = `ok=${resp.ok}`;
           });
         resultReport.innerText = 'sending....';
       };      
       document.querySelector('#lock').addEventListener('click', () => { send('lock'); });
       document.querySelector('#unlock').addEventListener('click', () => { send('unlock'); });
     })();
    </script>

    <style>
     .served-resources {
         margin-top: 4em;
         border-top: 1px solid gray;
         padding-top: 1em;
     }
     .served-resources a {
         padding-right: 2em;
     }
    </style>

    <div class="served-resources">
      <a href="../">root</a>
      <a href="../simple">/simple/</a>
      <a href="../stats/">/stats/</a>
      <a href="../graph">/graph</a>
      <a href="../graph/events">/graph/events</a>
      <a href="../output">(post) output</a>
    </div>
  </body>
</html>