alternate-stylesheets.js
library for Alternate StyleSheets
Installation
$ bower install alternate-stylesheetsUsage
<script src="alternate-stylesheets.min.js"></script>// <link rel="stylesheet" title="cafe" href="cafe.css">
// <link rel="alternate stylesheet" title="orange" href="orange.css">
// <link rel="alternate stylesheet" title="chocolate" href="chocolate.css">
alternateStyleSheets.get();
// get alternate stylesheets
alternateStyleSheets.set('orange');
// set to disabled for cafe, set to enabled for orange
alternateStyleSheets.set('chocolate');
// set to disabled for orange, set to enabled for chocolateFunctions
get()
returnStyleSheetList|Element[] - alternate stylesheets
get alternate stylesheets.
return link tags if document.styleSheets not found. return link tags if rendering engine is WebKit or Blink.
set(title)
titleString - alternate stylesheet title
set enabled with alternate stylesheet for title.
Test
$ npm install
$ npm testLicense
The MIT License. Please see LICENSE file.

