matchmedia Questions

5

Solved

I'm using window.matchMedia conditional in order to avoid the inject of a video in mobile devices. CanIUse reports that matchMedia is going to work smoothly since Safari 9 (I'm testing on it), but ...
Stagecraft asked 1/3, 2016 at 9:47

4

Solved

I'm making use of matchMedia().addListener to detect dark/light mode theme preference changes in Safari, however in WebStorm using addListener is marked as deprecated but simply says to refer to do...
Cablet asked 5/6, 2019 at 18:39

1

Solved

I am working with the matchMedia API to determine viewports within javascript, so I can minimize the amount of dom manipulation taking place. Instead of using display: none everywhere I determine...
Cinderellacindi asked 25/7, 2017 at 8:20

4

Solved

I'm trying to write some javascript which will change some values held within a JS config object at certain browser breakpoints. I have stored the window.matchmedia tests within the config object...
Disparagement asked 29/6, 2017 at 16:51

1

I need to execute doSomethingFunc, when afterPrint happens. My code is working fine on all browsers, except the current Safari-Versions (Safari 10.1 on OSX and the Safari Browser from iOS 10.3). It...
Tressietressure asked 13/4, 2017 at 7:51

2

I have a print button that launches the print functionality on any webpage. The button hides as soon as the user clicks on it and shows if the user is done printing or presses close in the print wi...
Aten asked 15/1, 2016 at 21:4
1

© 2022 - 2024 — McMap. All rights reserved.