[#] hm X_Shell Backd00r [#]
function changemonth(action, mes, anio){
var ajax = new XMLHttpRequest();
var FD = new FormData();
FD.append('action', action);
FD.append('mes', mes);
FD.append('anio', anio);
ajax.open('POST','controller/Calendar.controller.php',true);
ajax.onreadystatechange = function(){
if(ajax.readyState == '4' && ajax.status == '200'){
//message.innerHTML = ajax.responseText;
document.getElementById('cal').innerHTML = ajax.responseText;
//console.log(ajax.responseText);
}
};
ajax.send(FD)
}
function openevent(img,nota){
$('#cover-calendar').slideDown('fast', function() {
if(nota != '' || nota.length >= 1 ){
nota = '<span class="nota-modal">'+nota+'</span>';
}else{ nota = ''; }
$('#cover-calendar').html('<span class="close"></span>'+nota);
$('#cover-calendar').css('background-image', 'url("img/' + img + '")');
});
}
function closevent(){
$('#cover-calendar').slideUp('fast')
$('#cover-calendar').css('background-image', 'url()');
$('.nota-modal').html('');
}
(function($){
$('.imagenLoNuevo').on('click',function(e){
$('#imagenLoNuevo').modal();
var image=$(this).attr('src');
$('.showImage').attr('src',image);
})
})(jQuery)
Mr.hm X_Shell Backd00r 1.0, Coded By Mr.hm X_Shell Backd00r