signs/public/signs.js

11 lines
243 B
JavaScript
Raw Normal View History

2020-03-11 19:31:38 +00:00
(function(){
"use strict";
var t,s,r=6,h=function(){
2020-03-11 19:31:38 +00:00
this.offsetHeight > t && (r+=1),
s = t/r,
this.style.fontSize = s+'px'
},b=document.getElementById("editable");
t=b.offsetHeight;
2020-03-11 19:31:38 +00:00
b.addEventListener("input", h);
})();