﻿function Oku(kontrol, hedef) {
  $.ajax({
    type: "POST",
    url: "/MDSudoku",
    data: { kontrol: kontrol },
    dataType: "html",
    success: function (msg) {
      $(hedef).html(msg);
    },
    error: function (msg) {
      $(hedef).html("Sistemde hata meydana geldi. Lütfen tekrar deneyiniz..");
    }
  });
}
function Face(kontrol) {
  $.ajax({
    type: "POST",
    url: "/MDSudoku",
    data: { kontrol: kontrol },
    dataType: "html",
    success: function (msg) {
      $.facebox(msg);
    },
    error: function (msg) {
      $.facebox("Sistemde hata meydana geldi. Lütfen tekrar deneyiniz..");
    }
  });
}
$(function () {
  $("#time").show();
  $("<img id=\"loading\" src=\"/Content/loading.gif\">").appendTo("body");
  $("#loading").ajaxStart(function () {
    $(this).show();
  }).ajaxComplete(function () {
    $(this).hide();
  });
});
