• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
Basic webp support
Line 334: Line 334:  
setTimeout(function() { initializeStickyHeader(); }, 1000);
 
setTimeout(function() { initializeStickyHeader(); }, 1000);
 
//})
 
//})
 +
 +
// Basic webp support
 +
 +
$('.webp').each(function () {
 +
    const file = $(this).data('src');
 +
    const init = $(this).data('init');
 +
    if (!file || init) return;
 +
      $(this).append($('<img>').attr('src', 'https://en.kancollewiki.net/Special:Filepath/' + src));
 +
        $(this).data('init', true);
 +
});
 +
 
});
 
});
cssedit, gkautomate
7,064

edits

Navigation menu