-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (83 loc) · 3.03 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Port application</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/app/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://statsim.com/app/images/favicon-16x16.png" sizes="16x16">
<style>
a { color: #3030B7 }
.status-bar { background: #f5f5f5 }
/*
.btn, .port-btn { background: #3030B7 }
.btn:hover, .port-btn:hover { background: #21218B }
.file-field .btn { background: #BBB }
.file-field .btn:hover { background: #AAA }
.spinner-green, .spinner-green-only { border-color: #3030B7 }
*/
</style>
</head>
<body>
<div class="status-bar">
<div class="container">
<div class="row">
<div class="col s11" style="font-size: 14px;">
<a href="https://statsim.com/">StatSim</a> → App
</div>
<div class="col s1" style="font-size: 13px; color: #AAA; text-align: right">
0.0.1
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col m12">
<h4>Port application</h4>
<p>Description...</p>
</div>
</div>
<div class="row">
<div id="port-container"></div>
</div>
<div class="row">
<div class="col m12">
<small>
Based on <a href="https://github.com/statsim/port">port</a> and npm <a href="https://github.com/statsim/vis/blob/master/package.json">packages</a>
</small>
<p>
<a class="github-button" href="https://github.com/statsim/APP" data-icon="octicon-star" data-show-count="true" aria-label="Star statsim/APP on GitHub">Star</a>
<a class="github-button" href="https://github.com/statsim/APP/issues" data-icon="octicon-issue-opened" data-show-count="true" aria-label="Issue statsim/APP on GitHub">Issue</a>
</p>
</div>
</div>
</div>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<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": {
"type": "function",
"container": "args",
"autorun": true,
"worker": true
"url": "main.js",
"name": "main",
},
"inputs": [
{ "type": "int", "name": "x" }
],
"outputs": [
{ "type": "int", "name": "y" }
]
}
})
</script>
</body>
</html>