forked from vAmigaWeb/vAmigaWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruncbm.html
72 lines (64 loc) · 2.1 KB
/
runcbm.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<span style="display: flex;justify-content: center;">example how to embed an Amiga file, which requires a cbm kickstart</span>
<!-- vAmigaWeb-block start -->
<script src="js/vAmigaWeb_player.js"></script>
<script>
vAmigaWeb_player.vAmigaWeb_url='./'; //the emulator files are in the same folder as the run.html
document.addEventListener('DOMContentLoaded', function() {
vAmigaWeb_player.setup('teaser_pic',
{
kickstart_rom_required: [1.3],
samesite_file: {
//url:'./doc/media/tbl_eon_party.zip',name:'tbl.zip',
url:'./tbl_eon_party.zip',name:'tbl.zip',
mount_kickstart_in_dfn: 1
},
config:{
AROS:true,
wait_for_kickstart_injection:false,
navbar:false, //you can also enable this and disable the players toolbar (see styles section above)
wide:true,
startup_script: `df_mount_list=['tbl_eon_party_ver_disk1.adf']`
}
});
});
</script>
<style>
body {
background-color: darkgray;
color: white;
}
#player_container {
background-color: darkgray;
}
#vAmigaWeb {
border:none;
}
.player_icon_btn {
background-color: transparent;
color: white;
margin-right: 15px;
cursor: pointer;
}
.btn_play {
color: #2575ff;
cursor: pointer;
}
@media (orientation: landscape) {
#container {
width: 30vw;
}
}
@media (orientation: portrait) {
#container {
width: 50vw;
}
}
</style>
<div style="display: flex;align-items: center;justify-content: center;">
<div id="container" style="position: relative;">
<img id="teaser_pic" style="width:100%" src="https://vamiganet.github.io/footage/eon-small.jpg" />
<div id="teaser_pic_overlay" style="position: absolute;top:0;left:0;width:100%;height:100%"></div>
</div>
</div>
<br>
<!-- vAmigaWeb-block end -->