Hello, you have come here looking for the meaning of the word
User:Bequw/HideGlossParens.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word
User:Bequw/HideGlossParens.js, but we will also tell you about its etymology, its characteristics and you will know how to say
User:Bequw/HideGlossParens.js in singular and plural. Everything you need to know about the word
User:Bequw/HideGlossParens.js you have here. The definition of the word
User:Bequw/HideGlossParens.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
User:Bequw/HideGlossParens.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
function localGetSpansFromClass(str){
var spans = ;
if (document.querySelectorAll){
spans = document.querySelectorAll('.' + str);
} else { //IE <8
var allSpans = document.getElementsByTagName('span');
for (var i = 0; i < allSpans.length; i++){
if(allSpans.getAttribute('class') == str)
spans.push(allSpans);
}
}
return spans;
}
function hidetheglossparens(){
mgpSpans = localGetSpansFromClass('mention-gloss-paren');
for(var i = 0; i < mgpSpans.length; i++){
mgpSpans.parentNode.removeChild(mgpSpans);
}
mtgscSpans = localGetSpansFromClass('mention-tr-gloss-separator-comma');
for(var i = 0; i < mtgscSpans.length; i++){
var parent = mtgscSpans.parentNode;
var mtpSpan = document.createElement('span');
mtpSpan.setAttribute('class','mention-tr-paren');
mtpSpan.innerHTML = ")";
parent.insertBefore(mtpSpan, mtgscSpans);
parent.removeChild(mtgscSpans);
}
}
jQuery(hidetheglossparens);