1.0.0 • Published 7 years ago

k-redirect v1.0.0

Weekly downloads
1
License
MIT License
Repository
github
Last release
7 years ago

bower version open issues npm Published on webcomponents.org

\<k-redirect>

a simple component for redirect page.

<k-redirect mode="off" to="https://github.com/k4ng/k-redirect"></k-redirect>
<p>
    Remove property <code>mode="off"</code> or change value property from OFF to ON. 
    Result, the component will automatically redirect the page to 
    <code>https://github.com/k4ng/k-redirect</code> in 10 milliseconds (0.01 sec)
</p>

How to install

bower

bower install --save k-redirect

npm

npm install k-redirect

Properties

Data AttributeDescriptionDefault Value
toto set the destination URLhttp://www.kang-cahya.com
timeto set speed redirect. Unit within a millisecond.10 milliseconds
modeto set redirect mode "ON" or "OFF"ON

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License