[w3c/screen-orientation] Editorial: Examples section edits (#137)

In testing Example 1 with the discussed revisions, I came across some issues so a lot of it has been rewritten, so please give feedback!

- we changed document.documentElement.requestFullScreen() to document.body.requestFullScreen() for reasons of length.  This actually makes the whole screen go black so I've changed it back to solve that problem
- The way I had written the example before, the button text only changed when it was pressed.  I have now changed it so that it also changes on user rotation (otherwise user could rotate manually to portrait and it would still say lock to portrait).  It also displays the opposite orientation on load.

Other example edits have been completed, sections/titles, edits and moving it up to Introduction section.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/screen-orientation/pull/137

-- Commit Summary --

  * Editorial: examples section edits
  * HTML Tidy

-- File Changes --

    M index.html (246)

-- Patch Links --

https://github.com/w3c/screen-orientation/pull/137.patch
https://github.com/w3c/screen-orientation/pull/137.diff

-- 
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/137

Received on Wednesday, 23 January 2019 22:30:29 UTC