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 -->
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 |
/** | |
* 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 |
/* global module */ | |
/* File location: dev/tools/grunt/configs/aliases.js */ | |
/* Usage: https://github.com/firstandthird/load-grunt-config#aliases */ | |
'use strict'; | |
module.exports = { | |
default: [], |
/** | |
* drawer.js | |
*/ | |
define(['jquery', 'm2base'], function($, m2base) { | |
'use strict'; | |
var Drawer = window.M2base.Drawer = { | |
elements: { |
module.exports = function(grunt) { | |
var gulp = require('gulp'), | |
styleguide = require('sc5-styleguide'); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { |
.idea/ | |
.project | |
*.sublime-project | |
*.sublime-workspace | |
*.tmproj | |
*.bak | |
*.swp | |
*~.nib | |
.sass-cache/ | |
node_modules/ |
console.log("Some inline code"); | |
{ | |
"name": "my-theme", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.2", | |
"grunt-contrib-compass": "~0.7.0", | |
"grunt-contrib-watch": "~0.5.3", | |
"grunt-contrib-imagemin": "~0.4.0", |
$ npm install grunt | |
npm http GET https://registry.npmjs.org/grunt | |
npm http 304 https://registry.npmjs.org/grunt | |
npm http GET https://registry.npmjs.org/async | |
npm http GET https://registry.npmjs.org/coffee-script | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3 | |
npm http GET https://registry.npmjs.org/eventemitter2 | |
npm http GET https://registry.npmjs.org/findup-sync | |
npm http GET https://registry.npmjs.org/glob |
myproject/ | |
|-- .sass-cache/ | |
|-- .tmp/ | |
|-- app/ | |
| |-- components/ | |
| |-- images/ | |
| |-- scripts/ | |
| `-- styles/ | |
|-- dist/ | |
| |-- components/ |