Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
v4for authored Apr 25, 2024
1 parent 448ac2f commit 5997df7
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions Vafor_IT-main/ducklife/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
<title>Duck life</title>
<script src="../../assets/ruffle/ruffle.js"></script>
<embed width="100%" height="100%" src="/ducklife1.swf">
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf8'>
</head>
<body>
<div id='ruffle'></div>
<script src='../../assets/ruffle/ruffle.js'></script>
<script>
var swfobject = {};

swfobject.embedSWF = function(url, cont, width, height){
var ruffle = window.RufflePlayer.newest(),
player = Object.assign(document.getElementById(cont).appendChild(ruffle.createPlayer()), {
width: width,
height: height,
style: 'width: ' + width + 'px; height: ' + height + 'px',
});

player.load({ url: url });
}

swfobject.embedSWF('ducklife1.swf', 'ruffle', 500, 500);
</script>
</body>
</html>

0 comments on commit 5997df7

Please sign in to comment.