Se a Eliminado de Head los script js para evitar su carga inecesaria cuando no hace falta

This commit is contained in:
adevopg
2025-02-15 17:53:52 +01:00
parent 4b83057131
commit fa8a0e0891
25 changed files with 100 additions and 26 deletions
@@ -1,3 +1,9 @@
function doRefresh() {
$("#vote-panel").load(document.URL + " #vote-panel>*", function(){
$.getScript('/static/nw-themes/nw-ryu/nw-js-handlers/vote_points_response.js');
});
}
$(document).ready(function() {
$('.vote-button').each(function() {
var button = $(this);
@@ -59,6 +65,8 @@ $(document).ready(function() {
});
});
function startCooldownTimer(button, remainingTime) {
var interval = setInterval(function() {
if (remainingTime <= 0) {