File size: 3,131 Bytes
1e86a0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Card Font Display</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            background-color: #f0f0f0;
        }
        .card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            padding: 20px;
            width: 300px;
        }
        .title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .body-text {
            font-size: 12px;
            margin-bottom: 10px;
        }
        .text-box {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            font-size: 10px;
            padding: 5px;
        }
        #fontControls {
            margin-bottom: 20px;
        }
        select {
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div id="fontControls">
        <select id="titleFont">
            <option value="Futura, sans-serif">Futura</option>
            <option value="Helvetica, sans-serif">Helvetica</option>
            <option value="'Trajan Pro', serif">Trajan Pro</option>
            <option value="Garamond, serif">Garamond</option>
        </select>
        <select id="bodyFont">
            <option value="'Minion Pro', serif">Minion Pro</option>
            <option value="Palatino, serif">Palatino</option>
            <option value="'Times New Roman', serif">Times New Roman</option>
            <option value="'Myriad Pro', sans-serif">Myriad Pro</option>
        </select>
        <select id="textBoxFont">
            <option value="Verdana, sans-serif">Verdana</option>
            <option value="Tahoma, sans-serif">Tahoma</option>
        </select>
    </div>

    <div id="cardContainer" class="card">
        <div id="cardTitle" class="title">Card Title</div>
        <div id="cardBody" class="body-text">This is the main text of the card. It contains important information about the card's effects or abilities.</div>
        <div id="cardTextBox" class="text-box">Flavor text or additional information goes here. It might be slightly condensed to fit more text.</div>
    </div>

    <script>
        function updateFonts() {
            document.getElementById('cardTitle').style.fontFamily = document.getElementById('titleFont').value;
            document.getElementById('cardBody').style.fontFamily = document.getElementById('bodyFont').value;
            document.getElementById('cardTextBox').style.fontFamily = document.getElementById('textBoxFont').value;
        }

        document.getElementById('titleFont').addEventListener('change', updateFonts);
        document.getElementById('bodyFont').addEventListener('change', updateFonts);
        document.getElementById('textBoxFont').addEventListener('change', updateFonts);

        updateFonts();
    </script>
</body>
</html>