-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathridTr2.html
35 lines (32 loc) · 1.04 KB
/
ridTr2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Riddle Transfer 2</title>
</head>
<body>
<div id="ruffle"></div>
<a href="index.html">Home Page</a>
<script src="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 });
}
var height = screen.height;
var width = screen.width;
var swfHeight = parseInt('654px')
var swfWidth = parseInt('896px')
swfobject.embedSWF('swfs/riddletransfer2.swf', 'ruffle', swfWidth , swfHeight);
</script>
</body>
</html>