Common.js

From Young Beethoven
Jump to navigation Jump to search
(Created page with "→â€: $(function () { if($('input[name=composer]')) { $('#firstHeading').html($('input[name=composer]').val()+'<br>'+$('#firstHeading').html()); } }());")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
// Alter composition page name to feature composer
$(function () {
$(function () {
if($('input[name=composer]')) {
if($('input[name=composer]').length > 0) {
$('#firstHeading').html($('input[name=composer]').val()+'<br>'+$('#firstHeading').html());
$('#firstHeading').html($($('input[name=composer]')[0]).val()/*+'<br>'+$('#firstHeading').html()*/);
if($('input[name=title]').length > 0) {
$('#firstHeading').html($('#firstHeading').html()+'<br>'+$($('input[name=title]')[0]).val());
}
}
}
}());
}());

Latest revision as of 09:26, 3 August 2023

/* Any JavaScript here will be loaded for all users on every page load. */

// Alter composition page name to feature composer
$(function () {
	if($('input[name=composer]').length > 0) {
		$('#firstHeading').html($($('input[name=composer]')[0]).val()/*+'<br>'+$('#firstHeading').html()*/);
		if($('input[name=title]').length > 0) {
			$('#firstHeading').html($('#firstHeading').html()+'<br>'+$($('input[name=title]')[0]).val());
		}
	}
}());