Skip to content

Commit

Permalink
created var for window log
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketinventor committed Nov 22, 2016
1 parent f98382d commit 81a3f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion In Javascript/airgap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81a3f76

Please sign in to comment.