- From: Johanna <notifications@github.com>
- Date: Tue, 15 Jan 2019 13:54:05 -0800
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 15 January 2019 21:54:26 UTC
Johanna-hub commented on this pull request.
> </p>
<pre class='example html'>
<script>
- var show = function() {
- console.log("Orientation type is " + screen.orientation.type);
- console.log("Orientation angle is " + screen.orientation.angle);
- }
+async function lockLandscape(){
+ await document.documentElement.requestFullscreen()
+ await screen.orientation.lock('landscape');
+}
+
+async function unlock() {
+ await screen.orientation.unlock();
+}
+
+async function portrait(){
+ await screen.orientation.lock('portrait');
Sure! Let's chat about this tomorow.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/pull/133#discussion_r248077587
Received on Tuesday, 15 January 2019 21:54:26 UTC