no.js add class

HTML

<script src="https://ifedapoolarewaju.github.io/nojs-site/no.min.js"></script>
<table>
<tr class="test">
  <td no-js on-load-add-class=".test red-color">TD1</td>
  <td>TD2</td>
</tr>
</table>
<button no-js on-click-add-class=".target red-color">
  add class
</button>

<button no-js on-click-remove-class=".target red-color">
  remove class
</button>

<button no-js on-click-toggle-class=".target red-color">
  toggle class
</button>

<div class="target">
  my color would change
</div>
<br>

CSS

.red-color {
  color: red;
}

JavaScript

// no javascript.