Diferència entre revisions de la pàgina «MediaWiki:Common.js/traductor.js»
De Català a Cort
m |
|||
| (Hi ha 2 revisions intermèdies del mateix usuari que no es mostren) | |||
| Línia 3: | Línia 3: | ||
if (jQuery("#traductor").length == 0) | if (jQuery("#traductor").length == 0) | ||
return; | return; | ||
| − | h = 'Direcció de traducció: <input type="radio" name="direccio" id="spa-cat" value="spa-cat"><input type="radio" name="direccio" id="cat-spa" value="cat-spa" | + | h = 'Direcció de traducció:'; |
| − | + | h += '<input type="radio" name="direccio" id="spa-cat" value="spa-cat" checked="checked">'; | |
| − | h += '<label for="cat-spa"> | + | h += '<label for="spa-cat">Castellà ➔ català</label>'; |
| + | h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa" style="margin-left: 3em;">'; | ||
| + | h += '<label for="cat-spa">Català ➔ castellà</label>'; | ||
jQuery("#traductor").html(h); | jQuery("#traductor").html(h); | ||
}()); | }()); | ||
Revisió de 11:10, 22 set 2022
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
if (jQuery("#traductor").length == 0)
return;
h = 'Direcció de traducció:';
h += '<input type="radio" name="direccio" id="spa-cat" value="spa-cat" checked="checked">';
h += '<label for="spa-cat">Castellà ➔ català</label>';
h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa" style="margin-left: 3em;">';
h += '<label for="cat-spa">Català ➔ castellà</label>';
jQuery("#traductor").html(h);
}());