Skip to content

Instantly share code, notes, and snippets.

@DownRangeDevOps
Created July 31, 2012 21:31
Show Gist options
  • Save DownRangeDevOps/3220745 to your computer and use it in GitHub Desktop.
Save DownRangeDevOps/3220745 to your computer and use it in GitHub Desktop.
3d Spine Simulator
<div id="spine_simulator">
<h2 id="spine_content_title"><strong class="doTrans"></strong></h2>
<p id="spine_content" style="text-align: center;">
<script type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<embed src="/3d_spine/3d-spine-simulator-man.swf" loop="true" menu="false" quality="high" wmode="transparent" '
+ 'width="100" height="200"'
+ 'allowScriptAccess="sameDomain"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer" />';
document.write(oeTags); // embed the flash movie
} else { // flash is too old or we can't detect the plugin
var alternateContent = '<a href=http://get.adobe.com/flashplayer/ class="get_flash" title="Flash Player Update Required"><strong>Flash Update Required</strong></a>';
document.write(alternateContent); // insert non-flash content
}
// -->
</script>
<br>
<a class="doTrans" title="Launch 3D Spine Simulator" onclick="window.open(this.href); return false;" id="launch_spine_simulator" href="/3d_spine/nerve_chart/index.htm"><strong>Launch</strong></a><span>&nbsp;3D Spine Simulator</span>
</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment