@fontface & font-variation

This commit is contained in:
bach
2024-11-08 15:41:24 +01:00
commit ecab6410f4
26 changed files with 277 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
var input_fontweight = document.querySelector('[name=fontweight]');
console.log(input_fontweight);
var h2 = document.querySelector('h2');
input_fontweight.addEventListener('input', function(e){
console.log(e.target.value);
h2.style.fontWeight = e.target.value;
});