This is a collection of Vanilla JS libraries to aid you in web development.
macKeys.js library allows you to check if any of modifier key (ctrl, shift, alt, cmd) was pressed on Mac.
- include the code into your JS/HTML and then you will be able to
- check if any of the buttons is pressed, e.g.:
window.onclick = function (event) {
if (event.ctrlKey || macKeys.ctrlKey) {
//do something
}
}
This is a library which allows you to convert XML document into JS object.
- Include the code into your library.
- Convert XML document:
xmlConverter.xml2obj(xmlDoc)