MediaWiki:Gadget-CollapsibleSidebar.js:修订间差异
imported>=海豚= 无编辑摘要 |
小 →top:bad link repair, replaced: hmoegirl.com → hmoegirl.info |
||
| (未显示1个用户的3个中间版本) | |||
| 第53行: | 第53行: | ||
})); | })); | ||
}; | }; | ||
var logoPic = "https://www.hmoegirl. | var logoPic = "https://www.hmoegirl.info/images/b/bc/Hmoegirl_logo.png"; | ||
var arrowRightSvg = generateImageObject('<svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" enable-background="new 0 0 48 48"><polygon fill="#2196F3" points="17.1,5 14,8.1 29.9,24 14,39.9 17.1,43 36,24"/></svg>'); | var arrowRightSvg = generateImageObject('<svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" enable-background="new 0 0 48 48"><polygon fill="#2196F3" points="17.1,5 14,8.1 29.9,24 14,39.9 17.1,43 36,24"/></svg>'); | ||
var arrowLeftSvg = generateImageObject('<svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" enable-background="new 0 0 48 48"><polygon fill="#2196F3" points="30.9,43 34,39.9 18.1,24 34,8.1 30.9,5 12,24"/></svg>'); | var arrowLeftSvg = generateImageObject('<svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" enable-background="new 0 0 48 48"><polygon fill="#2196F3" points="30.9,43 34,39.9 18.1,24 34,8.1 30.9,5 12,24"/></svg>'); | ||
| 第70行: | 第70行: | ||
$logoLink.empty().removeAttr("class").attr("id", "sidebarHidden-logo-link").append($logo); | $logoLink.empty().removeAttr("class").attr("id", "sidebarHidden-logo-link").append($logo); | ||
var hide = function () { | var hide = function () { | ||
if ($(".toc-custom").length > 0){ | |||
document.querySelector(".toc-custom").style.transform="translate(-100%, 0)"; | |||
} | |||
if (saving) { | if (saving) { | ||
return; | return; | ||
| 第82行: | 第85行: | ||
}; | }; | ||
var show = function () { | var show = function () { | ||
if ($(".toc-custom").length > 0){ | |||
document.querySelector(".toc-custom").style.transform="translate(0, 0)"; | |||
} | |||
if (saving) { | if (saving) { | ||
return; | return; | ||