79 lines
2.2 KiB
HTML
79 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Syndicate: IoT Demo</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link href="style.css" rel="stylesheet">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.1/mustache.min.js"></script>
|
|
<script src="../../third-party/jquery-2.2.0.min.js"></script>
|
|
<script src="../../dist/syndicatecompiler.js"></script>
|
|
<script src="../../dist/syndicate.js"></script>
|
|
<script type="text/syndicate-js" src="index.js"></script>
|
|
</head>
|
|
<body>
|
|
<h1>IoT Demo</h1>
|
|
|
|
<h2>Devices</h2>
|
|
|
|
<section>
|
|
<section>
|
|
<h3>TV</h3>
|
|
<div class="flamecontainer"><img class="flames" src="img/flames.gif"></div>
|
|
<div id="tv-container">
|
|
|
|
<ul id="tv" class="alerts">
|
|
<template id="alert_template">
|
|
<li>{{text}}</li>
|
|
</template>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h3>Stove switch</h3>
|
|
<div id="stove-switch">
|
|
<template id="stove_element_template">
|
|
<img src="{{imgurl}}">
|
|
</template>
|
|
</div>
|
|
<button id="stove-switch-on">Turn on switch</button>
|
|
<button id="stove-switch-off">Turn off switch</button>
|
|
</section>
|
|
|
|
<section>
|
|
<h3>Remote control</h3>
|
|
<button id="remote-control"><img src="img/remote.png"></button>
|
|
</section>
|
|
|
|
<section>
|
|
<h3>Power draw meter</h3>
|
|
<div id="power-draw-meter">
|
|
<template id="power_draw_template">
|
|
<p>Power draw: <span class="power-meter-display">{{watts}} W</span></p>
|
|
</template>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
<h2>Fault injection</h2>
|
|
|
|
<section>
|
|
<section>
|
|
<h3>Chaos Monkey</h3>
|
|
<div>
|
|
<button id="kill-power-draw-monitor">Kill power draw monitor</button>
|
|
<button id="kill-stove-switch">Kill stove-switch</button>
|
|
</div>
|
|
<div>
|
|
<button id="spawn-power-draw-monitor">Spawn power draw monitor</button>
|
|
<button id="spawn-stove-switch">Spawn stove-switch</button>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
<hr>
|
|
<pre id="ds-state"></pre>
|
|
</body>
|
|
</html>
|