{"size": 1316, "ext": "js", "max_stars_repo_path": "home/static/js/reply_modal.js", "max_stars_repo_name": "kotedadgi/uniqna", "max_stars_repo_stars_event_min_datetime": "2017-06-28T14:14:40.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-15T19:04:35.000Z", "max_issues_repo_path": "home/static/js/reply_modal.js", "max_issues_repo_name": "kotedadgi/uniqna", "max_issues_repo_issues_event_min_datetime": "2017-06-12T09:45:12.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-20T13:20:11.000Z", "max_forks_repo_path": "home/static/js/reply_modal.js", "max_forks_repo_name": "kotedadgi/uniqna", "max_forks_repo_forks_event_min_datetime": "2017-06-12T09:02:56.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-12T09:52:50.000Z"}
{"max_stars_count": 12, "max_issues_count": 294, "max_forks_count": 14, "avg_line_length": 23.5, "max_line_length": 97, "alphanum_fraction": 0.5820668693}
var reply = new Vue({
  delimiters: ["[", "]"],
  el: '.replying',
  data: {
    username: '',
    url: '',
  }
});

new Vue({
  el: '.reply-vue',
  methods: {
    getUserAndUrl: function(dingdong, reply_id) {
      reply.username = dingdong;
      var reply_url = window.location.origin + '/thread/reply/';
      reply.url = reply_url + reply_id + '/';
      $(".reply-modal").addClass("is-active");
    },
    getDeleteUrl: function(thread_id, reply_id) {
      replyAuthorModal.bgcolor = 'rgba(198, 40, 40, 0.9)';
      var delete_reply_url = window.location.origin + '/thread/' + thread_id + '/delete/answer/';
      replyAuthorModal.url = delete_reply_url + reply_id + '/';
    }
  }
});

var replyAuthorModal = new Vue({
  delimiters: ["[", "]"],
  el: '.reply-author-panel',
  data: {
    bgcolor: '',
    content: '',
    url: '',
  }
});

$(".modal-close").click(function() {
  $(".reply-modal").removeClass("is-active");
});

$(".modal-background").click(function() {
  $(".reply-modal").removeClass("is-active");
});

$(".reply-delete").click(function() {
  $(".reply-author-panel").addClass("is-active");
});

$(".modal-close").click(function() {
  $(".reply-author-panel").removeClass("is-active");
});

$(".modal-background").click(function() {
  $(".reply-author-panel").removeClass("is-active");
});
