Browse Source

Use SWFObject for flash pages

rophako
Noah Petherbridge 6 years ago
parent
commit
2fa2f98405
4 changed files with 28 additions and 9 deletions
  1. +6
    -3
      www/flash/aichaos-warners.html
  2. +12
    -0
      www/flash/flash-common.html
  3. +5
    -3
      www/flash/kanian-azulian-war.html
  4. +5
    -3
      www/flash/pwnizard-i-choose-you.html

+ 6
- 3
www/flash/aichaos-warners.html View File

@@ -4,9 +4,12 @@

<h1>AiChaos Warners</h1>

<embed src="/creativity/flash/warners.swf" width="550" height="400"
autoplay="true" loop="true" hidden="false" quality="high"><p>
{% set swf_path="/creativity/flash/warners.swf" %}
{% set swf_width=550 %}
{% set swf_height=400 %}
{% include "flash/flash-common.html" %}


&#0171; <a href="/flash">More Flash Animations</a>

{% endblock %}
{% endblock %}

+ 12
- 0
www/flash/flash-common.html View File

@@ -0,0 +1,12 @@
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>

<div id="swfObject"></div>
<br><br>

<script>
swfobject.embedSWF("{{ swf_path }}", "swfObject",
{{ swf_width }}, {{ swf_height }},
"10.0.0"
);
</script>


+ 5
- 3
www/flash/kanian-azulian-war.html View File

@@ -4,9 +4,11 @@

<h1>Kanian/Azulian War</h1>

<embed src="/creativity/flash/KanianAzuWar.swf" width="550" height="400"
autoplay="true" loop="true" hidden="false" quality="high"><p>
{% set swf_path="/creativity/flash/KanianAzuWar.swf" %}
{% set swf_width=550 %}
{% set swf_height=400 %}
{% include "flash/flash-common.html" %}

&#0171; <a href="/flash">More Flash Animations</a>

{% endblock %}
{% endblock %}

+ 5
- 3
www/flash/pwnizard-i-choose-you.html View File

@@ -4,9 +4,11 @@

<h1>Pwnizard, I Choose You!</h1>

<embed src="/creativity/flash/pwnizard.swf" width="480" height="320"
autoplay="true" loop="true" hidden="false" quality="high"><p>
{% set swf_path="/creativity/flash/pwnizard.swf" %}
{% set swf_width=480 %}
{% set swf_height=320 %}
{% include "flash/flash-common.html" %}

&#0171; <a href="/flash">More Flash Animations</a>

{% endblock %}
{% endblock %}

Loading…
Cancel
Save