• Stars
    star
    154
  • Rank 240,865 (Top 5 %)
  • Language
    JavaScript
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A jQuery plugin that makes mobile navigation easy.

#jQuery navobile

For full documentation please see the demo page.

Build Status

###Demo

View live demo

###Usage

$('#foobar').navobile();

The css required for the plugin is here because its always better to control styling in CSS where possible.

###Params

There are a few parameters for the plugin, they are mostly optional.

  • cta - the element that will open the navigation on click (default: '#show-navigation')
  • content - the selector that wraps the content that will slide out (default: '#content')
  • direction - the direction and therefore side that the content slides (default: 'ltr')
  • easing - jQuery easing function to use in $.animate fallback (default: 'linear') for more easing options you will require jQuery.easing
  • changeDOM - Boolean, whether the plugin needs to move the navigation in the DOM structure (default: false)
  • copyBoundEvents - Boolean, if changeDOM is true, whether to or not to copy across any bound events (default: false)
  • openOffsetLeft - String, the percentage you want navobile to open (default: '80%') N.B. If you alter this you will also need to change the width of .navobile-navigation
  • hammerOptions - a Javascript object containing the options detailed here: https://github.com/EightMedia/hammer.js/wiki/Getting-Started#gesture-options. Only needed if you are using bindSwipe/bindDrag (default: {})

###Events

There are a handful of useful events fired by navobile.

  • navobile:open - fired when the navigation cta is tapped and navobile is hidden
  • navobile:opened - fired when the navobile is fully open
  • navobile:close - fired when the navigation cta is tapped and navobile is visible
  • navobile:closed - fired when the navobile is fully closed

All of these are triggered on the document, below is a jQuery example:

$(document).bind('navobile:open', function() {alert('navobile is opening')});

###Credits

Developed and maintained by Made.

made

Key contributions:

###License

Licensed under New BSD License

More Repositories

1

handbook

The Made Tech open source company handbook
JavaScript
201
star
2

clean-architecture

A (work-in-progress) guide to the methodology behind Made Tech Flavoured Clean Architecture
Ruby
157
star
3

learn

Learning materials for software delivery
CSS
27
star
4

terransible-jenkins

Makefile
22
star
5

nhs-virtual-visit

Connecting patients with loved ones virtually
JavaScript
13
star
6

cf-deploy

Rake tasks for deploying to CloudFoundry v6+
Ruby
13
star
7

data-101

12
star
8

architecture-handbook

Architecture 101, Playbooks and reference material
10
star
9

structurizr-template

Static site generator for architecture models created with Structurizr DSL
ASL
9
star
10

unveil-rails

Lazy loaded images for rails using unveil.js
Ruby
8
star
11

ruby-raspberrypi-jenkins-ci-trafficlight

Ruby
7
star
12

productionisation

The Made Tech Productionisation Checklist for Software Projects
Ruby
6
star
13

bdd-rails

A starter kit for testing BDD in rails
Ruby
5
star
14

aws-sandbox

AWS Sandbox Nuke
HCL
4
star
15

rails-docker-dev

Ruby
4
star
16

inclusion

Jupyter Notebook
4
star
17

academy20-hackney-hr-frontend

JavaScript
3
star
18

spring-practice

Java
3
star
19

createsend-rails

Smart Transactional Emails for Campaign Monitor in Rails
Ruby
3
star
20

souper-web-scraping

HTML
2
star
21

first-boot

All the basics you need to install on day one
Shell
2
star
22

academy

High-level overview of the POA for the Made Tech Academy
2
star
23

chemist

An opinionated React framework
JavaScript
2
star
24

vpn

A Foxpass VPN running on AWS.
HCL
2
star
25

redcross-family-tracing

Family Tracing
TypeScript
2
star
26

academy20-hackney-hr-backend

C#
2
star
27

docs

Made Tech Developer Docs
CSS
2
star
28

cache-warming

Warm up any site cache by using a sitemap XML
PHP
2
star
29

aws-remap-elastic-ip

Ruby script for remapping an elastic IP address on to current instance at start-time.
Ruby
2
star
30

autobrewster

CSS regression testing suite
Ruby
1
star
31

postcode_validation

Ruby
1
star
32

solidus_crm

Ruby
1
star
33

spree_shipping_matrix

Advanced shipping calculator based on rules matrix for Spree
Ruby
1
star
34

security-handbook

Made Tech Security Handbook for Engineers
1
star
35

gnu-smalltalk-scaffold

A simple Scaffold for running tests in GNU Smalltalk
Smalltalk
1
star
36

rfcs

Request for comments
1
star
37

kyles-bulb

we all have dreams
JavaScript
1
star
38

ydtd-frontend

Frontend components for the YDTD application
CSS
1
star
39

MetricsSimulator

Java
1
star
40

made-competition-engine

Ruby
1
star
41

hello-world-web-api

C#
1
star
42

order_reporting

Ruby
1
star
43

monopoly-react

React driven front end for smart contracts monopoly
JavaScript
1
star
44

snake-ruby

Ruby
1
star
45

okta-to-aws-saml-terraform

Automates the "Connect okta to a single AWS instance" described by okta docs
HCL
1
star
46

python-aws-blue-green

Python
1
star
47

slackstorian

Slack backup tool, that uploads the history public channels history to S3 and posts an announcement in a channel of your choice when it's done.
Python
1
star
48

g1-cypmh-alpha

Repo for nhs gloucester g1 alpha project
HTML
1
star
49

pd-shifts

A tool to count users' PagerDuty shifts
JavaScript
1
star
50

serverless-elasticsearch

JavaScript
1
star
51

data-tech-reviews

Repo to share reviews of data technologies and tools
Python
1
star
52

govuk-react-form

An extensible React form built using GOV.UK components in the way of the Government Design System.
JavaScript
1
star
53

horse-facts

C#
1
star
54

proxy

Forward proxy for www.madetech.com
HTML
1
star
55

dance

JavaScript
1
star
56

devops-pairing-terraform

Create a tempoary user for use in devops pairing interviewes
HCL
1
star
57

ops-cookbook

Ops Recipes
JavaScript
1
star
58

blog

Our company blogposts
Makefile
1
star
59

met-office-pwa-prototype

TypeScript
1
star
60

chef-aws-remap-elastic-ip

Chef cookbook to install AWS elastic IP remap
Ruby
1
star
61

lita-mac_spotify_control

Spotify AppleScript handler for Lita
Ruby
1
star
62

market_town

๐Ÿ“˜ ๐Ÿ–จ โŸ๐Ÿ› โŸ๐Ÿ’ธ ๐Ÿ“ฆใ€€Market Town is a collection of e-commerce tools
Ruby
1
star