function copyCmd(button){
    var id = "exploit-" + button.id;
    document.getElementById(id).select();
    document.execCommand("copy");
}
function change_icon() {
    var icon_id = document.getElementById("file_upload_icon");
    icon_id.className = "fas fa-file-code";
    var label = document.getElementById("file_upload_label");
    label.style.cursor = "not-allowed";
}
function input_changed(id) {
    obj = document.getElementById(id.id + "-input");
    if (obj.style != "visibility:visible;"){
        obj.style = "visibility:visible;";
    }

}

$(".new-exploit-inp").focus(function(){
    this.addEventListener("keyup", function(event) {
        if (event.keyCode === 13) {
            $("#add-exploit-form").submit();
        }
    })
});