Commit 0220555d authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

add code handling

parent b5f2cfbe
......@@ -584,6 +584,7 @@ function load_cluster_file() {
sentence: obj.sentence,
audio: obj.audio,
meta: obj.meta,
code: obj.code,
}, display_picture);
result_nb++;
update_progress_num();
......@@ -633,6 +634,8 @@ function display_picture(event) {
app.doc_url = "";
}
app.code = event.data.code;
$("#svg-link").attr("href", event.data.url);
update_progress_num();
......@@ -752,6 +755,11 @@ function one_conll() {
})
}
// ==================================================================================
function one_code() {
$("#conllResult").html(app.code);
$('#conllModal').modal('show');
}
// ==================================================================================
function copy_conll() {
$("#conllResult").select()
......
......@@ -9,6 +9,8 @@ var app = new Vue({
doc_url: "",
meta: {},
code: "",
},
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment