User:WikiMacaroons/WikiDyslexia 1.0.js

//document.body.style.backgroundColor = "rgb(255, 246, 176)"; //yellow:255, 243, 153 //	document.getElementById("bodyContent").style.backgroundColor = "rgb(150, 191, 255)"; //	document.getElementById("content").style.backgroundColor = "rgb(150, 191, 255)"; //document.getElementById("mw-head").style.backgroundColor = "rgb(255, 246, 176)"; //style.fontFamily = "Impact,Charcoal,sans-serif"; // document.getElementById("bodyContent").style.fontFamily = "Comic Sans MS"; // document.getElementById("bodyContent").style.fontSize = "large"; var img = new Image; img.src = "https://media.discordapp.net/attachments/674670422544875520/714483896460247060/WikiDyslexiaforWiki.png" document.getElementById('p-logo').innerHTML='' var dmt = "--WikiDyslexia Menu-[" var tdto = "Blue Theme"; var tdtt = "Yellow Theme"; var tdls = "Word Spacing"; var tdlstw = "(20)"; var tdlst = "(10)"; var tdtf = "Off" var pip = "|" var dme = "]--" var cssadd1 = ` @font-face { font-family: JuneBug; src: url('JUNEBUG.TTF'); } h1 { font-family: JuneBug }` var dysmen = $(mw.util.addPortletLink('p-personal','#',dmt,'Menu Title','Menu Title','','#pt-mytalk')); var dystog = $(mw.util.addPortletLink('p-personal','#',tdto,'Toggle Dyslexia Theme','Toggle Dyslexia Theme','','#pt-mytalk')); var dpip1 = $(mw.util.addPortletLink('p-personal','#',pip,,,'','#pt-mytalk')); var dystogt = $(mw.util.addPortletLink('p-personal','#',tdtt,'Toggle Dyslexia Theme','Toggle Dyslexia Theme','','#pt-mytalk')); var dpip2 = $(mw.util.addPortletLink('p-personal','#',pip,,,'','#pt-mytalk')); var dyslsm = $(mw.util.addPortletLink('p-personal','#',tdls,'Toggle Dyslexia Spacing','Toggle Dyslexia Spacing','','#pt-mytalk')); var dystwenty = $(mw.util.addPortletLink('p-personal','#','20','Toggle Dyslexia Spacing','Toggle Dyslexia Spacing','','#pt-mytalk')); var dysten = $(mw.util.addPortletLink('p-personal','#','10','Toggle Dyslexia Spacing','Toggle Dyslexia Spacing','','#pt-mytalk')); var dyspoff = $(mw.util.addPortletLink('p-personal','#','Normal','Toggle Dyslexia Spacing','Toggle Dyslexia Spacing','','#pt-mytalk')); var dpip3 = $(mw.util.addPortletLink('p-personal','#',pip,,,'','#pt-mytalk')); var dyscom = $(mw.util.addPortletLink('p-personal','#','Comic Sans','Toggle font','Toggle font','','#pt-mytalk')); var dyscom1 = $(mw.util.addPortletLink('p-personal','#','TestFont','Toggle font','Toggle font','','#pt-mytalk')); var dpip4 = $(mw.util.addPortletLink('p-personal','#',pip,,,'','#pt-mytalk')); var dysoff = $(mw.util.addPortletLink('p-personal','#',tdtf,'Toggle Dyslexia Theme','Toggle Dyslexia Theme','','#pt-mytalk')); var dysend = $(mw.util.addPortletLink('p-personal','#',dme,'Menu','Menu','','#pt-mytalk')); $( dystog ).click( function {	document.getElementById("bodyContent").style.backgroundColor = "rgb(150, 191, 255)";	document.getElementById("content").style.backgroundColor = "rgb(150, 191, 255)";	document.getElementById("bodyContent").style.fontFamily = "Comic Sans MS";	document.getElementById("bodyContent").style.fontSize = "large";			}); $( dystogt ).click( function {	document.getElementById("bodyContent").style.backgroundColor = "rgb(255, 243, 153)";	document.getElementById("content").style.backgroundColor = "rgb(255, 243, 153)";	document.getElementById("bodyContent").style.fontFamily = "Comic Sans MS";	document.getElementById("bodyContent").style.fontSize = "large";			}); $( dysoff ).click( function {	document.getElementById("bodyContent").style.backgroundColor = "rgb(255, 255, 255)";	document.getElementById("content").style.backgroundColor = "rgb(255, 255, 255)";	document.getElementById("bodyContent").style.fontFamily = "Arial";	document.getElementById("bodyContent").style.fontSize = "14px";	document.getElementById("bodyContent").style.wordSpacing = "0.1px";			}); $( dystwenty ).click( function {	document.getElementById("bodyContent").style.wordSpacing = "20px"; }); $( dysten ).click( function {	document.getElementById("bodyContent").style.wordSpacing = "10px"; }); $( dyspoff ).click( function {	document.getElementById("bodyContent").style.wordSpacing = "0.1px"; });