Pure CSS Drop down menu. Nice little addition to any non-javascript user interface. Uses the labels for trick to toggle animations.
Forked from Jamie Coulter's Pen Swanky Pure CSS Drop Down Menu V2.0.
| Handlebars.registerHelper('slugify', function(title) { | |
| return title.toLowerCase() | |
| .replace(/ /g,'-') | |
| .replace(/[^\w-]+/g,''); | |
| }); |
| /** | |
| Code copyright Dustin Diaz and Ross Harmes, Pro JavaScript Design Patterns. | |
| **/ | |
| // Constructor. | |
| var Interface = function (name, methods) { | |
| if (arguments.length != 2) { | |
| throw new Error("Interface constructor called with " + arguments.length + "arguments, but expected exactly 2."); | |
| } | |
| this.name = name; |
The browser field is provided by a module author as a hint to javascript bundlers or component tools when preparing modules for client side use.
Below are common terms used in the rest of the document
This is a non-dom based javascript execution environment. It usually only contains the base javascript language spec libraries and objects along with modules to communicate with OS features (available through commonjs require).
| var os = require('os'), | |
| cluster = require('cluster'), | |
| express = require('express'), | |
| app = express(), | |
| http = require('http'), | |
| server = http.createServer(app), | |
| logger = require('winston'); | |
| var System = function () { | |
| 'use strict'; |
| /* | |
| * Simple Pub/Sub Implementation for jQuery | |
| * | |
| * Inspired by work from Peter Higgins (https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js) | |
| * | |
| * This is about the simplest way to write a pubsub JavaScript implementation for use with jQuery. | |
| */ | |
| (function( $ ) { | |
| // Cache of all topics |
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
| function Gauge(placeholderName, configuration) | |
| { | |
| this.placeholderName = placeholderName; | |
| var self = this; // for internal d3 functions | |
| this.configure = function(configuration) | |
| { | |
| this.config = configuration; | |