moel@348: <!-- This Source Code Form is subject to the terms of the Mozilla Public moel@348: - License, v. 2.0. If a copy of the MPL was not distributed with this moel@348: - file, You can obtain one at http://mozilla.org/MPL/2.0/. moel@348: moel@348: - Copyright (C) 2012 Prince Samuel <prince.samuel@gmail.com> --> moel@348: moel@348: <html> moel@348: <head> moel@348: <title>Open Hardware Monitor - Web Version</title> moel@348: <script type='text/javascript' src='js/jquery-1.7.2.min.js'></script> moel@348: <script type='text/javascript' src='js/jquery.tmpl.min.js'></script> moel@348: <script type='text/javascript' src='js/knockout-2.1.0.min.js'></script> moel@348: <script type='text/javascript' src='js/knockout.mapping-latest.min.js'></script> moel@348: moel@348: <link href="css/jquery.treeTable.css" rel="stylesheet" type="text/css" /> moel@348: <script type='text/javascript' src='js/jquery.treeTable.min.js'></script> moel@348: moel@348: <link href="css/custom-theme/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" /> moel@348: <link href="css/ohm_web.css" rel="stylesheet" type="text/css" /> moel@348: <script type='text/javascript' src='js/jquery-ui-1.8.16.custom.min.js'></script> moel@348: <style> moel@348: #toolbar { moel@348: padding: 10px 10px; moel@348: } moel@348: #slider { moel@348: display: inline-block; moel@348: width: 100px; moel@348: } moel@348: </style> moel@348: moel@348: moel@348: <script type='text/javascript' src='js/ohm_web.js'></script> moel@348: moel@348: </head> moel@348: moel@348: <body> moel@348: moel@348: <div class="header"> moel@348: moel@348: <span id="toolbar" class="ui-widget-header ui-corner-all"> moel@348: <button id="refresh" data-bind="click: update">Refresh</button> moel@348: <input type="checkbox" id="auto_refresh" data-bind="checked: auto_refresh"/><label for="auto_refresh">Auto Refresh</label> moel@348: <div id="slider"></div> <span for="auto_refresh" id="lbl"></span> moel@348: </span> moel@348: </div> moel@348: moel@348: <div class="main"> moel@348: <table data-bind="treeTable: flattened, treeOptions: { initialState: 'expanded', clickableNodeNames: true } "> moel@348: <thead><td>Sensor</td><td>Min</td><td>Value</td><td>Max</td> moel@348: <tbody data-bind="foreach: flattened"> moel@348: <tr data-bind="attr: { 'id': 'node-' + id(), 'class': parent.id()?'child-of-node-' + parent.id():'' }"> moel@348: <td data-bind="html: '<img src=' + ImageURL() + ' /> ' + Text()"></td> moel@348: <td data-bind="text: Min"></td> moel@348: <td data-bind="text: Value"></td> moel@348: <td data-bind="text: Max"></td> moel@348: </tr> moel@348: </tbody> moel@348: </table> moel@348: </div> moel@348: </body> moel@348: </html>