diff --git a/In Javascript/airgap.js b/In Javascript/airgap.js index f690fe8..0dfe7a8 100644 --- a/In Javascript/airgap.js +++ b/In Javascript/airgap.js @@ -8,9 +8,10 @@ function now() { var NSEC_PER_SEC = 1000000000; var register = 3.1415; +var logs = document.getElementById('logs'); function square_am_signal(time, freq) { - document.getElementById('logs').value += "Playing / " + time + " seconds / " + freq + "Hz\n"; + window.logs.value += "\nPlaying / " + time + " seconds / " + freq + "Hz"; var period = NSEC_PER_SEC / freq; var start = now(); var end = now() + time * NSEC_PER_SEC;