blob: 2400be4e87f621f4bf15df5ce136849c6809ee4f (
plain)
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
|
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<body>
Redirecting to Iodide...
<script>
function post(path, params, method='post') {
const form = document.createElement('form');
form.method = method;
form.action = path;
form.id = 'uploadform';
for (const key in params) {
if (params.hasOwnProperty(key)) {
const textarea = document.createElement('textarea');
textarea.name = key;
textarea.value = params[key];
textarea.style.display = "none";
form.appendChild(textarea);
}
}
document.body.appendChild(form);
form.submit();
}
// TODO Need to escape all `'`,
// Otherwsie, this will result in javascript failures.
var template = replace_me
// Create a form object, and send it
// after release, change back to https://alpha.iodide.io/from-template/
post("https://alpha.iodide.io/from-template/", {"iomd": template})
</script>
</body>
</html>
|