Назовём пакет example
.
tsconfig.json
{
"compilerOptions": {
"baseUrl": "src",
"jsx": "react",
// other way | |
function isNumber(evt) { | |
evt = (evt) ? evt : window.event; | |
var charCode = (evt.which) ? evt.which : evt.keyCode; | |
if (charCode > 31 && (charCode < 48 || charCode > 57)) { | |
return false; | |
} | |
return true; | |
} |
button, | |
html input[type="button"], | |
input[type="reset"] { | |
border: none; | |
-webkit-appearance: none; | |
cursor: pointer; | |
} | |
button[disabled], | |
html input[disabled] { |
// TODO check to `passive` param | |
function clearEventListener(target) { | |
var listeners = getEventListeners(target); | |
for (const key in listeners) { | |
if (!listeners.hasOwnProperty(key)) { | |
continue; | |
} |
function collectIncorrectAnswersAndCopyToBuffer(withSpoiler) { | |
const elsList = document.querySelector('main > ol'); | |
function getAnswerFromStorage(key) { | |
const value = localStorage.getItem(key); | |
if (!value) { | |
return 'Unknown'; | |
} |
emulator-commandline documentation
For first download Android Studio.
For start emulator