Untitled
2 years ago in JavaScript
<!DOCTYPE html>
<html>
<head>
<title> Street Fighter II' Golden Magic | sf2v004 </title>
</head>
<style>
body {
margin:0px;
background-color:black;
}
#game {
background-repeat: no-repeat;
background-size: 100% 100%;
background-color:black;
}
.fullCenter {
width:640px;
height:480px;
text-align:center;
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
@media all and (display-mode: fullscreen) {
#game {
background-image:none;
}
}
</style>
<body>
<div class="fullCenter">
<div id="game"></div>
</div>
<script type="text/javascript">
var params=new URLSearchParams(window.location.search);
EJS_player = '#game';
EJS_gameUrl = params.get('rom');
EJS_core = 'arcade';
var ss=params.get('ss');
var bkg=params.get('bkg');
if(bkg) document.querySelector("body").style.backgroundImage = "url("+bkg+")";
if(ss) document.querySelector("#game").style.backgroundImage = "url("+ss+")";
if(EJS_gameUrl) {
document.write('<script src="' + "https://www.emulatorjs.com/loader.js" + '"><\/script>');
} else {
document.querySelector("body").style.backgroundImage = 'none';
var msg="Those who have a 'why' to live, can bear with almost any 'how'";
document.write('<div style="color:white" class="fullCenter">'+msg+'</div>');
}
</script>
</body>
</html>