![]() opts: optional argument, specifying any options we want to override from the defaults.div : javascript DOM element that we want to add content to.url : absolute url that points to an about.json file for a reddit post.If you want an even more advanced example you can take a look at the source for the GH pages demo Methods red.embed(url, div, opts = defaults) If you want a similar basic example, with some more detailed documentation go to basic-demo.html Note that we have to import light-theme.css because red.css defaults to a dark theme with white text ![]()
0 Comments
Leave a Reply. |