Skip to Content
avatar image
Former Member

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 11, 2016 at 12:36 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded