Last active
June 20, 2016 12:49
-
-
Save WebDevStu/6ef8385a2206bda26e17aa02ac49a3d8 to your computer and use it in GitHub Desktop.
Tea dog list manager
This file contains 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
Array.prototype.slice.call(document.querySelectorAll('ul, ol').forEach(function (list) { | |
var item = document.createElement('li'); | |
Item.innerHTML = "Brew!"; | |
list.insertBefore(item, list.firstChild); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment