Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lesichkovm committed Aug 6, 2019
1 parent 1234a12 commit 416592f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ Icons done right

Add to the end of the page, requires JQuery to be incuded on the page before this library

- Step 1. Include the iconset you want
- Step 1. Include only the iconset(s) you want

```html
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.2.0/webicons.ionicons.js"></script>
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.2.0/webicons.fontawesome.js"></script>
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.4.0/webicons.ionicons.js"></script>
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.4.0/webicons.fontawesome.js"></script>
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.4.0/webicons.typicons.js"></script>
```

- Step 2. Include the icon runtime

```html
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.2.0/webicons.runtime.js"></script>
<script src="https://cdn.jsdelivr.net/gh/lesichkovm/webicons@v1.4.0/webicons.runtime.js"></script>
```

## Icon ##
Expand All @@ -25,9 +26,10 @@ Add data-icon attribute. The data-icon attribute supports the following format "
```
<img data-icon="ionicons ios-log-out" style="width:48px;height:48px;color:red;" />
<img data-icon="fontawesome fas-card" style="width:48px;height:48px;color:red;" />
<img data-icon="typicons zoom" style="width:48px;height:48px;color:red;" />
```

## Custom Iconset ##
## Create Custom Iconset ##

```
var iconsets = iconsets || {};
Expand Down

0 comments on commit 416592f

Please sign in to comment.