Skip to content

dyazincahya-blog/k-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Attribute Description Default Value
to to set the destination URL http://www.kang-cahya.com
time to set speed redirect. Unit within a millisecond. 10 milliseconds
mode to 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