Diferència entre revisions de la pàgina «MediaWiki:Common.js/traductor.js»
De Català a Cort
| 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 | + | h = 'Direcció de traducció:'; |
| + | h += '<input type="radio" name="direccio" id="spa-cat" value="spa-cat">'; | ||
h += '<label for="spa-cat">Castellà ➔ català</label><br>'; | h += '<label for="spa-cat">Castellà ➔ català</label><br>'; | ||
| − | h += '<label for="cat-spa"> | + | h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa">'; |
| + | h += '<label for="cat-spa">Català ➔ castellà</label><br>'; | ||
jQuery("#traductor").html(h); | jQuery("#traductor").html(h); | ||
}()); | }()); | ||
Revisió del 11:02, 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">';
h += '<label for="spa-cat">Castellà ➔ català</label><br>';
h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa">';
h += '<label for="cat-spa">Català ➔ castellà</label><br>';
jQuery("#traductor").html(h);
}());