Skip to Content
0

Why "window" and "matchmedia" commands are not recognize by Design Studio 1.6?

Nov 11, 2016 at 10:04 AM

54

avatar image

I'm trying to reproduce the javscript code at this link https://www.sitepoint.com/javascript-media-queries/

but SAP Design Studio it seems do not recognize neather "window", or "matchMedia" commands.

I thought was supperd @media queries. Is not?

Thanks again!

Marco

mq-matches.png (11.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mustafa Bensan Nov 11, 2016 at 12:36 PM
0

Hi Marco,

Design Studio uses a scripting language which is a subset of JavaScript known as BIAL. Therefore, you cannot simply take any JavaScript web example and expect it to work in a Design Studio script.

Media queries are supported in CSS for Design Studio. The following blog post provides an explanation:

https://blogs.sap.com/2014/03/10/creating-a-responsive-design-in-design-studio/

Regards,

Mustafa.

Share
10 |10000 characters needed characters left characters exceeded