https://github.com/angeloschatzimparmpas/t-viSNE
Tip revision: b9c399ace7c2f1292c2f00f6b06f637a81bf780f authored by dependabot[bot] on 06 January 2023, 02:55:58 UTC
Bump json5, babelify and rollup-plugin-babel in /modules/d3-legend
Bump json5, babelify and rollup-plugin-babel in /modules/d3-legend
Tip revision: b9c399a
data_form_handler.js
function changeDataset(value) {
var format = value.split("."); // Get the data set's format.
if (format[value.split(".").length-1] != "csv") { // This is a function that handles a new file, which users can upload.
d3.select("#data").select("input").remove();
$("#data").html(''); // Print on the screen the classification label.
d3.select("#data")
.append("input")
.attr("type", "file")
.style("font-size", 'calc(0.35em + 0.9vmin)')
.on("change", function() {
var file = d3.event.target.files[0];
getfile(file);
$("#data").html(file.name);
})
} else {
$("#data").html('Data sets'); // Print on the screen the classification label.
d3.select("#data").select("input").remove(); // Remove the selection field.
}
}