{"size": 1341, "ext": "js", "max_stars_repo_path": "Admin/assets/js/dev.js", "max_stars_repo_name": "Yinblack/INNOVALED_V2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Admin/assets/js/dev.js", "max_issues_repo_name": "Yinblack/INNOVALED_V2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Admin/assets/js/dev.js", "max_forks_repo_name": "Yinblack/INNOVALED_V2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7288135593, "max_line_length": 83, "alphanum_fraction": 0.5421327368}
window.addEventListener("load", function () {
    window.loaded = true;
});

(function listen () {
    if (window.loaded) {
      $('div.loader').hide();
    } else {
      window.setTimeout(listen, 50);
    }
})();

var base_url;
window.base_url = "https://www.innovaled.pe/v2/Admin/";
//window.base_url = "http://localhost/INNOVALED_V2/Admin/";

function notification(text, type, layout){
	$.noty.closeAll();
  	var n = noty({
  	  text: text,
  	  type: type,
  	  layout: layout,
      theme: 'defaultTheme',
      killer: true,
      timeout: 2000,
      animation: {
          open: 'animated bounceIn',
          close: 'animated fadeOut',
          speed: 250
      }
  	});
}

function confirm(text, functionName, param){

    var n = noty({
      text: text,
      type: 'information',//success, error, warning, information, notification
      layout: 'topRight',
      timeout: 500,
      animation: {
        open: 'animated bounceIn',
        close: 'animated fadeOut',
        speed: 250
      },
      buttons: [
        {addClass: 'btn btn-primary', text: 'Confirmar', onClick: function($noty) {
            $noty.close();
            functionName(param);
          }
        },
        {addClass: 'btn btn-danger', text: 'Cancelar', onClick: function($noty) {
            $noty.close();
         }
        }
      ]
  });
}
