Our Meganav module requires some simple markup in order for it to function correctly.
Here is a basic example showing a single column of links:
<div>
<!-- Heading with link and toggle -->
/** | |
* drawer.js | |
*/ | |
define(['jquery', 'm2base'], function($, m2base) { | |
'use strict'; | |
var Drawer = window.M2base.Drawer = { | |
elements: { |
/* global module */ | |
/* File location: dev/tools/grunt/configs/aliases.js */ | |
/* Usage: https://github.com/firstandthird/load-grunt-config#aliases */ | |
'use strict'; | |
module.exports = { | |
default: [], |
/** | |
* Prototype Angular conflict fix | |
* http://tooschee.com/magento-prototype-vs-angular-conflict-problem/ | |
*/ | |
var bindTemp = Function.prototype.bind; | |
Function.prototype.bind = function(oThis) { | |
if (typeof this !== 'function') { | |
// closest thing possible to the ECMAScript 5 | |
// internal IsCallable function |
function $A(iterable){if(!iterable)return[];if("toArray"in Object(iterable))return iterable.toArray();for(var length=iterable.length||0,results=new Array(length);length--;)results[length]=iterable[length];return results}function $w(string){return Object.isString(string)?(string=string.strip(),string?string.split(/\s+/):[]):[]}function $H(object){return new Hash(object)}function $R(start,end,exclusive){return new ObjectRange(start,end,exclusive)}function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++)elements.push($(arguments[i]));return elements}return Object.isString(element)&&(element=document.getElementById(element)),Element.extend(element)}var bindTemp=Function.prototype.bind;Function.prototype.bind=function(oThis){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this ins |
<ul class="messages"> | |
<li class="error-msg"> | |
<ul> | |
<li><span>Error Message</span></li> | |
</ul> | |
</li> | |
<li class="success-msg"> | |
<ul> | |
<li><span>Success Message</span></li> | |
</ul> |
// Generated on 2013-06-04 using generator-webapp 0.1.7 | |
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' |
#/usr/bin/env bash | |
# git hook to run a command after `git merge` or `git pull` | |
# Check for changed files | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
} |
{ | |
"name": "[project-name]", | |
"description": "[project-description]", | |
"version": "1.0.0" | |
} |
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# update brew | |
brew update | |
# should be added by homebrew installation? | |
sudo chown -R `whoami`:admin /usr/local/opt | |
# Node Version Manager |