Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 02:36, 10 May 2023
14 bytes added
,
1 year ago
no edit summary
Line 352:
Line 352:
var source = $('<source>').attr('type', 'video/' + ext);
var source = $('<source>').attr('type', 'video/' + ext);
for (var attr in $(this).data()) {
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));
+
var el =
attr === 'src' || attr === 'type' ? source : video
;
+
el
.attr(attr, (attr === 'src' ? 'https://en.kancollewiki.net/Special:Filepath/' : '') + $(this).data(attr));
}
}
video.append(source);
video.append(source);
がか
cssedit, gkautomate
6,926
edits