cyclejs/cycle-core

View on GitHub
examples/advanced/routing-view/index.html

Summary

Maintainability
Test Coverage
<!doctype html>
<html>
  <head>
    <title>Simple Routing</title>
    <style>
      div {
        margin: .2em;
      }
      nav {
        width: 100%;
        margin: 0 auto;
        padding: .5em;
        text-align: center;
      }
      nav > span {
        padding: .3em;
        margin: .2em;
        font-size: 2em;
        cursor: pointer;
        background-color: #aeaeae;
      }

      nav > span.active {
        background-color: #6e6e6e;
        color: #cccccc;
      }

      nav > span:hover {
        opacity: 0.4;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <script src="dist/main.js"></script>
  </body>
</html>