From 31e0f3007da1460275beea9703912856531b975a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 12 Mar 2018 22:04:39 -0400 Subject: * Easy Transp buttons: Fix JS --- page.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'page.php') diff --git a/page.php b/page.php index 60728d2..4f04e95 100644 --- a/page.php +++ b/page.php @@ -157,7 +157,6 @@ function renderEasyTransp( $transp, $num, $songKeys = array() ) //up two semitones $classT = 'btn col-xs-12'; $nsongKey = 'Z'; - $data = ''; $words = "Transposed up 2 semitones"; if (isset ( $songKeys[0] ) ) { @@ -167,11 +166,8 @@ function renderEasyTransp( $transp, $num, $songKeys = array() ) $presentKey = transpadd( $origKey, $transp ); $s .= getKeyButton( "Transpose down to", $transp - 2, $pastKey, $num, $classT ); $s .= getKeyButton( "Current Key: ", $transp, $presentKey, $num, $classT ); - $data = "data-key='$presentKey' data-words='Current Key: '"; - $nsongKey = transpadd( $presentKey, 2) ?: 'Z'; $words = "Transpose up to "; - $data = "data-key='$nsongKey' data-words='$words'"; } $s .= getKeyButton( $words, $transp + 2, $nsongKey, $num, $classT ); @@ -182,7 +178,7 @@ function getKeyButton( $text, $value, $key, $num, $classT ) { $zkey = $key ?: 'Z'; $key = ($key == 'Z') ? '' : $key; - return "" + return "" . "$text $key"; } -- cgit 1.4.1