Created
January 8, 2016 23:48
-
-
Save brianswisher/0c82165329a67cdd8cbd to your computer and use it in GitHub Desktop.
Reset Body JavaScript
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
| !function(_){ | |
| !function reset(){ | |
| function resetTarget(target){ | |
| target.removeAttribute("id"); | |
| target.removeAttribute("class"); | |
| target.removeAttribute("style"); | |
| target.innerHTML = ""; | |
| } | |
| resetTarget(_.doc["head"]); | |
| resetTarget(_.doc["body"]); | |
| }() | |
| }({ | |
| doc: document | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment