-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
195 lines (187 loc) · 9.83 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>ex-parsing app</title>
<base href="{{site.github.url}}" charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/my.css">
<script src="https://d3js.org/d3.v5.min.js" charset="utf-8"></script>
</head>
<body onLoad="init()">
<h1>Expectaion-based Parsing Analysis App</h1>
<div class="container-fluid">
<h3>Grammar settings</h3>
<!-- <div class="btn-group-lg btn-group-toggle" data-toggle="buttons">
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">C
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">C#
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">D
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">D#
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">E
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">F
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">F#
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">G
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">G#
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">A
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">A#
</label>
<label class="btn btn-outline-success">
<input type="checkbox" autocomplete="off">B
</label>
</div> -->
<div class="border rounded">
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active h5" id="nav-start-tab" data-toggle="tab" href="#nav-start"
role="tab" aria-controls="nav-start" aria-selected="true">take the A train</a>
<a class="nav-item nav-link h5 " id="nav-preparation-tab" data-toggle="tab" href="#nav-preparation"
role="tab" aria-controls="nav-preparation" aria-selected="false">satin doll</a>
<a class="nav-item nav-link h5" id="nav-replace-tab" data-toggle="tab" href="#nav-replace"
role="tab" aria-controls="nav-replace" aria-selected="false">(manual)</a>
</div>
</nav>
<div class="tab-content mt-3" id="nav-tabContent">
<div class="tab-pane active" id="nav-start" role="tabpanel" aria-labelledby="nav-start-tab">
<div class="form-group">
<textarea class="form-control" id="exampleFormControlTextarea1" rows="5" readonly>
S -> I_C
I_C -> I_C I_C
I_C -> V_C I_C
V_C -> II_C V_C
V_C -> V_G V_C
</textarea>
</div>
</div>
<div class="tab-pane" id="nav-preparation" role="tabpanel" aria-labelledby="nav-preparation-tab">
<textarea class="form-control" id="exampleFormControlTextarea1" rows="9" readonly>
S -> I_C
I_C -> V_C I_C
V_C -> II_C V_C
V_C -> V_G V_C
V_C -> V_F#
V_D -> II_D V_D
V_F#-> II_F# V_F#
V_G -> II_G V_G
V_G -> V_D V_G
</textarea>
</div>
<div class="tab-pane fade" id="nav-replace" role="tabpanel" aria-labelledby="nav-replace-tab">
<!-- text area -->
under construction
<!-- <button type="button" id="set-button3" class="btn btn-primary btn-sm">set</button> -->
</div>
</div>
</div>
<h3>
Tree Analysis
</h3>
<div class="border">
<div class="row no-gutters">
<div class="col-2">
<div class="nav flex-column nav-pills nav-fill" id="v-pills-tab" role="tablist"
aria-orientation="vertical">
<a class="nav-link active" id="v-pills-a-train" data-toggle="pill" href="#v-pills-a-train"
role="tab" aria-controls="v-pills-a-train" aria-selected="true">take the A train</a>
<a class="nav-link" id="v-pills-satin" data-toggle="pill" href="#v-pills-satin"
role="tab" aria-controls="v-pills-satin" aria-selected="false">satin doll</a>
<!-- <a class="nav-link" id="v-pills-custom-songs" data-toggle="pill" href="#v-pills-custom-songs"
role="tab" aria-controls="v-pills-custom-songs" aria-selected="false">(custom song)</a> -->
</div>
</div>
<div class="col-10 border-left">
<div class="tab-content" id="v-pills-tabContent">
<div class="row justify-content-between">
<div class="col-md-5">
<div class="input-group">
<select class="custom-select" id="inputGroupSelect01">
<option>global chart</option>
<option>local chart</option>
</select>
</div>
</div>
<div class="col-md-5">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text" for ="inputGroupSelect02">Candidate#</span>
</div>
<select class="custom-select" id="inputGroupSelect02">
<option value="0" selected>1</option>
</select>
<div class="input-group-append">
<span class="input-group-text">of</span>
<span class="input-group-text" id="candidate_num">0</span>
</div>
</div>
</div>
</div>
<div class="tab-pane fade show active" id="v-pills-a-train" role="tabpanel"
aria-labelledby="v-pills-a-train">
<div class="overflow-auto" style="max-height: 600px;">
<svg class="svg" width="100%" height="450px"></svg>
</div>
chord sequence :<span id="display_sequence"> ---show chord sequence in this area--- </span>
<div class="row">
<div class="input-group col-sm-4">
<div class="input-group-prepend">
<span class="input-group-text">next </span>
</div>
<input type="text" class="form-control" placeholder="input next chord name!"
aria-label="..." aria-describedby="button-addon1 button-addon2" id="input-txt-area" value="Cmaj7">
<div class="input-group-append">
<button type="button" id="add-button" class="btn btn-outline-success">add</button>
</div>
</div>
<div class="btn-group" roule="group">
<button type="button" id="back-button" class="btn btn-outline-secondary">back</button>
<button type="button" id="clear-all-button" class="btn btn-outline-secondary">clear all</button>
</div>
</div>
<br>
</div>
<div class="tab-pane fade" id="v-pills-satin" role="tabpanel"
aria-labelledby="v-pills-satin">
<p>analysis of sample song2...</p>
</div>
<div class="tab-pane fade" id="v-pills-autumn-leaves" role="tabpanel"
aria-labelledby="v-pills-autumn-leaves">
<p>analysis of sample song3...</p>
</div>
<div class="tab-pane fade" id="v-pills-custom-songs" role="tabpanel"
aria-labelledby="v-pills-custom-songs">
<p>analysis of custom song...</p>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.js"></script>
<script src="js/incremental_chart.js"></script>
<script type="text/javascript" src="js/jquery-3.4.1.js"></script>
<script type="text/javascript" src="js/bootstrap.bundle.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script src="js/tree.js"></script>
</div>
</body>
</html>