I want to detect in Javascript if a Smart App banner is currently displayed. I already inspected the DOM but there is no evidence of the banner.
This is an old question, but maybe this will be useful to someone. I did this in a following way:
window.matchMedia
to determine device type and orientation with media queries;window.innerHeight
After my experiments I have following experimental window.innerHeight values for different devices with banner shown. You can find them below:
544px
;286px
;475px
;247px
;376px
;148px
;288px
;148px
.Hope this will help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With