0
我有一個腳本(https://github.com/SubZane/flyPanels)應該只能在小型設備上執行。媒體查詢/匹配媒體上的腳本
<script>
document.addEventListener("DOMContentLoaded", function(event) {
FastClick.attach(document.body);
flyPanels.init({
treeMenu: {
init: true
},
search: {
init: true,
saveQueryCookie: true
}
})
});
</script>
我如何做到這一點:
的腳本由叫什麼名字?
[如何識別屏幕大小]的可能重複(http://stackoverflow.com/questions/12195371/how-to-identify-screen-size) –