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 01:42, 29 November 2020
1 byte removed
,
3 years ago
m
no edit summary
Line 227:
Line 227:
Author: gaka
Author: gaka
*/
*/
−
$(()
=>
{
+
$(
function
() {
−
const
supportTemplateMapImageNode
=
()
=>
{
+
function
supportTemplateMapImageNode() {
$('.map-node a').off('click')
$('.map-node a').off('click')
$('.map-node a').click(function (e) {
$('.map-node a').click(function (e) {
e.preventDefault()
e.preventDefault()
−
const
$element = $($(this).attr('href'))
+
var
$element = $($(this).attr('href'))
−
const
$container = $element.parent()
+
var
$container = $element.parent()
$container.scrollTop($container.scrollTop() - $container.offset().top + $element.offset().top)
$container.scrollTop($container.scrollTop() - $container.offset().top + $element.offset().top)
})
})
Tsubakura
cssedit, prechecked
1,656
edits