fix: font selection update
This commit is contained in:
parent
0bc8c62135
commit
7464001cd9
@ -97,8 +97,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('font').addEventListener('change', function() {
|
document.getElementById('font').addEventListener('change', function() {
|
||||||
document.getElementById('font').style.fontFamily = document.getElementById('font').value;
|
let selectedFont = `'${document.getElementById('font').value}'`;
|
||||||
document.getElementById('text').style.fontFamily = document.getElementById('font').value;
|
document.getElementById('font').style.fontFamily = selectedFont;
|
||||||
|
document.getElementById('text').style.fontFamily = selectedFont;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user