Submit your research to the International Journal "Notes on Intuitionistic Fuzzy Sets". Contact us at nifs.journal@gmail.com

Call for Papers for the 27th International Conference on Intuitionistic Fuzzy Sets is now open!
Conference: 5–6 July 2024, Burgas, Bulgaria • EXTENDED DEADLINE for submissions: 15 APRIL 2024.

MediaWiki:Common.js/Edit section.js: Difference between revisions

From Ifigenia, the wiki for intuitionistic fuzzy sets and generalized nets
Jump to navigation Jump to search
(New page: /** Shifting the edit section links * Copyright 2006, Marc Mongenet. Licence GPL et GFDL. * The function looks for <span class="editsection">, and moves them * to the end of their parent. ...)
(No difference)

Revision as of 02:10, 8 October 2008

/** Shifting the edit section links
* Copyright 2006, Marc Mongenet. Licence GPL et GFDL.
* The function looks for <span class="editsection">, and moves them
* to the end of their parent.
* var oldEditsectionLinks=true disables the function.
*/
 
function setModifySectionStyle() {
	try {
		if ( typeof oldEditsectionLinks != 'undefined' && oldEditsectionLinks ) return;
		var spans = document.getElementsByTagName("span");
		for (var s = 0, len = spans.length; s < len; ++s) {
			var span = spans[s];
			if (span.className == "editsection") {
				span.style.cssFloat = span.style.styleFloat = "none";
				span.parentNode.appendChild(document.createTextNode(" "));
				span.parentNode.appendChild(span);
			}
		}
	} catch (e) { /* something went wrong */ }
}
 
addOnloadHook(setModifySectionStyle);