• 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
no edit summary
Line 335: Line 335:  
//})
 
//})
   −
// Basic webp support
+
// Basic webp/webm/etc. support
    
$('.webp').each(function () {
 
$('.webp').each(function () {
Line 345: Line 345:  
a.append(img);
 
a.append(img);
 
       $(this).append(a);
 
       $(this).append(a);
 +
});
 +
 +
$('.webm').each(function () {
 +
var video = $('<video>').attr('controls');
 +
var source = $('<source>').attr('type', 'video/webm');
 +
for (var attr in $(this).data()) {
 +
;(attr === 'src' || attr === 'type' ? source : video).attr(attr, (attr === 'src' ? 'https://en.kancollewiki.net/Special:Filepath/' : '') + $(this).data(attr));
 +
}
 +
video.append(source);
 +
      $(this).append(video);
 
});
 
});
    
});
 
});
cssedit, gkautomate
7,064

edits

Navigation menu