<input type="range" id="one"><div id="oneValue">50</div>
<input type="range" id="two"><div id="twoValue">50</div>
<div id="calc">$100.00</div>
$(document).ready(function() {
var $oneRange = $('#one');
var $twoRange = $('#two');
var $oneValue = $('#oneValue');
var $twoValue = $('#twoValue');
var $calc = $('#calc');
function updateRange() {
$oneValue.text($oneRange.val());
$twoValue.text($twoRange.val());
$calc.text($oneRange.val() * 1 + $twoRange.val() * 1);
}
$('#one,#two').on('change', updateRange);
});
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {
'Content-Type': 'text/plain'
});
res.end('Hello World\n');
}).listen(1337);
console.log('Server running at http://127.0.0.1:1337/');
var path = require('path');
var nwPath = process.execPath;
var nwDir = path.dirname(nwPath);