generated from statsim/port-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (49 loc) · 1.89 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Hash file online | StatSim</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link type="text/css" rel="stylesheet" href="https://statsim.com/port/css/port.css" media="screen"/>
<link rel="icon" type="image/png" href="https://statsim.com/port/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://statsim.com/port/images/favicon-16x16.png" sizes="16x16">
</head>
<body>
<div class="container">
<div class="row">
<div class="col m12">
<a href="https://statsim.com/"><img src="https://statsim.com/app/images/favicon-96x96.png" alt="StatSim Logo" style="width:55px; height: 55px; margin-top: 20px;"></a>
<h3>Hash file online</h3>
<p>Load a file and hash it in the browser. Processing happens on your local machine</p>
</div>
</div>
<div id="port-container"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="https://statsim.com/port/dist/port.js"></script>
<script>
var port = new Port({
portContainer: document.getElementById('port-container'),
schema: {
"model": {
"name": "hash",
"type": "function",
"url": "hash.js",
"autorun": false
},
"inputs": [
{ "name": "method", "type": "select", "options": ["sha1", "sha224", "sha256", "sha384", "sha512"], "default": "sha256"},
{ "name": "file", "type": "file" }
],
"outputs": [
{
"name": "hash",
"type": "text"
}
]
}
})
</script>
</body>
</html>