Description Usage Arguments See Also Examples
Create mini map for single web page.
1 |
id |
|
box_style |
a |
... |
additional options passed to |
elementId |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(pagemap)
# Most basic usage
pagemap()
# Fix it’s position on the screen
pagemap(
id = "mini_map",
box_style = list(left = "5px", top = "10px")
)
# Style by providing a list of css property
pagemap(
id = "mini_map",
styles = list(
"h1,h2,a,code" = "rgba(0, 0, 0, 0.10)",
"img" = "rgba(0, 0, 0, 0.08)",
"pre" = "rgba(0, 0, 0, 0.04)"
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.