<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="stylesheet" href="max80.css" />
    <title class="abcbus">MAX80: ABC Bus</title>
  <script src="max80.js"></script>
  </head>
  <body>
    <x-inc src="head.html"></x-inc>
    <h1 class="abcbus">ABC Bus</h1>
    <div class="wip"><p>This section is a work in progress...</p></div>
    <form id="abcconfig" class="setconfig" action="sys/setconfig" method="post"
	  onsubmit="uploadform()" data-ref="10" data-ref-url="abcbus.html">
      <fieldset class="abchost">
	<legend>Host system</legend>
	<div class="radio">
	  <b>Host system type</b>
	  <div>
	    <label class="auto">
	      <input type="radio" name="abc.hosttype" value="auto" />
	      <span>Autodetect</span>
	    </label>
	    <label class="abc80">
	      <input type="radio" name="abc.hosttype" value="abc80" />
	      <span>ABC80</span>
	    </label>
	    <label class="abc800">
	      <input type="radio" name="abc.hosttype" value="abc800" />
	      <span>ABC800</span>
	    </label>
	  </div>
	</div>
	<p class="help">Autodetection can fail in some type
	of expansion boxes, possibly depending on jumpering.</p>
      </fieldset>
      <fieldset class="pun80">
	<legend>Network</legend>
	<label class="serv">
	  <b>ABC (PUN80) network server</b>
	  <input type="text" class="host" name="abc.netserv.addr" />
	  <span class="sep">:</span>
	  <input type="text" class="port" name="abc.netserv.port" placeholder="4680" />
	</label>
	<p class="help">The network server software is integrated
	  with <a href="https://www.abc80.org/pub/abc80sim/">abc80sim</a>
	  version 3.7.0 or later.</p>
      </fieldset>
      <button class="submit" type="submit" disabled>Update configuration</button>
    </form>
    <script>loadform('abcconfig','sys/getconfig');</script>
  </body>
</html>