Redir.js is client-side redirect for each devices.
Only read the javascript file
<script src="/path/redir.min.js"></script>
Please put the tag of granted the class attribute .js-redir
Example
<a class="js-redir"></a>
Element that have this class will be hidden if UA is a PC.
This plugin is not intended to describe the setting outside for easily use.
Rewrite the contents if change the settings.
this.isSp = /Android|iPhone|iPad/.test(ua)
=> this.isSp = /Android|iPhone|iPad|BlackBerry/.test(ua)
this.relativePath = true
Before: http://example.com/path/
After: http://example.com/path/sp/
Before: http://example.com/path/
After: http://example.com/sp/path/
1.0.0
/ Mar 31, 2016
Copyright(c) 2016 Hiroki ISHIWATARI