Skip to content

Commit

Permalink
run prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Mar 31, 2024
1 parent f8e6680 commit 9a6074e
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions content/_layouts/demo.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ layout: default.liquid
{% assign width = 640 %}
{% endunless %}

<button type="button" class="btn btn-outline-primary position-absolute bottom-0 end-0 m-2" onclick="toggleFullscreen();">
<i class="bi bi-arrows-fullscreen"></i>
</button>
<iframe
class="html5-demo"
src="https://demos.haxeflixel.com/html5/{{title}}"
width="{{width}}"
height="{{height}}" allow="fullscreen"></iframe>



<button
type="button"
class="btn btn-outline-primary position-absolute bottom-0 end-0 m-2"
onclick="toggleFullscreen();">
<i class="bi bi-arrows-fullscreen"></i>
</button>
<iframe
class="html5-demo"
src="https://demos.haxeflixel.com/html5/{{title}}"
width="{{width}}"
height="{{height}}"
allow="fullscreen"></iframe>
{% endif %}

{% if targets == 'flash' %}
Expand Down Expand Up @@ -110,11 +110,10 @@ layout: default.liquid
</div>

<script type="text/javascript">
function toggleFullscreen()
{
let iframe = document.querySelector('.html5-demo');
iframe.requestFullscreen();
}
function toggleFullscreen() {
let iframe = document.querySelector('.html5-demo');
iframe.requestFullscreen();
}
</script>

{% if targets == 'flash' %}
Expand Down

0 comments on commit 9a6074e

Please sign in to comment.