document-has

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i document-has

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • twilson63