mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-07 10:50:53 -08:00
add html for 78_Sine_Wave
This commit is contained in:
committed by
Alexander Wunschik
parent
f7deaba4a1
commit
07ef4d9dc0
16
78_Sine_Wave/javascript/sinewave.html
Normal file
16
78_Sine_Wave/javascript/sinewave.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>SINE WAVE</title>
|
||||||
|
<link rel="stylesheet" href="../../00_Utilities/javascript/style_terminal.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<pre id="output"></pre>
|
||||||
|
<script>
|
||||||
|
/* redirect console.log messages to the output-element in the DOM */
|
||||||
|
window.console = {
|
||||||
|
log: (text) => document.getElementById("output").innerHTML += text + "<br>"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script src="sinewave.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user