I have a script (https://github.com/SubZane/flyPanels) that should only be executed on small devices.
The script is called by:
<script>
document.addEventListener("DOMContentLoaded", function(event) {
FastClick.attach(document.body);
flyPanels.init({
treeMenu: {
init: true
},
search: {
init: true,
saveQueryCookie: true
}
})
});
</script>
How do i achieve this?