User:Erutuon/scripts/familyTree.js

Hello, you have come here looking for the meaning of the word User:Erutuon/scripts/familyTree.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Erutuon/scripts/familyTree.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Erutuon/scripts/familyTree.js in singular and plural. Everything you need to know about the word User:Erutuon/scripts/familyTree.js you have here. The definition of the word User:Erutuon/scripts/familyTree.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Erutuon/scripts/familyTree.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
// Change the text in the custom toggles generated by ].
$(function () {
	$('.mw-collapsible').on('beforeExpand.mw-collapsible beforeCollapse.mw-collapsible',
    function (event) {
        if (this.id.indexOf("mw-customcollapsible-familytree") === 0) {
            const toggle = $("." + this.id.replace("mw-customcollapsible", "mw-customtoggle"));
            if (event.type === "beforeExpand") {
                toggle.html(this.dataset.collapsetext);
            } else { // beforeCollapse
                toggle.html(this.dataset.expandtext);
            }
            event.stopPropagation();
        }
    });
});