...
加風格
- git clone ...
- 進入 share-tools
- #npm install
- 複製 share-tools/themes/default 為風格名如 theme1
- 修改 style.css
- 引入新風格樣式 //manager.da-vinci.com.tw/share-tools/themes/風格名/style.css
加分享圖標
- git clone ...
- 進入 share-tools
- #npm install
- 修改 src/ShareTools.js 內有說明
- share-tools目錄下執行 npm run build 會生成 dist/auto.js
- 在.share-tools-container 容器的 data-icons 中加入新加的圖標名稱
使用方法
<-- head引入樣式 -->
<link rel="stylesheet" type="text/css" href="//manager.da-vinci.com.tw/share-tools/themes/default/style.css" />
<-- 圖標容器 -->
<div class="share-tools-container" data-icons="facebook,mail,google,twitter,sina,linkedin" ></div>
<-- 引入js -->
<script src="//manager.da-vinci.com.tw/share-tools/dist/auto.bundle.js"></script>