Embedding large portions of CSS and JS into <head> without links

K.O.X

New Member
So... Just so you have less reasons to call me an idiot, here's why I need this:I'm currently working on an offline project that uses jruby. So, to generate reports on the fly, it was decided (by my superiors) to use JavaFX's WebView component - so, HTML, CSS and JS.But here's the catch: no using file system. All the content is drawn from DB and generated on the fly. No internet either. So all the content to be loaded into the WebView is to be in a single file, however enormous.I have an HTML page and two huge files - one js, one css. When I use \[code\]<link>\[/code\] tag for css and \[code\]<script src="http://stackoverflow.com/questions/15637042/...">\[/code\] for js - all works. Both in a browser and if I artificially load the page into a WebView. But if should I copy-paste the files into corresponding \[code\]<style>\[/code\] and \[code\]<script>\[/code\] tags (as it, probably, will be handled in the program), half the things do not work. Is there a special way for doing it right?Here are the html, css and JS I'm working with (html is filled with sample data so it can be seen if everything works):html filecss filejavascript file
 
Back
Top