mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-09-15 17:26:57 +00:00
- feat (web): dynamic JS modules loading
- feat (web): added onloadpatch event - fix (cli): fixed path for JS files
This commit is contained in:
parent
bc82f6d748
commit
de2f0e5c7d
9 changed files with 315 additions and 210 deletions
|
@ -10,22 +10,9 @@
|
|||
|
||||
<!-- Rom Patcher JS needed CSS/JS files -->
|
||||
<link type="text/css" rel="stylesheet" href="./rom-patcher-js/style.css" media="all" />
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/BinFile.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/HashCalculator.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.ips.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.ups.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.aps_n64.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.aps_gba.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.bps.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.rup.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.ppf.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.pmsr.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/RomPatcher.format.vcdiff.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/modules/zip.js/zip.min.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/RomPatcher.js"></script>
|
||||
<script type="text/javascript" src="./rom-patcher-js/RomPatcher.webapp.js"></script>
|
||||
|
||||
<!-- Rom Patcher JS initizlization -->
|
||||
<!-- Rom Patcher JS initialization -->
|
||||
<script type="text/javascript">
|
||||
window.addEventListener('load', function (evt) {
|
||||
try {
|
||||
|
@ -60,17 +47,17 @@
|
|||
|
||||
<!-- Rom Patcher JS container -->
|
||||
<!--
|
||||
The following elements are required for Rom Patcher JS to work:
|
||||
#rom-patcher-input-file-rom
|
||||
#rom-patcher-input-file-patch
|
||||
#rom-patcher-button-apply
|
||||
The rest of elements are informative and can be removed, though it's recommended to keep them for a better user experience.
|
||||
-->
|
||||
The following elements are required for Rom Patcher JS to work:
|
||||
#rom-patcher-input-file-rom
|
||||
#rom-patcher-input-file-patch
|
||||
#rom-patcher-button-apply
|
||||
The rest of elements are informative and can be removed, though it's recommended to keep them for a better user experience.
|
||||
-->
|
||||
<div id="rom-patcher-container">
|
||||
<div class="rom-patcher-row margin-bottom" id="rom-patcher-row-file-rom">
|
||||
<div class="text-right"><label for="rom-patcher-input-file-rom" data-localize="yes">ROM file:</label></div>
|
||||
<div class="rom-patcher-container-input">
|
||||
<input type="file" id="rom-patcher-input-file-rom" class="empty" />
|
||||
<input type="file" id="rom-patcher-input-file-rom" class="empty" disabled />
|
||||
</div>
|
||||
</div>
|
||||
<div class="margin-bottom text-selectable text-mono text-muted" id="rom-patcher-rom-info">
|
||||
|
@ -97,7 +84,7 @@
|
|||
</div>
|
||||
<div class="rom-patcher-container-input">
|
||||
<input type="file" id="rom-patcher-input-file-patch" class="empty"
|
||||
accept=".ips,.ups,.bps,.aps,.rup,.ppf,.mod,.xdelta,.vcdiff,.zip" />
|
||||
accept=".ips,.ups,.bps,.aps,.rup,.ppf,.mod,.xdelta,.vcdiff,.zip" disabled />
|
||||
</div>
|
||||
</div>
|
||||
<div class="rom-patcher-row margin-bottom" id="rom-patcher-row-patch-description">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue