Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>Table Generator</title>
</head>
<body ng-app="sotdl">
  <div ng-controller="diceController">
    <label>Low Challenge
      <input type="text" ng-model="lowChallenge">
    </label>
    <label>Average Challenge
      <input type="text" ng-model="avgChallenge">
    </label>
    <label>High Challenge
      <input type="text" ng-model="highChallenge">
    </label>
    <button ng-click="generateTable();">Generate Table</button>
    <table>
    <thead>
      <th>Roll</th>
      <th>Challenge</th>
      <th>Challenge for One of 1d6</th>
    </thead>
    <tbody>
      <tr ng-repeat="challenge in challenges track by $index">
        <td>{{$index + 2}}</td>
        <td>{{challenge}}</td>
        <td>{{challenge/3.5}}</td>
      </tr>
    </tbody>
  </table>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
natwebbpro
0viewers