Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A jQuery plugin that takes stylesheets and converts them back to their textual representation.
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE.txt
Makefile
README.md
demo.html
jquery-css2txt.js
jquery-css2txt.min.js
package.json
sample.css

README.md

jquery-css2txt

This jQuery plugin takes stylesheets and converts them back to their textual representation.

See it in action.

Usage

Convert any number of CSSStyleSheet elements back to their textual representation.

The length of the returned array will be the same as the passed array. Each CSSStyleSheet will be replaced with a String that is its textual representation. Any non-CSSStyleSheets will be empty strings.

    $(selector).css2txt();

Examples

This will generate an array of the text from all the current document's stylesheets.

    $(document.styleSheets).css2txt();

Links

Fork it from

http://www.github.com/talos/jquery-css2txt

CDN it at

http://talos.github.com/jquery-css2txt/jquery-css2txt.js

http://talos.github.com/jquery-css2txt/jquery-css2txt.min.js

Something went wrong with that request. Please try again.