Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body:after {
- content: "non-mobile";
- display: none;
- }
- @media all and (max-width: 429px) {
- body:after {
- content: "mobile";
- display: none;
- }
- }
- $(window).resize(function() {
- if (window.getComputedStyle(document.body, ":after")
- .getPropertyValue("content") === "non-mobile") {
- console.log("Hover expansion on");
- mcp.hoverAnimators(); //jQuery.hover() function
- } else {
- console.log("Hover expansion off");
- $(".window-wrapper").off("mouseenter mouseleave");
- }
- }).resize();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement