How to embed a d3.js example to the Jekyll blog post?

前端 未结 2 1696
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 21:29

I am experimenting with this Jekyll theme http://richbray.me/frap/

And I want to create a blog post showing this D3.js example: http://bl.ocks.org/mbostock/4061502

2条回答
  •  南旧
    南旧 (楼主)
    2021-01-31 22:17

    inframe is no longer supported by bl.ocks you will get the following error

    Refused to display 'http://bl.ocks.org/mbostock/raw/4061502/0a200ddf998aa75dfdb1ff32e16b680a15e5cb01/' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' *.ocks.org".

    you can try using rawgit.com

提交回复
热议问题