Example #1
0
        <button class="btn btn-md btn-primary btn-block" id="btnLoadFile" name="submit" type="submit">Load File</button>
      </form>

      <div class="alert alert-info" id="fName"></div>
      <table class="table table-sm table-nonfluid center-table table-bordered">
        <thead class="thead-inverse">
          <tr>
            <th>State</th>
            <th>0</th>
            <th>1</th>
          </tr>
        </thead>
        <tbody>
          <?php 
if (isset($_POST['submit'])) {
    echo $objDFA->transitionToTr();
}
?>
        </tbody>
      </table>

      <form id="formInputString">
        <div class="input-group">
          <span class="input-group-addon" id="basic-addon3">Input string</span>
          <input type="text" class="form-control" id="inputString" aria-describedby="basic-addon3" />
        </div>
        <div class="alert alert-info" id="outputDFA">
          Type the input string on the textbox above
        </div>
      </form>
    </div>