Toscead betweox fadungum "Brūcend:DaveZ122/spellingstyle.js"
Content deleted Content added
No edit summary |
No edit summary |
||
Líne 164:
*
* @param inputhtml input text or jQuery node
* @param inputstyle possible values: "
* @param outputstyle possible values:"
* @returns converted version of inputhtml
*/
Líne 171:
var temp = inputhtml;
if (inputstyle == outputstyle) return inputhtml;
if (inputstyle == "
temp = myReplace(temp, /G/g, 'Ȝ');
temp = myReplace(temp, /g/g, 'ȝ');
temp = myReplace(temp, /W/g, 'Ƿ');
temp = myReplace(temp, /w/g, 'ƿ');
} else if (inputstyle == "
temp = myReplace(temp, /Ȝ/g, "G");
temp = myReplace(temp, /ȝ/g, "g");
Líne 237:
/*
* This is code to be executed when the document is ready
* Basically, add [
* Clicking each link converts the document to that style.
* (see doConv)
Líne 243:
$(function() {
$ = jQuery;
$("#mw-content-text").prepend($("<center class=\"nochange\"><small>[ <a href=\"javascript:void(0);\" class=\"click-gw\">
$(".click-gw").click({"outputstyle": "
$(".click-yoghwynn").click({"outputstyle": "
$(".click-runes").click({"outputstyle": "runes"}, doConv);
});
|