From e27656f0346d052b714f2ba9123bb0a783236123 Mon Sep 17 00:00:00 2001 From: jeremy Date: Thu, 25 Sep 2014 11:23:49 -0400 Subject: [PATCH] Changed root quiz; help text help text is now var in HelpText.js Random Root does not revert to note names --- HelpText.js | 31 +++++++++++++++++++++++++++++++ boxfrets.js | 6 ++++-- fretboard.html | 36 ++---------------------------------- index.html | 40 ++++++++-------------------------------- 4 files changed, 45 insertions(+), 68 deletions(-) create mode 100644 HelpText.js diff --git a/HelpText.js b/HelpText.js new file mode 100644 index 0000000..91fb015 --- /dev/null +++ b/HelpText.js @@ -0,0 +1,31 @@ +var HELP_TEXT = ""; \ No newline at end of file diff --git a/boxfrets.js b/boxfrets.js index e3662b3..921a48a 100644 --- a/boxfrets.js +++ b/boxfrets.js @@ -49,8 +49,9 @@ // The 'New Interval Quiz' will randomly paint a new interval for the user to gues the relationship. // constants +// + var CHECKANSWER = 'Check Answer!'; -var HELP_TEXT = "HEre is some help"; var GUITAR_STRINGS; // will be array of strings var INTERVAL_COLORS = [ @@ -666,7 +667,7 @@ var ctl_newIntQuiz = function(){ var ctl_newRandRoot = function(){ clear_fretboard(); - INTERVALMODE = false; + //INTERVALMODE = false; //get random scale // get randonm note on FB var note = get_random_stringFret(); // 0 = string, 1 = fret @@ -1135,6 +1136,7 @@ jQuery(document).ready(function() { // bind help button to show help dialog $('#btnHelp').click(function(){ + $( "#helpText" ).html(HELP_TEXT); $( "#helpText" ).dialog( "open" ); }); diff --git a/fretboard.html b/fretboard.html index 382f9a3..4d1cf97 100644 --- a/fretboard.html +++ b/fretboard.html @@ -11,7 +11,7 @@ - + @@ -28,39 +28,7 @@
- +
diff --git a/index.html b/index.html index 99010da..20370fa 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,8 @@ Fretboard Studies + +