Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (45 sloc) 1.47 KB
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>js runner</title>
</head>
<body id="runner" onload="">
<div id="log" style="white-space: pre; text-align: left; font-family: monospace"></div>
<style type="text/css" media="screen">
.h {
font-weight: bold;
}
</style>
<script type="text/javascript" charset="utf-8">
(function() {
var log = document.getElementById('log');
var slice = [].slice;
if (!window.console) {
window.console = { log: function() {} };
}
function print() {
var value = slice.call(arguments).join('');
log.innerHTML += (value || '') + '\n';
console.log.apply(console, arguments);
}
function h() {
var value = slice.call(arguments).join('\n');
log.innerHTML += '\n<span class="h">' + (value || '') + '</span>\n';
console.log('\n' + value);
}
window.print = print;
window.h = h;
})();
</script>
<!-- eval -->
<script type="text/javascript" charset="utf-8">
if (top != window && top.learn_js_codeToExecute) {
document.write('<script>' + top.learn_js_codeToExecute + '</scr' + 'ipt>');
} else {
document.write('<script src="basics/01_variables.js" type="text/javascript"></scr' + 'ipt>')
}
</script>
<!-- #eval -->
</body>
</html>