Module: url-based

Url related classes representing url path.

Since:
  • 3.2.0

Source:

Members


<static> JS.Responsive.urlChanged

Method for use cases of SPA routers which dynamically changes url via js. If your router uses # beforenavigation urls, like mypage.com/#/my/router/url. Then you don't need to use this method, as library islistening on window hashchange event. And generates hash- classes accordingly.

Since:
  • 3.2.0

Source:
Example
JS.Responsive.urlChanged( '/my/router/url' );

CSS classes


page---$pathItem--$pathItem...
'page-' is class name base identificator and then every '/item' is represented as '--item' in class
hash---$pathItem--$pathItem...
same like page but for hash part of url

Events


changedUrl
{String} newUrl, {String} lastUrl