Skip to the content

Suido水道

Turn pipes to connect the pumps and drains, through fixed levels or seeded puzzles.

Suido means water supply in Japanese. About the name

Contents

How-to

Plain HTML and CDNs

Put a Suido board on a plain page with one script tag from jsDelivr or unpkg.

A page needs no build step. The element/define entry registers the <suido-board> tag; a script tag from a CDN loads it, and the tag draws itself in the page. What the board needs is in the package, so nothing else is fetched.

jsDelivr

jsDelivr serves the package's own files.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Suido from jsDelivr</title>
    <script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/suido@1/dist/element-define.js"></script>
  </head>
  <body>
    <suido-board grid="7x7" level="12" hints></suido-board>
  </body>
</html>

unpkg

unpkg serves them too.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Suido from unpkg</title>
    <script type="module" src="https://unpkg.com/@johnmorrisdotca/suido@1/dist/element-define.js"></script>
  </head>
  <body>
    <suido-board grid="7x7" level="12" hints></suido-board>
  </body>
</html>

Notes

  • Use <script type="module">. A classic script cannot import.
  • The address names the major version (@1), so a release that changes what you use is one you choose.
  • The page reaches the board through its attributes and events: see embed in an iframe for the attribute names, and troubleshooting if nothing appears.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/suido 1.7.0.