npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ovh-angular-responsive-page-switcher

v1.1.1

Published

It detects available width for displaying page in 2 distinct modes

Downloads

6

Readme

ovh-angular-responsive-page-switcher

githubbanner

Maintenance Chat on gitter Build Status

NPM

ovh-angular-responsive-page-switcher module is a set of 2 directives (responsive-switch and responsive-switch-page) that enable to display content like pages.

It detects available width for displaying page in 2 distinct modes :

  • switch mode : one page is displayed at a time ;
  • sidebyside mode : pages are displayed side by side.

Table of contents

Dependencies

ovh-angular-responsive-page-switcher module depends on different modules :

Note : ovh-angular-responsive-page-switcher is suitable with ovh-angular-responsive-popover.

Installation

Download module with bower

$ bower install ovh-angular-responsive-page-switcher --save

This will also download the dependencies.

Styles

In your less file, import the ovh-angular-responsive-page-switcher.less file located in dist/less folder :

@import "dist/less/ovh-angular-responsive-page-switcher.less";

HTML

Load the module script, its dependencies and your app file :

<script src="jquery.js" type="text/javascript"></script>
<script src="angular.js" type="text/javascript"></script>
<script src="angular-animate.js" type="text/javascript"></script>
<script src="matchmedia-ng.js" type="text/javascript"></script>
<script src="ovh-angular-responsive-page-switcher.js" type="text/javascript"></script>
<script src="your-app.js" type="text/javascript"></script>

JS

Load the module in your application by adding it as a dependent module :

angular.module('app', ['ovh-angular-responsive-popover']);

Usage and example

Usage

HTML

Directives responsive-switch and responsive-switch-page will be used. responsive-switch-page requires responsive-switch, so first we create this directive :

<div data-responsive-switch>
    <div data-responsive-switch-page class="responsive-switch-page-left"></div>
    <div data-responsive-switch-page class="responsive-switch-page-right"></div>
</div>

Example

You can run a sample example after git cloning the project by running these commands :

$ npm install
$ bower install
$ grunt serve

The example is now running at http://localhost:7711/example/.

Module Components

directive

| Name | Description | | :--: | :--: | | responsiveSwitch | Create the container of the page to switch (animate) and manage the display | | responsiveSwitchPage | Create a page to display |

Contributing

You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !

Have a look in CONTRIBUTING.md

Run the tests

$ npm test

Related links

  • Contribute: https://github.com/ovh-ux/ovh-angular-responsive-page-switcher/blob/master/CONTRIBUTING.md
  • Report bugs: https://github.com/ovh-ux/ovh-angular-responsive-page-switcher/issues
  • Get latest version: https://github.com/ovh-ux/ovh-angular-responsive-page-switcher

License

See https://github.com/ovh-ux/ovh-angular-responsive-page-switcher/blob/master/LICENSE