Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var styles = heredoc(function() {
- /*
- <style>
- .my_css {
- ...
- }
- </style>
- */
- });
- $("head").append(styles);
- function heredoc(fun) {
- return (fun + '').replace('function () {', '').replace(/\}$/, '').replace('/*', '').replace('*/', '');
- };
Add Comment
Please, Sign In to add comment