File: index.html

package info (click to toggle)
node-jade 1.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,984 kB
  • ctags: 315
  • sloc: makefile: 4
file content (10 lines) | stat: -rw-r--r-- 608 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html><html><head></head><body><textarea id="input" placeholder="write jade here" style="width: 100%; min-height: 400px;">p
  author
    != myName</textarea><pre style="background: #ECECEC;width: 100%; min-height: 400px;"><code id="output"></code></pre><script src="../../jade.js"></script><script>var input = document.getElementById('input');
var output = document.getElementById('output');
setInterval(function () {
  jade.render(input.value, {myName: 'Forbes Lindesay', pretty: true}, function (err, res) {
    if (err) throw err;
    output.textContent = res;
  })
}, 500)</script></body></html>