Fixups for Sting
authorAndrew DeFaria <Andrew@DeFaria.com>
Thu, 16 Nov 2017 20:49:30 +0000 (12:49 -0800)
committerAndrew DeFaria <Andrew@DeFaria.com>
Thu, 16 Nov 2017 20:49:30 +0000 (12:49 -0800)
Also added arrow keys for player controls

Andrew/If I Ever Lose My Faith In You.pro
web/question.mark.html
web/songbook.js

index 1c374bb..e8e75da 100644 (file)
@@ -48,9 +48,9 @@ That didn't go from a, a blessing to a curse
 Never saw no, military solution
 Didn't always end up as something worse but
 
-[E]Let me say this [C#]first
+[E]Let me say this [C#m]first
 
-[Badd2] [B]If I ever [C#sus4]lose my [C#]faith in you [Db5][D] [Esus4] [E]
+[Badd2] [B]If I ever [C#sus4]lose my [C#]faith in you [Dadd#4][D] [Esus4] [E]
 (If I ever lose my faith in you)
 
 [Badd2] [B]There'd be nothing [C#sus4]left for[C#] me to do [Db5][D] [Esus4] [E]
index 3e2b4aa..13fc39b 100644 (file)
@@ -2,9 +2,9 @@
   <div id="helpModal" class="help-modal">
   <h1>Keyboard Shortcuts <kbd class="help-key"><span>?</span></kbd></h1>
     <div id="helpClose" class="help-close">&times;</div><!-- .help-close -->
-    
+
     <div id="helpModalContent" class="help-modal-content">
-      
+
       <div id="helpListWrap" class="help-list-wrap">
 
         <!--
             <span class="help-key-def">Pause/Play</span>
           </li>
           <li class="help-key-unit">
-            <kbd class="help-key"><span>r</span></kbd>
+            <kbd class="help-key"><span>r or up arrow</span></kbd>
             <span class="help-key-def">Return to start</span>
           </li>
           <li class="help-key-unit">
-            <kbd class="help-key"><span>b</span></kbd>
+            <kbd class="help-key"><span>b or left arrow</span></kbd>
             <span class="help-key-def">Rewind 10 secs</span>
           </li>
           <li class="help-key-unit">
-            <kbd class="help-key"><span>f</span></kbd>
+            <kbd class="help-key"><span>f or right arrow</span></kbd>
             <span class="help-key-def">Fast forward 10 secs</span>
           </li>
           <li class="help-key-unit">
index 85a4b18..331ed31 100644 (file)
@@ -1,13 +1,19 @@
-// Javascript functions for controling audio
+// Javascript functions for controlling audio
 starttime = null;
 endtime   = null;
 
+// Keycodes
 spacebar       = 32;
-return2start   = 82;
-backfewsecs    = 66;
-forwardfewsecs = 70;
+leftarrow      = 37;
+uparrow        = 38;
+rightarrow     = 39;
+downarrow      = 40;
 seta           = 65;
+backfewsecs    = 66;
 cleara         = 67;
+forwardfewsecs = 70;
+return2start   = 82;
+
 howmanysecs    = 10;
 
 window.onload = function() {
@@ -41,7 +47,7 @@ window.onload = function() {
 
         e.preventDefault();
         return;
-      } else if (ev.keyCode == return2start) {
+      } else if (ev.keyCode == return2start || ev.keyCode == uparrow) {
         if (starttime != null) {
           song.currentTime = starttime;
         } else {
@@ -49,12 +55,12 @@ window.onload = function() {
         } // if
 
         return;
-      } else if (ev.keyCode == backfewsecs) {
+      } else if (ev.keyCode == backfewsecs || ev.keyCode == leftarrow) {
         song.currentTime -= howmanysecs;
         song.play()
 
         return;
-      } else if (ev.keyCode == forwardfewsecs) {
+      } else if (ev.keyCode == forwardfewsecs || ev.keyCode == rightarrow) {
         song.currentTime += howmanysecs;
         song.play();