Widget:Toc
Материал из Ролевой сервер "tales.pw"
Версия от 14:14, 3 декабря 2019; Xunto (обсуждение | вклад)
<script>
var wrapper = document.createElement("div"); wrapper.id="js-toc" wrapper.style["position"] = "fixed"; wrapper.style["top"] = "55px"; wrapper.style["bottom"] = "0px"; wrapper.style["left"] = "0px"; wrapper.style["width"] = "350px"; wrapper.style["background-color"]= "rgba(255,255,255,.3)";
wrapper.style["overflow-x"] = "hidden"; wrapper.style["overflow-y"] = "scroll";
wrapper.innerHTML=document.querySelector("#toc ul").innerHTML;
document.body.append(wrapper); </script>