-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
size.js
45 lines (40 loc) · 1.15 KB
/
size.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function changeFontSize(size) {
var textarea = document.getElementById("textarea");
textarea.style.fontSize = size;
console.log("clicked");
}
changeFontSize("8px");
changeFontSize("12px");
changeFontSize("16px");
changeFontSize("30px");
changeFontSize("40px");
changeFontSize("80px");
changeFontSize("120px");
function Tahoma() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "Tahoma"
}
function SansSerif() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "Sans-Serif"
}
function OpenSans() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "Open Sans"
}
function Helvetica() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "Helvetica"
}
function Impact() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "Impact"
}
function Trebuchet() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "Trebuchet"
}
function NewTimesRoman() {
var textarea = document.getElementById("textarea")
textarea.style.fontFamily = "New Times Roman"
}