3 ms·
I have an application that generates html export for display in a browser. One of the requirements of the application is that it needs to be able to run on comp
by billrobertson42 11y ago
I have an application that generates html export for display in a browser. One of the requirements of the application is that it needs to be able to run on computers with no external network connection.
I recently had to add some auto-scrolling capability to the display to support projector display. Users need to be able to copy the html file to usb devices, and so it wasn't really in the cards to use external images for buttons, so I simply embedded svg images for the play and stop buttons.
It worked well.
- daurnimator 11y agoYou could have used a data: URI
- javajosh 11y agoInterestingly, you can embed SVG in a data URL as well.
- billrobertson42 11y agoCan you give an example, or a link to an example?
- daurnimator 11y ago- https://css-tricks.com/data-uris/ - http://caniuse.com/#feat=datauri - https://www.ietf.org/rfc/rfc2397.txt