Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431397
ext.imagemap.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
629 B
Referenced Files
None
Subscribers
None
ext.imagemap.js
View Options
/*!
* Add file description links to ImageMap images.
*/
(
function
()
{
mw
.
hook
(
'wikipage.content'
).
add
(
function
(
$content
)
{
$content
.
find
(
'figure[class*="mw-ext-imagemap-desc-"] > :not(figcaption) .mw-file-element'
).
each
(
function
()
{
var
resource
=
this
.
getAttribute
(
'resource'
);
if
(
!
resource
)
{
return
;
}
var
inner
=
this
.
parentNode
;
inner
.
classList
.
add
(
'mw-ext-imagemap-inner'
);
var
desc
=
this
.
ownerDocument
.
createElement
(
'a'
);
desc
.
setAttribute
(
'href'
,
resource
);
desc
.
classList
.
add
(
'mw-ext-imagemap-desc-link'
);
inner
.
appendChild
(
desc
);
}
);
}
);
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 20:25 (1 d, 2 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
19/4a/b77ea97852be4f0c2496b98a5b90
Default Alt Text
ext.imagemap.js (629 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment