{"size": 1222, "ext": "js", "max_stars_repo_path": "js/script.js", "max_stars_repo_name": "omer-genc/todo-list", "max_stars_repo_stars_event_min_datetime": "2022-03-11T12:17:51.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-11T12:17:51.000Z", "max_issues_repo_path": "js/script.js", "max_issues_repo_name": "omer-genc/todo-list", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/script.js", "max_forks_repo_name": "omer-genc/todo-list", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.5652173913, "max_line_length": 108, "alphanum_fraction": 0.6456628478}
function addNewElement() {
    let girdi = document.querySelector('#girilenoge').value;
    var toastLiveExample = document.getElementById('liveToast')

    if (girdi === "") {
        var toast = new bootstrap.Toast(toastLiveExample)
        
        toast.show()


    } else {


        let yapilacaklarDOM = document.querySelector('#yapilacaklar');
        let eklenecekHTML = `
        <li class="list-group-item list-group-item-action list-group-item-danger">
        <input class="form-check-input me-1" type="checkbox" aria-label=""onchange="move(this)">
        ${girdi}
        <button type="button" class="btn-close float-end"aria-label="Close" onclick="remove(this)"></button>
        </li>
        `

        yapilacaklarDOM.innerHTML += eklenecekHTML

    }
}

function move(element) {
    let tasinacakElement = element.parentElement;


    if (element.checked) {
        let yapildiDOM = document.querySelector('#yapildi');
        yapildiDOM.append(tasinacakElement);
    } else {
        let yapilacakDOM = document.querySelector('#yapilacaklar');
        yapilacakDOM.append(tasinacakElement);
    }
    console.log(tasinacakElement)


}

function remove(element) {
    element.parentElement.remove();
}