Template:FlashEmbed: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<templatestyles src="Template:FlashEmbed/styles.css" /> | <templatestyles src="Template:FlashEmbed/styles.css" /> | ||
<!-- Splash Screen --> | |||
<htmltag tagname="div" | |||
class="custom-splash" | |||
style="position:relative; width:{{{width|640}}}px; height:{{{height|480}}}px; background:#000; margin-left:auto; margin-right:auto; display:flex; align-items:center; justify-content:center;"> | |||
<htmltag tagname="img" | |||
src="https://www.gamebrew.org/images/5/52/Gb-logo-v3.png" | |||
alt="Loading..." | |||
style="max-width:80%; max-height:80%;" /> | |||
</htmltag> | |||
<!-- Ruffle Player (hidden at first) --> | |||
<htmltag tagname="div" | <htmltag tagname="div" | ||
class="ruffle-player" | class="ruffle-player" | ||
data-swf-url="{{{url}}}" | data-swf-url="{{{url}}}" | ||
data-splash-screen="{{{preloader|true}}}" | data-splash-screen="{{{preloader|true}}}" | ||
style="width:{{{width|640}}}px; height:{{{height|480}}}px | style="width:{{{width|640}}}px; height:{{{height|480}}}px; margin-left:auto; margin-right:auto; display:none;"> | ||
<htmltag tagname="object" | |||
type="application/x-shockwave-flash" | |||
data="{{{url}}}" | |||
width="{{{width|640}}}" | |||
height="{{{height|480}}}" | |||
style="display:block; margin:0 auto;"> | |||
<htmltag tagname="param" name="movie" value="{{{url}}}" selfclose="true" /> | |||
<htmltag tagname="param" name="allowScriptAccess" value="never" selfclose="true" /> | |||
</htmltag> | |||
</htmltag> | </htmltag> | ||
</includeonly> | </includeonly> | ||