Add missing A button for KN_E

This commit is contained in:
Varun Patil 2020-10-20 04:00:26 +05:30
parent 04dc678014
commit 6e5a0603c0
1 changed files with 11 additions and 6 deletions

View File

@ -75,8 +75,8 @@
#fullscreen { #fullscreen {
position: fixed; position: fixed;
bottom: 20px; bottom: 10px;
right: 20px; right: 10px;
opacity: 0.5; opacity: 0.5;
cursor: pointer; cursor: pointer;
} }
@ -84,8 +84,8 @@
opacity: 1; opacity: 1;
} }
#fullscreen > svg { #fullscreen > svg {
height: 25px; height: 20px;
width: 25px; width: 20px;
} }
#progress { #progress {
@ -130,11 +130,14 @@
#d-right { transform: translateX(100%); } #d-right { transform: translateX(100%); }
#ap-b { transform: translate(-130%, 90%); } #ap-b { transform: translate(-130%, 90%); }
#ap-c { transform: translate(-15%, -25%); } #ap-c { transform: translate(-15%, -25%); }
#ap-a { #ap-a, #ap-ka {
height: 7vh; max-height: 7vw; height: 7vh; max-height: 7vw;
width: 7vh; max-width: 7vw; width: 7vh; max-width: 7vw;
top: 50%; top: 50%;
transform: translate(25%, 25%); transform: translate(60%, -30%);
}
#ap-ka {
transform: translate(-20%, 70%);
} }
</style> </style>
</head> </head>
@ -159,6 +162,7 @@
<div id="ap-c"></div> <div id="ap-c"></div>
<div id="ap-b"></div> <div id="ap-b"></div>
<div id="ap-a"></div> <div id="ap-a"></div>
<div id="ap-ka"></div>
</div> </div>
</div> </div>
@ -437,6 +441,7 @@
bindKey('ap-c', 67); bindKey('ap-c', 67);
bindKey('ap-b', 88); bindKey('ap-b', 88);
bindKey('ap-a', 90); bindKey('ap-a', 90);
bindKey('ap-ka', 65);
const resize = function() { const resize = function() {
const el = document.getElementById('canvas'); const el = document.getElementById('canvas');