Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <b:if cond='data:blog.pageType == "item" or data:blog.pageType == "static_page"'>
- <!-- Blogger TOC -->
- <script type='text/javascript'>
- //<![CDATA[
- function bwstoc() {
- var bwstoc = i = headinglength = getheading = 0;
- headinglength = document.getElementById("post-toc").querySelectorAll("h2, h3, h4").length;
- if (headinglength > 0) {
- // Hanya Tampil Jika Ditemukan Minimal 1 Heading
- for (i = 0; i < headinglength; i++) {
- getheading = document.getElementById("post-toc").querySelectorAll("h2, h3, h4")[i].textContent;
- var bws_1 = getheading.replace(/[^a-z0-9]/gi," ");
- var bws_2 = bws_1.trim();
- var getHeadUri = bws_2.replace(/\s/g, "_");
- document.getElementById("post-toc").querySelectorAll("h2, h3, h4")[i].setAttribute("id", getHeadUri);
- bwstoc = "<li><a href='#" + getHeadUri + "'>" + getheading + "</a></li>";
- document.getElementById("bwstoc").innerHTML += bwstoc;
- }
- } else { document.write("<style>.bwstoc{display:none !important;visibility:hidden !important;width:0 !important;height:0 !important;}</style>"); }
- }
- function bwstocShow() {
- var bwstocBtn = document.getElementById('bwstoc');
- var bwstocWrapID = document.getElementById('bwstocwrap');
- var bwstocLink = document.getElementById('bwstocLink');
- if (bwstocBtn.style.display === 'none') {
- bwstocBtn.style.display = 'block';
- bwstocWrapID.style.display = 'block';
- bwstocLink.innerHTML = 'إخفاء';
- } else {
- bwstocBtn.style.display = 'none';
- bwstocWrapID.style.display = 'inline-block';
- bwstocLink.innerHTML = 'إظهار';
- }
- }
- //]]>
- </script>
- <noscript><style media='all' type='text/css'>#bwstocwrap,.bwstoc{display:none !important;visibility:hidden !important;width:0 !important;height:0 !important;}</style></noscript>
- </b:if>
Add Comment
Please, Sign In to add comment