A Project of the Center for Advanced Study in the Visual Arts, National Gallery of Art
History of Early American Landscape Design

Difference between revisions of "MediaWiki:HealdImages.js"

[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
(Install package: HEALD Images)
 
(Update package: HEALD Images)
 
Line 7: Line 7:
 
$imageInfo.appendTo( $parserOutput );
 
$imageInfo.appendTo( $parserOutput );
 
}
 
}
 +
moveFreeTextNs6();
 
} );
 
} );
 +
 +
 +
function moveFreeTextNs6(){
 +
// Move freetext in File namespace HEAL-146
 +
var target = $('.ns-6 #file .mw-filepage-resolutioninfo');
 +
if(target.length){
 +
$('#free-text-section').detach().insertBefore(target);
 +
}
 +
}

Latest revision as of 19:31, August 11, 2021

$( function () {
	// Finds an image info section and moves it to the bottom
	var $imageInfo = $( '#mw-content-text .about-image-section' ),
	    $parserOutput = $( '#mw-content-text > .mw-parser-output' );

	if ( $imageInfo.length ) {
		$imageInfo.appendTo( $parserOutput );
	}
	moveFreeTextNs6();
} );


function moveFreeTextNs6(){
	// Move freetext in File namespace HEAL-146
	var target = $('.ns-6 #file .mw-filepage-resolutioninfo');
	if(target.length){
		$('#free-text-section').detach().insertBefore(target);
	}
}

Retrieved from "https://heald.nga.gov/mediawiki/index.php?title=MediaWiki:HealdImages.js&oldid=41318"

History of Early American Landscape Design contributors, "MediaWiki:HealdImages.js," History of Early American Landscape Design, , https://heald.nga.gov/mediawiki/index.php?title=MediaWiki:HealdImages.js&oldid=41318 (accessed March 29, 2024).

A Project of the Center for Advanced Study in the Visual Arts

National Gallery of Art, Washington