{"size": 789, "ext": "js", "max_stars_repo_path": "src/js/delSity.js", "max_stars_repo_name": "gim89/weathertogo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/delSity.js", "max_issues_repo_name": "gim89/weathertogo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/delSity.js", "max_forks_repo_name": "gim89/weathertogo", "max_forks_repo_forks_event_min_datetime": "2018-02-22T07:58:20.000Z", "max_forks_repo_forks_event_max_datetime": "2019-02-13T11:16:39.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 25.4516129032, "max_line_length": 67, "alphanum_fraction": 0.6311787072}
const deleteSityBlock = event => {

  if(event.target.classList.contains("add-sity__del")) {

     if(event.target.parentNode.classList.contains("js-count_0")) {
        event.target.parentNode.remove();
        delete weatherWay['start'];

        let tempWay = document.querySelector(".js-way");
        tempWay.remove();

     } else {

        let classesSity = event.target.parentNode.classList;
        let classCount = classesSity[1];
        let arrClassCount = classCount.split("_");
        let count = arrClassCount[1];
        delete weatherWay[`start_${count}`];

        let tempWay = document.querySelector(`.js-way_${count}`);
        tempWay.remove();

        event.target.parentNode.remove();
     }

  }

  };

htmlCityBlock.addEventListener("click", deleteSityBlock);
