Difference between revisions of "MediaWiki:AdditionalFooterIcons.js"

From Annotationssystem für Biodiversitätsdaten
Jump to: navigation, search
(Created page with "addOnloadHook(function() { var links = new Array( "http://wiki.bgbm.org/annosys-intern/images/Logo-BioCASE-88x31.png", "Logo BioCASe", "http://www.biocase.org", "http://wi...")
 
 
Line 5: Line 5:
 
"http://wiki.bgbm.org/annosys-intern/images/Logo-GBIF-D-88x31.png", "Logo GBIF", "http://www.gbif.org",
 
"http://wiki.bgbm.org/annosys-intern/images/Logo-GBIF-D-88x31.png", "Logo GBIF", "http://www.gbif.org",
 
"http://wiki.bgbm.org/annosys-intern/images/Logo-FU%20Berlin-88x31.png", "Logo FU-Berlin", "http://www.fu-berlin.de",  
 
"http://wiki.bgbm.org/annosys-intern/images/Logo-FU%20Berlin-88x31.png", "Logo FU-Berlin", "http://www.fu-berlin.de",  
"http://wiki.bgbm.org/annosys-intern/images/Logo-BGBM-88x31.png", "Logo BGBM", "http://www.bgbm.org",  
+
"http://wiki.bgbm.org/annosys-intern/images/Logo-BGBM-39x31.png", "Logo BGBM", "http://www.bgbm.org",  
 
"http://wiki.bgbm.org/annosys-intern/images/Logo-DFG-88x31.png", "Logo DFG", "http://www.dfg.de"
 
"http://wiki.bgbm.org/annosys-intern/images/Logo-DFG-88x31.png", "Logo DFG", "http://www.dfg.de"
 
);  
 
);  

Latest revision as of 12:16, 30 March 2015

addOnloadHook(function() {
 
	var links = new Array(
		"http://wiki.bgbm.org/annosys-intern/images/Logo-BioCASE-88x31.png", "Logo BioCASe", "http://www.biocase.org",
		"http://wiki.bgbm.org/annosys-intern/images/Logo-GBIF-D-88x31.png", "Logo GBIF", "http://www.gbif.org",
		"http://wiki.bgbm.org/annosys-intern/images/Logo-FU%20Berlin-88x31.png", "Logo FU-Berlin", "http://www.fu-berlin.de", 
		"http://wiki.bgbm.org/annosys-intern/images/Logo-BGBM-39x31.png", "Logo BGBM", "http://www.bgbm.org", 
		"http://wiki.bgbm.org/annosys-intern/images/Logo-DFG-88x31.png", "Logo DFG", "http://www.dfg.de"
	); 
 
	for(var i=0;i<links.length/3;i++){
		var img = document.createElement("img");
		img.src = links[i*3];
		img.alt = links[i*3+1];
		var link = document.createElement("a");
		link.href = links[i*3+2];
		link.style.paddingLeft = "8px";
		link.appendChild(img);
 
		if(skin=="vector"){
			var li = document.createElement("li");
			li.id = "footer-copyrightico"
			li.appendChild(link);
			var footer = document.getElementById("footer-icons");
			footer.appendChild(li);
		}else if(skin=="monobook"){
			var footer = document.getElementById("f-poweredbyico");
			footer.appendChild(link);
		}
	}
});