All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.static.topic.topic.js Maven / Gradle / Ivy

The newest version!
$(document).ready(function () {
    loadTopicDescriptionYaml();
});

function loadTopicDescriptionYaml() {
    let topicYaml = $("#topic-yaml");
    let topicName = topicYaml.attr("data-topic-name");
    $.get("api/topics/single", {topicName: topicName})
        .done(function (topicDescription) {
            jsonToYaml(topicDescription, function (yaml) {
                $("#filename").text("topics/" + topicDescription.name.replace(/[^\w\-.]/, "_") + ".yaml");
                topicYaml.text(yaml);
            });
        });
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy