Skip to content

gowonltd/interject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In ter ject

Interject is a SVG injector plugin for jQuery. Interject can dynamically replace image tags with the full SVG markup for manipulation in the document. Interject caches the SVG images to reduce overhead during replacement.

Usage

1. Add jQuery and Interject to your HTML document

<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="jquery.interject.min.js"></script>

2. Add a common class to your SVG images that you want to have interjected

<img class="svg" src="graphic.svg" />

3. Inject the SVG into the document with this command

$("img.svg").interject_svg();
$("img.svg").interject_svg({cache: false});

Copyright and License

Copyright © 2014 Gowon Patterson, Gowon Designs.

This program is distributed under the terms of the GNU General Public License Version 3.

About

Interject - SVG injector plugin for jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published