aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fan_speed.js
blob: 4c8349e35a63e57e024ceec44a767611203e00b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var value = 0;

function update(node, value) {
    node.value = value;
    node.parentNode.getElementsByTagName('progress')[0].value = value;
}

module.exports = {
    set: function(node) {
        value = node.value;
        update(node, value);
    }
}