Skip to content

Instantly share code, notes, and snippets.

@rnmp
Last active January 9, 2020 19:03
Show Gist options
  • Select an option

  • Save rnmp/a47a1e32bc1db53cb7fdba6c5a789351 to your computer and use it in GitHub Desktop.

Select an option

Save rnmp/a47a1e32bc1db53cb7fdba6c5a789351 to your computer and use it in GitHub Desktop.

Revisions

  1. Rolando Murillo revised this gist Jan 9, 2020. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    <script>document.body.innerHTML = `
    <html>
    <body><script>document.body.innerHTML = `
    <h1>Alright, alright, alright</h1>
    <p>Screen resolution: ${window.screen.width}x${window.screen.height}
    <p>Window resolution: ${window.innerWidth}x${window.innerHeight}
    `;
    </script>
    </script></body>
    </html>
  2. Rolando Murillo created this gist Jan 9, 2020.
    6 changes: 6 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <script>document.body.innerHTML = `
    <h1>Alright, alright, alright</h1>
    <p>Screen resolution: ${window.screen.width}x${window.screen.height}
    <p>Window resolution: ${window.innerWidth}x${window.innerHeight}
    `;
    </script>