-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
69 lines (60 loc) · 2.3 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Ripser</title>
<script type="text/javascript" src="ripser.js"></script>
<script type="text/javascript" src="ripser-web.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fingerprintjs2/1.8.0/fingerprint2.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
new Fingerprint2({detectScreenOrientation:false}).get(function(result){
ga('create', 'UA-83191949-1', {'storage':'none','clientId':result});
ga('send', 'pageview');
});
</script>
<style>
body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding-left: 45px;
padding-right: 45px;
padding-top: 15px;
font-family: "Helvetica Neue", Helvetica, sans-serif;
}
.bar text {
fill: white;
}
.axis path, .axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
}
</style>
</head>
<body>
<h1>Ripser</h1>
<!-- <h2>Status: <code id="statusField">NO-STATUS</code></h2>-->
<p>Load a <select id="format" size="1" style="width: automatic">
<option value = 2>distance matrix</option>
<option value = 0>lower dist matrix</option>
<option value = 1>upper dist matrix</option>
<option value = 3>point cloud</option>
<option value = 4>DIPHA file</option>
</select> to compute Vietoris–Rips persistence barcodes in dimensions <input id="dim_min" value="1" size="2"/> to <input id="dim" value="1" size="2"/> and up to distance
<input id="threshold" value="" size="3"/>:</p>
<input type="file" id="fileInput"/>
<div id="barcodes"></div>
<pre id="log" style="font-weight:bold; display:none;"></pre>
<p id="time">(Click <a href="https://live.ripser.org/?url=https://live.ripser.org/ripser/examples/sphere_3_192.lower_distance_matrix&dim=2">here</a> for an example)</p>
<script>
document.addEventListener("DOMContentLoaded", init, false);
</script>
</body>
</html>