diff options
author | John McLear <john@mclear.co.uk> | 2015-04-05 15:18:36 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-04-05 15:18:36 +0100 |
commit | e02708313623fa90600c1f6a24f17a01eff4aec8 (patch) | |
tree | 995dad9a259b6ab9dfeb299a098bd348d5a03054 /src/static/js/timeslider.js | |
parent | 56ce8e80accf61fd0fd4baa2a2904f3a1fc78eb1 (diff) | |
download | etherpad-lite-e02708313623fa90600c1f6a24f17a01eff4aec8.zip |
timeslider settings for fonts
Diffstat (limited to 'src/static/js/timeslider.js')
-rw-r--r-- | src/static/js/timeslider.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index 580a7a03..75c20022 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -163,6 +163,32 @@ function handleClientVars(message) $('#leftstep').attr("title", html10n.get("timeslider.backRevision")); $('#rightstep').attr("title", html10n.get("timeslider.forwardRevision")); + // font family change + $("#viewfontmenu").change(function(){ + var font = $("#viewfontmenu").val(); + if(font === "monospace") setFont("Courier new"); + if(font === "opendyslexic") setFont("OpenDyslexic"); + if(font === "comicsans") setFont("Comic Sans MS"); + if(font === "georgia") setFont("Georgia"); + if(font === "impact") setFont("Impact"); + if(font === "lucida") setFont("Lucida"); + if(font === "lucidasans") setFont("Lucida Sans Unicode"); + if(font === "palatino") setFont("Palatino Linotype"); + if(font === "tahoma") setFont("Tahoma"); + if(font === "timesnewroman") setFont("Times New Roman"); + if(font === "trebuchet") setFont("Trebuchet MS"); + if(font === "verdana") setFont("Verdana"); + if(font === "symbol") setFont("Symbol"); + if(font === "webdings") setFont("Webdings"); + if(font === "wingdings") setFont("Wingdings"); + if(font === "sansserif") setFont("MS Sans Serif"); + if(font === "serif") setFont("MS Serif"); + }); + +} + +function setFont(font){ + $('#padcontent').css("font-family", font); } exports.baseURL = ''; |