<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * This file defines the English(USV5.2)keyboard layout.
 *
 * Shift keys now separated and light up correctly - right shift for upper case
 * and symbols on the left side of the keyboard. Left shift lights up
 * for upper case and symbols on the right side of the keyboard.
 *
 * @package    mod_mootyper
 * @copyright  2019 AL Rachels (drachels@drachels.com)
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

 require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/config.php');
 require_login($course, true, $cm);
?>
<div id="innerKeyboard" style="margin: 0px auto;display: inline-block;
<?php // phpcs:ignore
echo (isset($displaynone) && ($displaynone == true)) ? 'display:none;' : '';
?>
">
    <div id="masterlayoutfinger" class="masterlayoutfinger">
        <section>
            <div class="mtrow" style='float: left; margin-left:5px; font-size: 0.9em; !important;'>
                <div id="jkeylfl" class="finger4" style="width: 70px; font-size: 0.9em;">Little finger</div>
                <div id="jkeyrfl" class="finger3" style="text-align:left; font-size: 0.9em;">Ring finger</div>
                <div id="jkeymfl" class="finger2" style="text-align:left; font-size: 0.9em;">Middle finger</div>
                <div id="jkeyif" class="finger1" style="width: 160px;">Index finger</div>
                <div id="jkeymfr" class="finger2" style="text-align:left; font-size: 0.9em;">Middle finger</div>
                <div id="jkeyrfr" class="finger3" style="text-align:left; font-size: 0.9em;">Ring finger</div>
                <div id="jkeylfr" class="finger4" style="width: 230px; font-size: 0.9em;">Little finger</div>
            </div>
        </section>
    </div><br>
    <div id="keyboard" class="keyboardback">English(USV5.2) Keyboard Layout<br>
        <section>
            <div class="mtrow" style='float: left; margin-left:5px; font-size: 15px !important; line-height: 15px'>
                <div id="jkeybackquote" class="finger4">~<br>`</div>
                <div id="jkey1" class="finger4" style='text-align:left;'>!<br>1</div>
                <div id="jkey2" class="finger3" style='text-align:left;'>@<br>2</div>
                <div id="jkey3" class="finger2" style='text-align:left;'>#<br>3</div>
                <div id="jkey4" class="finger1" style='text-align:left;'>$<br>4</div>
                <div id="jkey5" class="finger1" style='text-align:left;'>%<br>5</div>
                <div id="jkey6" class="finger1" style='text-align:left;'>^<br>6</div>
                <div id="jkey7" class="finger1" style='text-align:left;'>&amp;<br>7</div>
                <div id="jkey8" class="finger2" style='text-align:left;'>*<br>8</div>
                <div id="jkey9" class="finger3" style='text-align:left;'>(<br>9</div>
                <div id="jkey0" class="finger4" style='text-align:left;'>)<br>0</div>
                <div id="jkeyminus" class="finger4" style='text-align:left;'>_<br>-</div>
                <div id="jkeyequals" class="finger4" style='text-align:left;'>+<br>=</div>
                <div id="jkeybackspace" class="finger4" style="width: 95px;">Backspace</div>
            </div>
            <div class="mtrow" style='float: left; margin-left:5px; font-size: 15px !important; line-height: 15px'>
                <div id="jkeytab" class="finger4" style="width: 60px;">Tab</div>
                <div id="jkeyq" class="finger4" style='text-align:left;'>Q<br>&nbsp;</div>
                <div id="jkeyw" class="finger3" style='text-align:left;'>W<br>&nbsp;</div>
                <div id="jkeye" class="finger2" style='text-align:left;'>E<br>&nbsp;</div>
                <div id="jkeyr" class="finger1" style='text-align:left;'>R<br>&nbsp;</div>
                <div id="jkeyt" class="finger1" style='text-align:left;'>T<br>&nbsp;</div>
                <div id="jkeyy" class="finger1" style='text-align:left;'>Y<br>&nbsp;</div>
                <div id="jkeyu" class="finger1" style='text-align:left;'>U<br>&nbsp;</div>
                <div id="jkeyi" class="finger2" style='text-align:left;'>I<br>&nbsp;</div>
                <div id="jkeyo" class="finger3" style='text-align:left;'>O<br>&nbsp;</div>
                <div id="jkeyp" class="finger4" style='text-align:left;'>P<br>&nbsp;</div>
                <div id="jkeybracketl" class="finger4" style='text-align:left;'>{<br>[</div>
                <div id="jkeybracketr" class="finger4" style='text-align:left;'>}<br>]</div>
                <div id="jkeybackslash" class="finger4" style='width: 75px; text-align:left;'>|<br>\</div>
            </div>
            <div class="mtrow" style='float: left; margin-left:5px; font-size: 15px !important; line-height: 15px'>
                <div id="jkeycaps" class="finger4" style="width: 80px;  font-size: 12px !important;">Caps Lock</div>
                <div id="jkeya" class="finger4" style='text-align:left;'>A<br>&nbsp;</div>
                <div id="jkeys" class="finger3" style='text-align:left;'>S<br>&nbsp;</div>
                <div id="jkeyd" class="finger2" style='text-align:left;'>D<br>&nbsp;</div>
                <div id="jkeyf" class="finger1" style='text-align:left;'>F<br>&nbsp;</div>
                <div id="jkeyg" class="finger1" style='text-align:left;'>G<br>&nbsp;</div>
                <div id="jkeyh" class="finger1" style='text-align:left;'>H<br>&nbsp;</div>
                <div id="jkeyj" class="finger1" style='text-align:left;'>J<br>&nbsp;</div>
                <div id="jkeyk" class="finger2" style='text-align:left;'>K<br>&nbsp;</div>
                <div id="jkeyl" class="finger3" style='text-align:left;'>L<br>&nbsp;</div>
                <div id="jkeysemicolon" class="finger4" style='text-align:left;'>:<br>;</div>
                <div id="jkeycrtica" class="finger4" style='text-align:left;'>"<br>'</div>
                <div id="jkeyenter" class="finger4" style="width: 95px;">Enter</div>
            </div>
            <div class="mtrow" style='float: left; margin-left:5px; font-size: 15px !important; line-height: 15px'>
                <div id="jkeyshiftl" class="finger4" style="width: 100px;">Shift</div>
                <div id="jkeyz" class="finger4" style='text-align:left;'>Z<br>&nbsp;</div>
                <div id="jkeyx" class="finger3" style='text-align:left;'>X<br>&nbsp;</div>
                <div id="jkeyc" class="finger2" style='text-align:left;'>C<br>&nbsp;</div>
                <div id="jkeyv" class="finger1" style='text-align:left;'>V<br>&nbsp;</div>
                <div id="jkeyb" class="finger1" style='text-align:left;'>B<br>&nbsp;</div>
                <div id="jkeyn" class="finger1" style='text-align:left;'>N<br>&nbsp;</div>
                <div id="jkeym" class="finger1" style='text-align:left;'>M<br>&nbsp;</div>
                <div id="jkeycomma" class="finger2" style='text-align:left;'>&lt;<br>,</div>
                <div id="jkeyperiod" class="finger3" style='text-align:left;'>&gt;<br>.</div>
                <div id="jkeyslash" class="finger4" style='text-align:left;'>?<br>/</div>
                <div id="jkeyshiftr" class="finger4" style="width: 115px;">Shift</div>
            </div>
            <div class="mtrow" style='float: left; margin-left:5px;'>
                <div id="jkeyctrll" class="finger4" style="width: 60px;">Ctrl</div>
                <div id="jkeyfn" class="finger4" style="width: 50px;">Fn</div>
                <div id="jkeyalt" class="finger4" style="width: 50px;">Alt</div>
                <div id="jkeyspace" class="fingerSpace" style="width: 295px;">Space</div>
                <div id="jkeyaltgr" class="finger4" style="width: 50px;">Alt</div>
                <div id="jkeyfn" class="finger4" style="width: 50px;">Fn</div>
                <div id="jkeyctrlr" class="finger4" style="width: 60px;">Ctrl</div>
            </div>
        </section>
    </div><br>
    <div id="masterlayoutfinger2" class="masterlayoutfinger">
        <div id="jkeylfl" class="finger4" style="width: 165px;">Little finger</div>
        <div id="jkeythumb" class="fingerSpace" style="width: 295px;">Thumbs</div>
        <div id="jkeylfr" class="finger4" style="width: 165px;">Little finger</div>
    </div>
</div>
