-
-
Save syoichi/2040869 to your computer and use it in GitHub Desktop.
対youpy.css cssonoff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser: true, maxerr: 50, maxlen: 80, indent: 4*/ | |
// Edition 2012-03-07 | |
function cssOnOff(disabled) { | |
'use strict'; | |
Array.prototype.forEach.call( | |
document.styleSheets, | |
function disabledSheet(sheet) { | |
sheet.disabled = disabled; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment