-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (51 loc) · 2.51 KB
/
index.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
<!doctype html><html lang=en><meta charset="utf-8">
<title>Patcher</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Style from http://codepen.io/prasanjit/pen/NxjZMO -->
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
<link rel="stylesheet" href="main.css">
<h2>Patcher</h2>
<div class="file-drop-area">
<button class="fake-btn">Choose files</button>
<span class="file-msg">or drag and drop files here<span class="open-dir-or"> or</span></span>
<input class="file-input" type="file" multiple>
<button class="fake-btn open-directory">Open directory</button>
</div>
<div class="file-list"></div>
<template class="file-item-template">
<div class="file-item">
<div class="name"></div>
<div class="status"></div>
</div>
</template>
<div class="info">
This tool patches files for you, right in the browser.<br>
<a href="https://github.com/qgustavor/patcher">Check more info in GitHub</a>
<noscript>No servers were harmed in this experiment: please enable JavaScript.</noscript>
</div>
<script type="application/json" class="messages">
{
"identifying": "Identifying file: ",
"checking": "Checking if there is a patch available...",
"noPatch": "There is no patch for this file or the file is corrupt.",
"patching": "Patching file: ",
"patchingStream": "Patching file (don't close this page): ",
"corruptedPatch": "An error happened while patching.",
"requiresPermission": "Click here to allow writing the file.",
"couldNotWrite": "The file could not be written.",
"finished": "File patched. You can delete the original file if you want.",
"clickToDelete": "File patched. Click here to delete the original file.",
"overwritten": "File patched. The original file was overwritten.",
"fileDeleted": "The original file was deleted.",
"fileDeleteError": "There was an error while deleting the original file.",
"pageleave": "If you close this page the patch will not be saved.",
"notcompatible": "Error: this browser is not compatible with this tool."
}
</script>
<script src="https://unpkg.com/[email protected]/nacl-fast.min.js"></script>
<script src="https://unpkg.com/[email protected]/nacl-util.min.js"></script>
<script src="https://unpkg.com/[email protected]/fossil-delta.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.10/pako_inflate.min.js"></script>
<script src="https://unpkg.com/@ygoe/[email protected]/msgpack.min.js"></script>
<script type="module" src="main.js"></script>
<script nomodule src="fallback.js"></script>