[x] Move CSS and JS somewhere that's available for all drop-downs, not just the demo.
[x] Only create sanitized class names in one place
[x] Pass stuff like class names and file URLs from PHP to Javascript instead of generating it on both sides.
[x] Document Styles_Font_Preview, and for the love of God, break it down into reasonably sized methods
[x] Decide whether Styles_Font_Preview should output paths or images. Maybe create another class for managing display of previews, then keep generation separate.
Yes, it works. No, it's not pretty.
Need to:
Styles_Font_Preview
, and for the love of God, break it down into reasonably sized methodsStyles_Font_Preview
should output paths or images. Maybe create another class for managing display of previews, then keep generation separate.