Skip to content

Commit

Permalink
trying again
Browse files Browse the repository at this point in the history
  • Loading branch information
IamChristianS committed Aug 31, 2023
1 parent 9dd7972 commit fed2bdf
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions games/aceattorney/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,18 @@
<!--Google Analytics-->
<style>
body {
background-color: #000000;
background-color: #444444;
}
</style>
</head>
<body>
<desmond-player></desmond-player>
<desmond-player id="player"></desmond-player>
<script src="../../desmond/desmond.min.js"></script>
<script>
document.querySelector("input").onchange = function() {
document.querySelector("desmond-player").loadURL(URL.createObjectURL(document.querySelector("input").files[0]))
}

window.onload = function() {
setTimeout(function() {
document.querySelector("desmond-player").loadURL("aceattorney.nds")
document.querySelector("desmond-player").shadowRoot.querySelector("#top").style = "position: fixed;transform: translate(-50%, -50%);width: 40%;left: 50%;top: 30%;height: 40%;";

document.querySelector("desmond-player").shadowRoot.querySelector("#bottom").style = "position: fixed;transform: translate(-50%, -50%);width: 40%;left: 50%;top: 70%;height: 40%;";
}, 1000)
document.querySelector("desmond-player").loadURL("aceattorney.nds")
document.querySelector("desmond-player").shadowRoot.querySelector("#top").style = "position: fixed;transform: translate(-50%, -50%);width: 40%;left: 50%;top: 30%;height: 40%;";
document.querySelector("desmond-player").shadowRoot.querySelector("#bottom").style = "position: fixed;transform: translate(-50%, -50%);width: 40%;left: 50%;top: 70%;height: 40%;";
}
</script>
</body>
Expand Down

0 comments on commit fed2bdf

Please sign in to comment.