From ae3860306d1691148db883e70d712289faf5cfe5 Mon Sep 17 00:00:00 2001 From: Maribeth Fitzpatrick Date: Fri, 14 Jul 2017 15:07:36 -0400 Subject: [PATCH] removed mobile navigation call from plugin.js file and moved it into index and mobile navigation demo html files --- demo/mobile-navigation.html | 15 ++++---- index.html | 69 +++++++++++++++++++++++++++++++++++ js/mobileNavigation.plugin.js | 6 --- 3 files changed, 77 insertions(+), 13 deletions(-) diff --git a/demo/mobile-navigation.html b/demo/mobile-navigation.html index 66aef86..f99e25b 100644 --- a/demo/mobile-navigation.html +++ b/demo/mobile-navigation.html @@ -200,11 +200,11 @@

Mobile Navigation

This component requires the mobileNavigation.plugin.js file.

HTML

-

The mobile navigation shares similar markup to the desktop navigation. In theory, - you can abstract this mark up into a partial and include the partial within +

The mobile navigation shares similar markup to the desktop navigation. In theory, + you can abstract this mark up into a partial and include the partial within .mobile and .desktop classes.

-

This component requires the site to be wrapped in a wrapper class. +

This component requires the site to be wrapped in a wrapper class. By default this is .wrapper.

@@ -285,11 +285,11 @@ 

SCSS


JS

-

You can have more than one instance of this component. For example, you may - want something for faceted search. Just make sure you change the +

You can have more than one instance of this component. For example, you may + want something for faceted search. Just make sure you change the toggleClass option.

-

By default, there is an overlay that gets inserted into the DOM by - the library. You can change the css properties for this overlay by altering +

By default, there is an overlay that gets inserted into the DOM by + the library. You can change the css properties for this overlay by altering the overlayCss property.


@@ -477,6 +477,7 @@ 

Plugin Methods

$(function() { $('nav.primary').dropdown(); $('.search-drawer').searchDrawer(); + $('.mobile').mobileNavigation(); }); diff --git a/index.html b/index.html index b09ce3c..38521b9 100755 --- a/index.html +++ b/index.html @@ -34,6 +34,7 @@ Imarc Boilerplate +
+
+ +
+ + +
+
@@ -550,6 +618,7 @@

Pseudo Element

$('header.primary.sticky').stickyHeader(); $('.search-drawer').searchDrawer(); $('nav.primary').dropdown(); + $('.mobile').mobileNavigation(); }); diff --git a/js/mobileNavigation.plugin.js b/js/mobileNavigation.plugin.js index f34da5e..a2a5c62 100644 --- a/js/mobileNavigation.plugin.js +++ b/js/mobileNavigation.plugin.js @@ -308,9 +308,3 @@ }; })(jQuery); - -$(function() { - // Mobile Navigation - $('.mobile').mobileNavigation(); - -});