1.0.0 • Published 8 years ago

document-has v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

document-has

document has is a module that is meant to run in the browser. The purpose of the module is to create an array of dom elements that you want to require in your document. Then add the array to the document-has function and it will create a test button on the top right corner of your web page. Which provides some basic feedback to learners as they perform exercises learning to code.

Browser example using browserify cdn.

<script src="https://wzrd.in/standalone/document-has@latest"></script>
<script>
DocumentHas(
  Array(
    'h1',
    'p',
    'main > section#content',
    'main > section#content > article.foo'
  )
)
</script>

Contributing

Pull Requests are welcome

License

MIT