使用带有 Modal Share Fork 图标的自定义元素工具栏

在要显示产品/项目组合的任何页面上,调用自定义元素,如下所示:

<article id="project-neighbourhood">
    <div class="row">
        <div class="col-12 hero">
            <img src="path-to-hero-image">
        </div>
    </div>
    <tool-bar link2-share="http://www.mywebsite.com/neighbourhood" link2-fork="https://github.com/myusername/neighbourhood" modal-id="project-neighbourhood-map" title="project-neighbourhood-map">
                <div class="col-12">
                      <p> a single-page application featuring a map of my neighborhood or a neighborhood I would like to visit. I will then add additional functionality to this application, including: map markers to identify popular locations or places you’d like to visit, a search function to easily discover these locations, and a listview to support simple browsing of all locations. I will then research and implement third-party APIs that provide additional information about each of these locations (such as Street View images, Wikipedia articles, Yelp reviews, etc).</p>
               </div>
    </tool-bar>
</article>

你得到这个预览

StackOverflow 文档

当你点击信息时,你会得到这个

http://i.stack.imgur.com/vXlcQ.jpg