Sha256: b3f8d1825cc3f37fc526438ae012d54cd912d8940a67d0fc0f9bb36268785dc6
Contents?: true
Size: 755 Bytes
Versions: 11
Compression:
Stored size: 755 Bytes
Contents
/* eslint-env browser */ var app = document.getElementById('app'); var time = document.getElementById('time'); var timer = setInterval(updateClock, 1000); function updateClock() { time.innerHTML = (new Date()).toString(); } // Edit these styles to see them take effect immediately app.style.display = 'table-cell'; app.style.width = '400px'; app.style.height = '400px'; app.style.border = '3px solid #339'; app.style.background = '#99d'; app.style.color = '#333'; app.style.textAlign = 'center'; app.style.verticalAlign = 'middle'; // Uncomment one of the following lines to see error handling // require('unknown-module') // a = /regex/q if (module.hot) { module.hot.accept(); module.hot.dispose(function() { clearInterval(timer); }); }
Version data entries
11 entries across 11 versions & 1 rubygems