3 ms·
Wait, what? 2kb JS? 4kb CSS? Why does this take so much? I use a similar fullscreen textarea toggle (actually an ACE editor), that is very simple. For the Java
by mbreese 13y ago
Wait, what? 2kb JS? 4kb CSS? Why does this take so much?
I use a similar fullscreen textarea toggle (actually an ACE editor), that is very simple. For the Javascript, you just need to add a new class to the text area. For the CSS, you need to make the '.fullscreen' class the following:
.fullscreen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Now, this doesn't get you the little button in the upper right corner and the styling for the full screen textarea, but it is very functional, very configurable (just style with CSS), and quite small. Add a small button of your own and let the browser do all of the heavy work, by just adding a CSS class.
Oh, and this doesn't break Chrome/webkit's ability to resize the textarea when not in fullscreen mode...
- afshinmeh 13y agoThanks, it's the first version and I'll fix this problems asap.