Screen Orientation API allows web apps to get information about the current orientation of the screen.
https://nectar.website/demo/web-apis/screen-orientation/arrow-up-right
You can refer to the code present in /partials/web-apis/screen-orientation.html file and use it accordingly.
/partials/web-apis/screen-orientation.html
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Orientation_APIarrow-up-right
Last updated 3 years ago