Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit fd6334c328b9a7e600bc9c5773072460b10ac785 @ComputerWolf committed Sep 26, 2013
Showing with 705 additions and 0 deletions.
  1. +22 −0 .gitattributes
  2. +215 −0 .gitignore
  3. +73 −0 README.md
  4. +50 −0 demo/index.html
  5. +20 −0 demo/style.css
  6. +225 −0 jquery.mobileMenu.js
  7. +100 −0 mobileMenu.css
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
@@ -0,0 +1,215 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+
+[Dd]ebug/
+[Rr]elease/
+x64/
+build/
+[Bb]in/
+[Oo]bj/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.log
+*.scc
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+*.cachefile
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+*.ncrunch*
+.*crunch*.local.xml
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.Publish.xml
+*.pubxml
+
+# NuGet Packages Directory
+## TODO: If you have NuGet Package Restore enabled, uncomment the next line
+#packages/
+
+# Windows Azure Build Output
+csx
+*.build.csdef
+
+# Windows Store app package directory
+AppPackages/
+
+# Others
+sql/
+*.Cache
+ClientBin/
+[Ss]tyle[Cc]op.*
+~$*
+*~
+*.dbmdl
+*.[Pp]ublish.xml
+*.pfx
+*.publishsettings
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+App_Data/*.mdf
+App_Data/*.ldf
+
+#############
+## Windows detritus
+#############
+
+# Windows image file caches
+Thumbs.db
+ehthumbs.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Mac crap
+.DS_Store
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist/
+build/
+eggs/
+parts/
+var/
+sdist/
+develop-eggs/
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
@@ -0,0 +1,73 @@
+# jQuery Mobile Menu Plugin
+
+
+
+### Features
+* Supports with multi-level menus
+* Flexible, simple markup
+* Cross-browser compatibility
+* Keyboard Accessible
+* Degrades gracefully if javascript disabled
+* Creates ARIA compliant menu
+
+* * *
+### Usage
+
+####Include the CSS
+mobileMenu.css can be modified to fit website design
+
+ <link rel="stylesheet" href="mobileMenu/mobileMenu.css" />
+
+####Menu Markup
+
+ <ul id="menu">
+ <li><a href="#">item 1</a></li>
+ <li><a href="#">item 2</a></li>
+ <li><a href="#">item 3</a></li>
+ <li><a href="#">item 4</a></li>
+ </ul>
+####Initialize
+
+ <script>
+ $(function(){
+ $('#menu').mobileMenu();
+ });
+ </script>
+
+### Options
+ 'label' : 'MENU', // Label for menu button. Use an empty string for no label.
+ 'duplicate': true, // If true, the mobile menu is a copy of the original.
+ 'duration': true, // The duration of the sliding animation.
+ 'easingOpen': 'swing', // Easing used for open animations.
+ 'easingClose': 'swing' // Easing used for close animations.
+ 'prependTo': 'body' // Element, jQuery object, or jQuery selector string to prepend the mobile menu to.
+ 'parentTag': 'a' // Element type for parent menu items.
+ 'closeOnClick': false // Close menu when a link is clicked.
+
+Without any additional configuration, both the original and mobile menus will be displayed. It is recommended to use media queries to hide the original menu and display the mobile menu when appropriate. Modernizr or similar can be used for graceful degradation.
+
+For example:
+
+ .mm_menu {
+ display:none;
+ }
+
+ @media screen and (max-width: 40em) {
+ /* #menu is the original menu */
+ .js #menu {
+ display:none;
+ }
+
+ .js .mm_menu {
+ display:block;
+ }
+ }
+
+### Browser Support
+* Chrome
+* Firefox
+* Safari
+* Opera
+* IE7+
+* Android Browser
+* iOS Safari
@@ -0,0 +1,50 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta name="viewport" content="width=device-width">
+
+<title>Demo - Responsive Mobile Nav Plugin for jQuery</title>
+
+<link rel="stylesheet" href="style.css">
+<link rel="stylesheet" href="../mobileMenu.css">
+
+<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
+</head>
+<body>
+<p><b>Resize browser to view mobile menu</b></p>
+
+Original Menu hidden on mobile
+<ul id="menu">
+ <li>Parent 1
+ <ul>
+ <li><a href="#">item 3</a></li>
+ <li>Parent 3
+ <ul>
+ <li><a href="#">item 8</a></li>
+ <li><a href="#">item 9</a></li>
+ <li><a href="#">item 10</a></li>
+ </ul>
+ </li>
+ <li><a href="#">item 4</a></li>
+ </ul>
+ </li>
+ <li><a href="#">item 1</a></li>
+ <li>non-link item</li>
+ <li>Parent 2
+ <ul>
+ <li><a href="#">item 5</a></li>
+ <li><a href="#">item 6</a></li>
+ <li><a href="#">item 7</a></li>
+ </ul>
+ </li>
+</ul>
+
+<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
+<script src="../jquery.mobileMenu.js"></script>
+<script type="text/javascript">
+$(document).ready(function(){
+ $('#menu').mobileMenu();
+});
+</script>
+</body>
+</html>
@@ -0,0 +1,20 @@
+body {
+ font-family:Helvetica, Arial, sans-serif;
+ margin:0;
+ padding:0;
+ font-size:100%;
+}
+
+.mm_menu {
+ display:none;
+}
+
+@media screen and (max-width: 40em) {
+ .js #menu {
+ display:none;
+ }
+
+ .js .mm_menu {
+ display:block;
+ }
+}
Oops, something went wrong.

0 comments on commit fd6334c

Please sign in to comment.