-
-
Save nmanzi/d1589eb2d733f5ef11498e449db06c3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body {background-color: #EEE;} | |
.emubox { | |
border: 3px solid green; | |
padding: 10px; | |
} | |
.container{ | |
width: 400px; | |
height: 400px; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-left: -200px; | |
margin-top: -200px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="emulator"> | |
<p>To play this game, please, download the latest Flash player!</p> | |
<br> | |
<a href="http://www.adobe.com/go/getflashplayer"> | |
<img src="//www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png" alt="Get Adobe Flash player"/> | |
</a> | |
</div> | |
</div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> | |
<script type="text/javascript"> | |
var resizeOwnEmulator = function(width, height) | |
{ | |
var emulator = $('#emulator'); | |
emulator.css('width', width); | |
emulator.css('height', height); | |
var container = $('.container'); | |
container.css('width', width); | |
container.css('height', height); | |
} | |
$(function() | |
{ | |
function embed() | |
{ | |
var emulator = $('#emulator'); | |
if(emulator) | |
{ | |
var flashvars = | |
{ | |
system : 'gba', | |
url : '/.roms/gba/Golden Sun.gba' | |
}; | |
var params = {}; | |
var attributes = { | |
"class": "emubox" | |
}; | |
params.allowscriptaccess = 'sameDomain'; | |
params.allowFullScreen = 'true'; | |
params.allowFullScreenInteractive = 'true'; | |
swfobject.embedSWF('/.flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes); | |
} | |
} | |
embed(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment