-
Notifications
You must be signed in to change notification settings - Fork 0
/
presenter.html
162 lines (135 loc) · 7.15 KB
/
presenter.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DCCs Presenter</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" name="viewport">
<script src="../../config/config.js"></script>
<link rel="stylesheet" href="lib/fontawesome-5-10-1/css/all.min.css">
<link rel="stylesheet" href="lib/bootstrap-4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="../../dccs/css/dccs.css">
<link rel="stylesheet" href="../../infra/css/common-player.css">
<link rel="stylesheet" href="../../infra/css/common-author.css">
<script src="lib/jquery-3-4-1/jquery-3.4.1.slim.min.js"></script>
<script src="lib/popper-1-15-0/popper.min.js"></script>
<script src="lib/bootstrap-4.4.1/js/bootstrap.min.js"></script>
<script src="lib/axios-0.21.0/axios.min.js"></script>
<!-- <script src="../../config/config-standalone.js"></script> -->
<script src="../../dccs/infra/bus.js"></script>
<script src="../../dccs/base/primitive-dcc.js"></script>
<script src="../../dccs/base/scope-dcc.js"></script>
<script src="../../dccs/base/dcc.js"></script>
<script src="../../dccs/base/subscribe-dcc.js"></script>
<script src="../../dccs/base/connect-dcc.js"></script>
<script src="../../dccs/base/trigger-dcc.js"></script>
<script src="../../dccs/base/property-dcc.js"></script>
<script src="../../dccs/base/dcc-base.js"></script>
<script src="../../dccs/components/control/dcc-timer.js"></script>
<script src="../../dccs/base/dcc-visual.js"></script>
<script src="../../infra/basic.js"></script>
<script src="../../infra/dcc-common-server-proxy.js"></script>
<script src="../../infra/dcc-rest-proxy.js"></script>
<script src="../../dccs/components/visual/dcc-monitor.js"></script>
<script src="../../dccs/components/visual/dcc-markdown.js"></script>
<script src="../../dccs/components/visual/dcc-annotation.js"></script>
<script src="../../dccs/components/visual/dcc-image.js"></script>
<script src="../../dccs/components/visual/dcc-media.js"></script>
<script src="../../dccs/components/visual/dcc-expression.js"></script>
<script src="../../dccs/base/dcc-block.js"></script>
<script src="../../dccs/components/visual/dcc-state.js"></script>
<script src="../../dccs/components/visual/dcc-group.js"></script>
<script src="../../dccs/components/visual/dcc-button.js"></script>
<script src="../../dccs/components/visual/dcc-character.js"></script>
<script src="../../dccs/components/visual/dcc-lively-dialog.js"></script>
<script src="../../dccs/components/visual/dcc-notice-input.js"></script>
<script src="../../dccs/components/visual/dcc-state-select.js"></script>
<script src="../../dccs/components/visual/dcc-image-marker.js"></script>
<script src="../../dccs/base/dcc-styler.js"></script>
<script src="../../dccs/components/visual/dcc-entity.js"></script>
<script src="../../dccs/components/visual/dcc-input.js"></script>
<script src="../../dccs/components/visual/dcc-input-typed.js"></script>
<script src="../../dccs/components/visual/dcc-input-choice.js"></script>
<script src="../../dccs/components/visual/dcc-input-table.js"></script>
<script src="../../dccs/components/visual/dcc-input-summary.js"></script>
<script src="../../dccs/components/visual/dcc-slider.js"></script>
<script src="../../dccs/components/visual/dcc-progress.js"></script>
<script src="../../dccs/components/control/dcc-compute.js"></script>
<script src="../../dccs/components/visual/dcc-report.js"></script>
<script src="../../dccs/components/web/dcc-web.js"></script>
<script src="../../dccs/components/visual/dcc-graph.js"></script>
<script src="../../dccs/components/data/dcc-table-csv.js"></script>
<script src="../../dccs/components/data/dcc-model.js"></script>
<script src="../../dccs/components/data/dcc-submit.js"></script>
<script src="../../dccs/components/data/dcc-record.js"></script>
<script src="../../dccs/components/data/dcc-form.js"></script>
<script src="../../dccs/components/web/dcc-rss.js"></script>
<script src="../../dccs/components/web/dcc-aggregator.js"></script>
<script src="../../dccs/components/web/dcc-dhtml.js"></script>
<script src="../../dccs/components/web/dcc-rest.js"></script>
<script src="../../dccs/components/web/dcc-include.js"></script>
<script src="../../dccs/components/web/dcc-play.js"></script>
<script src="../../dccs/components/cell/dcc-space-cellular.js"></script>
<script src="../../dccs/components/cell/dcc-cell.js"></script>
<script src="../../dccs/components/cell/dcc-cell-color.js"></script>
<script src="../../dccs/components/cell/dcc-cell-image.js"></script>
<script src="../../dccs/components/cell/rule-dcc-cell.js"></script>
<script src="../../dccs/components/cell/rule-dcc-cell-transition.js"></script>
<script src="../../dccs/components/cell/rule-dcc-cell-neighbor.js"></script>
<script src="../../dccs/components/cell/rule-dcc-cell-expression.js"></script>
<script src="../../dccs/components/ml/underscore.js"></script>
<script src="../../dccs/components/ml/data_util.js"></script>
<script src="../../dccs/components/ml/learningjs.js"></script>
<script src="../../dccs/components/ml/dcc-decision-tree.js"></script>
<script src="js/model-components.js"></script>
<script src="js/rest-components.js"></script>
<script src="js/submit-components.js"></script>
<script src="js/form-components.js"></script>
<script src="../../player/js/state.js"></script>
<script src="../../player/js/htracker.js"></script>
<script>
var source = null;
function start() {
MessageBus.i.subscribe("control/playground", playground);
let parameters = window.location.search.substr(1);
if (parameters != null && parameters.length > 0) {
const sourceMatch = parameters.match(/source=([\w-\/]+)/i);
if (sourceMatch != null) {
source = sourceMatch[1];
let caseScript = document.createElement("script");
caseScript.src = "gallery/" + source + ".js";
document.head.appendChild(caseScript);
}
}
}
function insertSource(name, source) {
document.querySelector("#source-name").innerHTML = name;
document.querySelector("#render-panel").innerHTML = source;
}
function playground() {
window.location.href = "index.html?source=" + source;
}
</script>
</head>
<body onload="start()">
<script>
// MessageBus.page = new MessageBus(false);
PrimitiveDCC.rootPath = "../../";
</script>
<main role="main">
<div class="d-flex flex-column vh-100 hidden-overflow">
<div class="align-items-stretch col-12">
<div class="std-panel h-100 w-100">
<div class="d-flex panel-label">
<span class="col-9" id="source-name">Result</span>
<div class="col-3">
<dcc-button topic="control/playground" label="PLAYGROUND" xstyle="in">
</dcc-button>
</div>
</div>
<div id="render-panel" class="h-100 w-100"></div>
</div>
</div>
</div>
</main>
</body>
</html>