Comicatch
285
chapters
1
source
8mo
updated
8.0Rating across the web
0Readers saved it

Todos Los Generos: Acción, Artes Marciales, Guerra, Militar, Supervivencia, Vida Escolar Yu Ijin fue el único sobreviviente de un accidente de avión cuando era pequeño. Después de convertirse en mercenario para sobrevivir durante 10 años, regresa con su familia a su ciudad natal. Mostrar mas .mark-completed { display: inline-block; margin-left: 0px; position: relative; } .wp-manga-mark-completed-single { color: #777; text-decoration: none; cursor: pointer; } .wp-manga-mark-completed-single .fa-check-circle.completed { color: #4CAF50; } .wp-manga-mark-completed-single:hover { color: #333; } .mark-completed-disabled { color: #ccc !important; cursor: not-allowed !important; text-decoration: none; } .tooltip-text { display: none; position: absolute; background: #333; color: #fff; padding: 5px 10px; border-radius: 3px; font-size: 12px; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; margin-bottom: 5px; z-index: 100; } .mark-completed:hover .tooltip-text { display: block; } jQuery(document).ready(function ($) { var canVote = true; // Variable para controlar si el usuario puede votar // Manejar clic en "Me gusta" $('.kodex-like-btn').on('click', function () { if (canVote) { var post_id = $(this).data('post-id'); vote(post_id, 'like', $(this)); } }); // Manejar clic en "No me gusta" $('.kodex-dislike-btn').on('click', function () { if (canVote) { var post_id = $(this).data('post-id'); vote(post_id, 'dislike', $(this)); } }); // Función para enviar el voto function vote(post_id, type, button) { if (!canVote) return; // Si no puede votar, salir de la función canVote = false; // Desactivar la posibilidad de votar // Desactivar los botones $('.kodex-like-btn, .kodex-dislike-btn').prop('disabled', true); // Mostrar el mensaje de espera $('.kodex-wait-message').text('Espera 10 segundos antes de votar nuevamente.').fadeIn(); // Enviar la solicitud AJAX $.ajax({ url: 'https://lectortaurus.com/wp-admin/admin-ajax.php', type: 'POST', data: { action: 'kodex_update_vote', post_id: post_id, type: type }, success: function (response) { if (response.success) { // Quitar la clase "active" de ambos botones $('.kodex-like-btn, .kodex-dislike-btn').removeClass('active'); // Añadir la clase "active" al botón en el que se hizo clic button.addClass('active'); // Mostrar el mensaje de actualización $('.kodex-vote-message').text('¡Voto actualizado!').fadeIn().delay(2000).fadeOut(); // Actualizar los contadores de votos $('.like-count').text(response.data.likes); $('.dislike-count').text(response.data.dislikes); } else { // Mostrar mensaje de error $('.kodex-vote-message').text(response.data).fadeIn().delay(2000).fadeOut(); } // Habilitar los botones después de 10 segundos setTimeout(function () { canVote = true; $('.kodex-like-btn, .kodex-dislike-btn').prop('disabled', false); $('.kodex-wait-message').fadeOut(); // Ocultar el mensaje de espera }, 10000); // 10 segundos // Ocultar el mensaje de espera después de 3 segundos $('.kodex-wait-message').delay(3000).fadeOut(); } }); } }); Rating 4.8 -->

Chapters 285

No chapters in your languages yet, so these are in the languages this series has.

Comments

Loading comments…