Skip to content

Commit

Permalink
moved var definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketinventor committed Nov 23, 2016
1 parent 81a3f76 commit 15419f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion In Javascript/airgap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function now() {

var NSEC_PER_SEC = 1000000000;
var register = 3.1415;
var logs = document.getElementById('logs');

function square_am_signal(time, freq) {
window.logs.value += "\nPlaying / " + time + " seconds / " + freq + "Hz";
Expand All @@ -29,6 +28,7 @@ function square_am_signal(time, freq) {
}

function start() {
var logs = document.getElementById('logs');
var song = document.getElementById("tones").value.split("\n");
var length = song.length;
var line, time, freq;
Expand Down

0 comments on commit 15419f5

Please sign in to comment.