code
stringlengths
2
1.05M
function collectWithWildcard(test) { test.expect(4); var api_server = new Test_ApiServer(function handler(request, callback) { var url = request.url; switch (url) { case '/accounts?username=chariz*': let account = new Model_Account({ username: 'charizard' }); return void callback(null, [ account.redact() ]); default: let error = new Error('Invalid url: ' + url); return void callback(error); } }); var parameters = { username: 'chariz*' }; function handler(error, results) { test.equals(error, null); test.equals(results.length, 1); var account = results[0]; test.equals(account.get('username'), 'charizard'); test.equals(account.get('type'), Enum_AccountTypes.MEMBER); api_server.destroy(); test.done(); } Resource_Accounts.collect(parameters, handler); } module.exports = { collectWithWildcard };
angular.module('appTesting').service("LoginLocalStorage", function () { "use strict"; var STORE_NAME = "login"; var setUser = function setUser(user) { localStorage.setItem(STORE_NAME, JSON.stringify(user)); } var getUser = function getUser() { var storedTasks = localStorage.getItem(STORE_NAME); if (storedTasks) { return JSON.parse(storedTasks); } return {}; } return { setUser: setUser, getUser: getUser } });
// flow-typed signature: d37503430b92ad584be6e2c6f8d1fc08 // flow-typed version: <<STUB>>/ua-parser-js_v1.0.2/flow_v0.171.0 /** * This is an autogenerated libdef stub for: * * 'ua-parser-js' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * https://github.com/flowtype/flow-typed */ declare module 'ua-parser-js' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'ua-parser-js/dist/ua-parser.min' { declare module.exports: any; } declare module 'ua-parser-js/dist/ua-parser.pack' { declare module.exports: any; } declare module 'ua-parser-js/package' { declare module.exports: any; } declare module 'ua-parser-js/src/ua-parser' { declare module.exports: any; } declare module 'ua-parser-js/test/test' { declare module.exports: any; } // Filename aliases declare module 'ua-parser-js/dist/ua-parser.min.js' { declare module.exports: $Exports<'ua-parser-js/dist/ua-parser.min'>; } declare module 'ua-parser-js/dist/ua-parser.pack.js' { declare module.exports: $Exports<'ua-parser-js/dist/ua-parser.pack'>; } declare module 'ua-parser-js/package.js' { declare module.exports: $Exports<'ua-parser-js/package'>; } declare module 'ua-parser-js/src/ua-parser.js' { declare module.exports: $Exports<'ua-parser-js/src/ua-parser'>; } declare module 'ua-parser-js/test/test.js' { declare module.exports: $Exports<'ua-parser-js/test/test'>; }
/* eslint-disable no-console */ const buildData = require('./build_data'); const buildSrc = require('./build_src'); const buildCSS = require('./build_css'); let _currBuild = null; // if called directly, do the thing. buildAll(); function buildAll() { if (_currBuild) return _currBuild; return _currBuild = Promise.resolve() .then(() => buildCSS()) .then(() => buildData()) .then(() => buildSrc()) .then(() => _currBuild = null) .catch((err) => { console.error(err); _currBuild = null; process.exit(1); }); } module.exports = buildAll;
function LetterProps(o, sw, sc, fc, m, p) { this.o = o; this.sw = sw; this.sc = sc; this.fc = fc; this.m = m; this.p = p; this._mdf = { o: true, sw: !!sw, sc: !!sc, fc: !!fc, m: true, p: true, }; } LetterProps.prototype.update = function (o, sw, sc, fc, m, p) { this._mdf.o = false; this._mdf.sw = false; this._mdf.sc = false; this._mdf.fc = false; this._mdf.m = false; this._mdf.p = false; var updated = false; if (this.o !== o) { this.o = o; this._mdf.o = true; updated = true; } if (this.sw !== sw) { this.sw = sw; this._mdf.sw = true; updated = true; } if (this.sc !== sc) { this.sc = sc; this._mdf.sc = true; updated = true; } if (this.fc !== fc) { this.fc = fc; this._mdf.fc = true; updated = true; } if (this.m !== m) { this.m = m; this._mdf.m = true; updated = true; } if (p.length && (this.p[0] !== p[0] || this.p[1] !== p[1] || this.p[4] !== p[4] || this.p[5] !== p[5] || this.p[12] !== p[12] || this.p[13] !== p[13])) { this.p = p; this._mdf.p = true; updated = true; } return updated; };
System.register(["angular2/test_lib", "angular2/src/test_lib/test_bed", "angular2/src/core/annotations_impl/annotations", "angular2/src/core/annotations_impl/view", "angular2/src/core/compiler/dynamic_component_loader", "angular2/src/core/compiler/element_ref", "angular2/src/directives/if", "angular2/src/render/dom/direct_dom_renderer", "angular2/src/dom/dom_adapter"], function($__export) { "use strict"; var AsyncTestCompleter, beforeEach, ddescribe, xdescribe, describe, el, dispatchEvent, expect, iit, inject, beforeEachBindings, it, xit, TestBed, Component, View, DynamicComponentLoader, ElementRef, If, DirectDomRenderer, DOM, ImperativeViewComponentUsingNgComponent, ChildComp, DynamicallyCreatedComponentService, DynamicComp, DynamicallyCreatedCmp, DynamicallyLoaded, DynamicallyLoaded2, DynamicallyLoadedWithHostProps, Location, MyComp; function main() { describe('DynamicComponentLoader', function() { describe("loading into existing location", (function() { it('should work', inject([TestBed, AsyncTestCompleter], (function(tb, async) { tb.overrideView(MyComp, new View({ template: '<dynamic-comp #dynamic></dynamic-comp>', directives: [DynamicComp] })); tb.createView(MyComp).then((function(view) { var dynamicComponent = view.rawView.locals.get("dynamic"); expect(dynamicComponent).toBeAnInstanceOf(DynamicComp); dynamicComponent.done.then((function(_) { view.detectChanges(); expect(view.rootNodes).toHaveText('hello'); async.done(); })); })); }))); it('should inject dependencies of the dynamically-loaded component', inject([TestBed, AsyncTestCompleter], (function(tb, async) { tb.overrideView(MyComp, new View({ template: '<dynamic-comp #dynamic></dynamic-comp>', directives: [DynamicComp] })); tb.createView(MyComp).then((function(view) { var dynamicComponent = view.rawView.locals.get("dynamic"); dynamicComponent.done.then((function(ref) { expect(ref.instance.dynamicallyCreatedComponentService).toBeAnInstanceOf(DynamicallyCreatedComponentService); async.done(); })); })); }))); it('should allow to destroy and create them via viewcontainer directives', inject([TestBed, AsyncTestCompleter], (function(tb, async) { tb.overrideView(MyComp, new View({ template: '<div><dynamic-comp #dynamic template="if: ctxBoolProp"></dynamic-comp></div>', directives: [DynamicComp, If] })); tb.createView(MyComp).then((function(view) { view.context.ctxBoolProp = true; view.detectChanges(); var dynamicComponent = view.rawView.viewContainers[0].views[0].locals.get("dynamic"); dynamicComponent.done.then((function(_) { view.detectChanges(); expect(view.rootNodes).toHaveText('hello'); view.context.ctxBoolProp = false; view.detectChanges(); expect(view.rawView.viewContainers[0].views.length).toBe(0); expect(view.rootNodes).toHaveText(''); view.context.ctxBoolProp = true; view.detectChanges(); var dynamicComponent = view.rawView.viewContainers[0].views[0].locals.get("dynamic"); return dynamicComponent.done; })).then((function(_) { view.detectChanges(); expect(view.rootNodes).toHaveText('hello'); async.done(); })); })); }))); })); describe("loading next to an existing location", (function() { it('should work', inject([DynamicComponentLoader, TestBed, AsyncTestCompleter], (function(loader, tb, async) { tb.overrideView(MyComp, new View({ template: '<div><location #loc></location></div>', directives: [Location] })); tb.createView(MyComp).then((function(view) { var location = view.rawView.locals.get("loc"); loader.loadNextToExistingLocation(DynamicallyLoaded, location.elementRef).then((function(ref) { expect(view.rootNodes).toHaveText("Location;DynamicallyLoaded;"); async.done(); })); })); }))); it('should return a disposable component ref', inject([DynamicComponentLoader, TestBed, AsyncTestCompleter], (function(loader, tb, async) { tb.overrideView(MyComp, new View({ template: '<div><location #loc></location></div>', directives: [Location] })); tb.createView(MyComp).then((function(view) { var location = view.rawView.locals.get("loc"); loader.loadNextToExistingLocation(DynamicallyLoaded, location.elementRef).then((function(ref) { loader.loadNextToExistingLocation(DynamicallyLoaded2, location.elementRef).then((function(ref2) { expect(view.rootNodes).toHaveText("Location;DynamicallyLoaded;DynamicallyLoaded2;"); ref2.dispose(); expect(view.rootNodes).toHaveText("Location;DynamicallyLoaded;"); async.done(); })); })); })); }))); it('should update host properties', inject([DynamicComponentLoader, TestBed, AsyncTestCompleter], (function(loader, tb, async) { tb.overrideView(MyComp, new View({ template: '<div><location #loc></location></div>', directives: [Location] })); tb.createView(MyComp).then((function(view) { var location = view.rawView.locals.get("loc"); loader.loadNextToExistingLocation(DynamicallyLoadedWithHostProps, location.elementRef).then((function(ref) { ref.instance.id = "new value"; view.detectChanges(); var newlyInsertedElement = DOM.childNodesAsList(view.rootNodes[0])[1]; expect(newlyInsertedElement.id).toEqual("new value"); async.done(); })); })); }))); })); describe('loading into a new location', (function() { it('should allow to create, update and destroy components', inject([TestBed, AsyncTestCompleter], (function(tb, async) { tb.overrideView(MyComp, new View({ template: '<imp-ng-cmp #impview></imp-ng-cmp>', directives: [ImperativeViewComponentUsingNgComponent] })); tb.createView(MyComp).then((function(view) { var userViewComponent = view.rawView.locals.get("impview"); userViewComponent.done.then((function(childComponentRef) { view.detectChanges(); expect(view.rootNodes).toHaveText('hello'); childComponentRef.instance.ctxProp = 'new'; view.detectChanges(); expect(view.rootNodes).toHaveText('new'); childComponentRef.dispose(); expect(view.rootNodes).toHaveText(''); async.done(); })); })); }))); })); }); } $__export("main", main); return { setters: [function($__m) { AsyncTestCompleter = $__m.AsyncTestCompleter; beforeEach = $__m.beforeEach; ddescribe = $__m.ddescribe; xdescribe = $__m.xdescribe; describe = $__m.describe; el = $__m.el; dispatchEvent = $__m.dispatchEvent; expect = $__m.expect; iit = $__m.iit; inject = $__m.inject; beforeEachBindings = $__m.beforeEachBindings; it = $__m.it; xit = $__m.xit; }, function($__m) { TestBed = $__m.TestBed; }, function($__m) { Component = $__m.Component; }, function($__m) { View = $__m.View; }, function($__m) { DynamicComponentLoader = $__m.DynamicComponentLoader; }, function($__m) { ElementRef = $__m.ElementRef; }, function($__m) { If = $__m.If; }, function($__m) { DirectDomRenderer = $__m.DirectDomRenderer; }, function($__m) { DOM = $__m.DOM; }], execute: function() { ImperativeViewComponentUsingNgComponent = (function() { var ImperativeViewComponentUsingNgComponent = function ImperativeViewComponentUsingNgComponent(self, dynamicComponentLoader, renderer) { var div = el('<div></div>'); renderer.setImperativeComponentRootNodes(self.parentView.render, self.boundElementIndex, [div]); this.done = dynamicComponentLoader.loadIntoNewLocation(ChildComp, self, div, null); }; return ($traceurRuntime.createClass)(ImperativeViewComponentUsingNgComponent, {}, {}); }()); Object.defineProperty(ImperativeViewComponentUsingNgComponent, "annotations", {get: function() { return [new Component({selector: 'imp-ng-cmp'}), new View({renderer: 'imp-ng-cmp-renderer'})]; }}); Object.defineProperty(ImperativeViewComponentUsingNgComponent, "parameters", {get: function() { return [[ElementRef], [DynamicComponentLoader], [DirectDomRenderer]]; }}); ChildComp = (function() { var ChildComp = function ChildComp() { this.ctxProp = 'hello'; }; return ($traceurRuntime.createClass)(ChildComp, {}, {}); }()); Object.defineProperty(ChildComp, "annotations", {get: function() { return [new Component({selector: 'child-cmp'}), new View({template: '{{ctxProp}}'})]; }}); DynamicallyCreatedComponentService = (function() { var DynamicallyCreatedComponentService = function DynamicallyCreatedComponentService() { ; }; return ($traceurRuntime.createClass)(DynamicallyCreatedComponentService, {}, {}); }()); DynamicComp = (function() { var DynamicComp = function DynamicComp(loader, location) { this.done = loader.loadIntoExistingLocation(DynamicallyCreatedCmp, location); }; return ($traceurRuntime.createClass)(DynamicComp, {}, {}); }()); Object.defineProperty(DynamicComp, "annotations", {get: function() { return [new Component({selector: 'dynamic-comp'})]; }}); Object.defineProperty(DynamicComp, "parameters", {get: function() { return [[DynamicComponentLoader], [ElementRef]]; }}); DynamicallyCreatedCmp = (function() { var DynamicallyCreatedCmp = function DynamicallyCreatedCmp(a) { this.greeting = "hello"; this.dynamicallyCreatedComponentService = a; }; return ($traceurRuntime.createClass)(DynamicallyCreatedCmp, {}, {}); }()); Object.defineProperty(DynamicallyCreatedCmp, "annotations", {get: function() { return [new Component({ selector: 'hello-cmp', injectables: [DynamicallyCreatedComponentService] }), new View({template: "{{greeting}}"})]; }}); Object.defineProperty(DynamicallyCreatedCmp, "parameters", {get: function() { return [[DynamicallyCreatedComponentService]]; }}); DynamicallyLoaded = (function() { var DynamicallyLoaded = function DynamicallyLoaded() { ; }; return ($traceurRuntime.createClass)(DynamicallyLoaded, {}, {}); }()); Object.defineProperty(DynamicallyLoaded, "annotations", {get: function() { return [new Component({selector: 'dummy'}), new View({template: "DynamicallyLoaded;"})]; }}); DynamicallyLoaded2 = (function() { var DynamicallyLoaded2 = function DynamicallyLoaded2() { ; }; return ($traceurRuntime.createClass)(DynamicallyLoaded2, {}, {}); }()); Object.defineProperty(DynamicallyLoaded2, "annotations", {get: function() { return [new Component({selector: 'dummy'}), new View({template: "DynamicallyLoaded2;"})]; }}); DynamicallyLoadedWithHostProps = (function() { var DynamicallyLoadedWithHostProps = function DynamicallyLoadedWithHostProps() { this.id = "default"; }; return ($traceurRuntime.createClass)(DynamicallyLoadedWithHostProps, {}, {}); }()); Object.defineProperty(DynamicallyLoadedWithHostProps, "annotations", {get: function() { return [new Component({ selector: 'dummy', hostProperties: {'id': 'id'} }), new View({template: "DynamicallyLoadedWithHostProps;"})]; }}); Location = (function() { var Location = function Location(elementRef) { this.elementRef = elementRef; }; return ($traceurRuntime.createClass)(Location, {}, {}); }()); Object.defineProperty(Location, "annotations", {get: function() { return [new Component({selector: 'location'}), new View({template: "Location;"})]; }}); Object.defineProperty(Location, "parameters", {get: function() { return [[ElementRef]]; }}); MyComp = (function() { var MyComp = function MyComp() { this.ctxBoolProp = false; }; return ($traceurRuntime.createClass)(MyComp, {}, {}); }()); Object.defineProperty(MyComp, "annotations", {get: function() { return [new Component({selector: 'my-comp'}), new View({directives: []})]; }}); } }; }); //# sourceMappingURL=dynamic_component_loader_spec.es6.map //# sourceMappingURL=./dynamic_component_loader_spec.js.map
// The following are instance methods and variables var Note = Class.create({ initialize: function(id, is_new, raw_body) { if (Note.debug) { console.debug("Note#initialize (id=%d)", id) } this.id = id this.is_new = is_new this.document_observers = []; // Cache the elements this.elements = { box: $('note-box-' + this.id), corner: $('note-corner-' + this.id), body: $('note-body-' + this.id), image: $('image') } // Cache the dimensions this.fullsize = { left: this.elements.box.offsetLeft, top: this.elements.box.offsetTop, width: this.elements.box.clientWidth, height: this.elements.box.clientHeight } // Store the original values (in case the user clicks Cancel) this.old = { raw_body: raw_body, formatted_body: this.elements.body.innerHTML } for (p in this.fullsize) { this.old[p] = this.fullsize[p] } // Make the note translucent if (is_new) { this.elements.box.setOpacity(0.2) } else { this.elements.box.setOpacity(0.5) } if (is_new && raw_body == '') { this.bodyfit = true this.elements.body.style.height = "100px" } // Attach the event listeners this.elements.box.observe("mousedown", this.dragStart.bindAsEventListener(this)) this.elements.box.observe("mouseout", this.bodyHideTimer.bindAsEventListener(this)) this.elements.box.observe("mouseover", this.bodyShow.bindAsEventListener(this)) this.elements.corner.observe("mousedown", this.resizeStart.bindAsEventListener(this)) this.elements.body.observe("mouseover", this.bodyShow.bindAsEventListener(this)) this.elements.body.observe("mouseout", this.bodyHideTimer.bindAsEventListener(this)) this.elements.body.observe("click", this.showEditBox.bindAsEventListener(this)) this.adjustScale() }, // Returns the raw text value of this note textValue: function() { if (Note.debug) { console.debug("Note#textValue (id=%d)", this.id) } return this.old.raw_body.strip() }, // Removes the edit box hideEditBox: function(e) { if (Note.debug) { console.debug("Note#hideEditBox (id=%d)", this.id) } var editBox = $('edit-box') if (editBox != null) { var boxid = editBox.noteid $("edit-box").stopObserving() $("note-save-" + boxid).stopObserving() $("note-cancel-" + boxid).stopObserving() $("note-remove-" + boxid).stopObserving() $("note-history-" + boxid).stopObserving() $("edit-box").remove() } }, // Shows the edit box showEditBox: function(e) { if (Note.debug) { console.debug("Note#showEditBox (id=%d)", this.id) } this.hideEditBox(e) var insertionPosition = Note.getInsertionPosition() var top = insertionPosition[0] var left = insertionPosition[1] var html = "" html += '<div id="edit-box" style="top: '+top+'px; left: '+left+'px; position: absolute; visibility: visible; z-index: 100; background: white; border: 1px solid black; padding: 12px;">' html += '<form onsubmit="return false;" style="padding: 0; margin: 0;">' html += '<textarea rows="7" id="edit-box-text" style="width: 350px; margin: 2px 2px 12px 2px;">' + this.textValue() + '</textarea>' html += '<input type="submit" value="Save" name="save" id="note-save-' + this.id + '">' html += '<input type="submit" value="Cancel" name="cancel" id="note-cancel-' + this.id + '">' html += '<input type="submit" value="Remove" name="remove" id="note-remove-' + this.id + '">' html += '<input type="submit" value="History" name="history" id="note-history-' + this.id + '">' html += '</form>' html += '</div>' $("note-container").insert({bottom: html}) $('edit-box').noteid = this.id $("edit-box").observe("mousedown", this.editDragStart.bindAsEventListener(this)) $("note-save-" + this.id).observe("click", this.save.bindAsEventListener(this)) $("note-cancel-" + this.id).observe("click", this.cancel.bindAsEventListener(this)) $("note-remove-" + this.id).observe("click", this.remove.bindAsEventListener(this)) $("note-history-" + this.id).observe("click", this.history.bindAsEventListener(this)) $("edit-box-text").focus() }, // Shows the body text for the note bodyShow: function(e) { if (Note.debug) { console.debug("Note#bodyShow (id=%d)", this.id) } if (this.dragging) { return } if (this.hideTimer) { clearTimeout(this.hideTimer) this.hideTimer = null } if (Note.noteShowingBody == this) { return } if (Note.noteShowingBody) { Note.noteShowingBody.bodyHide() } Note.noteShowingBody = this if (Note.zindex >= 9) { /* don't use more than 10 layers (+1 for the body, which will always be above all notes) */ Note.zindex = 0 for (var i=0; i< Note.all.length; ++i) { Note.all[i].elements.box.style.zIndex = 0 } } this.elements.box.style.zIndex = ++Note.zindex this.elements.body.style.zIndex = 10 this.elements.body.style.top = 0 + "px" this.elements.body.style.left = 0 + "px" var dw = document.documentElement.scrollWidth this.elements.body.style.visibility = "hidden" this.elements.body.style.display = "block" if (!this.bodyfit) { this.elements.body.style.height = "auto" this.elements.body.style.minWidth = "140px" var w = null, h = null, lo = null, hi = null, x = null, last = null w = this.elements.body.offsetWidth h = this.elements.body.offsetHeight if (w/h < 1.6180339887) { /* for tall notes (lots of text), find more pleasant proportions */ lo = 140, hi = 400 do { last = w x = (lo+hi)/2 this.elements.body.style.minWidth = x + "px" w = this.elements.body.offsetWidth h = this.elements.body.offsetHeight if (w/h < 1.6180339887) lo = x else hi = x } while ((lo < hi) && (w > last)) } else if (this.elements.body.scrollWidth <= this.elements.body.clientWidth) { /* for short notes (often a single line), make the box no wider than necessary */ // scroll test necessary for Firefox lo = 20, hi = w do { x = (lo+hi)/2 this.elements.body.style.minWidth = x + "px" if (this.elements.body.offsetHeight > h) lo = x else hi = x } while ((hi - lo) > 4) if (this.elements.body.offsetHeight > h) this.elements.body.style.minWidth = hi + "px" } if (Prototype.Browser.IE) { // IE7 adds scrollbars if the box is too small, obscuring the text if (this.elements.body.offsetHeight < 35) { this.elements.body.style.minHeight = "35px" } if (this.elements.body.offsetWidth < 47) { this.elements.body.style.minWidth = "47px" } } this.bodyfit = true } this.elements.body.style.top = (this.elements.box.offsetTop + this.elements.box.clientHeight + 5) + "px" // keep the box within the document's width var l = 0, e = this.elements.box do { l += e.offsetLeft } while (e = e.offsetParent) l += this.elements.body.offsetWidth + 10 - dw if (l > 0) this.elements.body.style.left = this.elements.box.offsetLeft - l + "px" else this.elements.body.style.left = this.elements.box.offsetLeft + "px" this.elements.body.style.visibility = "visible" }, // Creates a timer that will hide the body text for the note bodyHideTimer: function(e) { if (Note.debug) { console.debug("Note#bodyHideTimer (id=%d)", this.id) } this.hideTimer = setTimeout(this.bodyHide.bindAsEventListener(this), 250) }, // Hides the body text for the note bodyHide: function(e) { if (Note.debug) { console.debug("Note#bodyHide (id=%d)", this.id) } this.elements.body.hide() if (Note.noteShowingBody == this) { Note.noteShowingBody = null } }, addDocumentObserver: function(name, func) { document.observe(name, func); this.document_observers.push([name, func]); }, clearDocumentObservers: function(name, handler) { for(var i = 0; i < this.document_observers.length; ++i) { var observer = this.document_observers[i]; document.stopObserving(observer[0], observer[1]); } this.document_observers = []; }, // Start dragging the note dragStart: function(e) { if (Note.debug) { console.debug("Note#dragStart (id=%d)", this.id) } this.addDocumentObserver("mousemove", this.drag.bindAsEventListener(this)) this.addDocumentObserver("mouseup", this.dragStop.bindAsEventListener(this)) this.addDocumentObserver("selectstart", function() {return false}) this.cursorStartX = e.pointerX() this.cursorStartY = e.pointerY() this.boxStartX = this.elements.box.offsetLeft this.boxStartY = this.elements.box.offsetTop this.boundsX = new ClipRange(5, this.elements.image.clientWidth - this.elements.box.clientWidth - 5) this.boundsY = new ClipRange(5, this.elements.image.clientHeight - this.elements.box.clientHeight - 5) this.dragging = true this.bodyHide() }, // Stop dragging the note dragStop: function(e) { if (Note.debug) { console.debug("Note#dragStop (id=%d)", this.id) } this.clearDocumentObservers() this.cursorStartX = null this.cursorStartY = null this.boxStartX = null this.boxStartY = null this.boundsX = null this.boundsY = null this.dragging = false this.bodyShow() }, ratio: function() { return this.elements.image.width / this.elements.image.getAttribute("large_width") // var ratio = this.elements.image.width / this.elements.image.getAttribute("large_width") // if (this.elements.image.scale_factor != null) // ratio *= this.elements.image.scale_factor; // return ratio }, // Scale the notes for when the image gets resized adjustScale: function() { if (Note.debug) { console.debug("Note#adjustScale (id=%d)", this.id) } var ratio = this.ratio() for (p in this.fullsize) { this.elements.box.style[p] = this.fullsize[p] * ratio + 'px' } }, // Update the note's position as it gets dragged drag: function(e) { var left = this.boxStartX + e.pointerX() - this.cursorStartX var top = this.boxStartY + e.pointerY() - this.cursorStartY left = this.boundsX.clip(left) top = this.boundsY.clip(top) this.elements.box.style.left = left + 'px' this.elements.box.style.top = top + 'px' var ratio = this.ratio() this.fullsize.left = left / ratio this.fullsize.top = top / ratio e.stop() }, // Start dragging the edit box editDragStart: function(e) { if (Note.debug) { console.debug("Note#editDragStart (id=%d)", this.id) } var node = e.element().nodeName if (node != 'FORM' && node != 'DIV') { return } this.addDocumentObserver("mousemove", this.editDrag.bindAsEventListener(this)) this.addDocumentObserver("mouseup", this.editDragStop.bindAsEventListener(this)) this.addDocumentObserver("selectstart", function() {return false}) this.elements.editBox = $('edit-box'); this.cursorStartX = e.pointerX() this.cursorStartY = e.pointerY() this.editStartX = this.elements.editBox.offsetLeft this.editStartY = this.elements.editBox.offsetTop this.dragging = true }, // Stop dragging the edit box editDragStop: function(e) { if (Note.debug) { console.debug("Note#editDragStop (id=%d)", this.id) } this.clearDocumentObservers() this.cursorStartX = null this.cursorStartY = null this.editStartX = null this.editStartY = null this.dragging = false }, // Update the edit box's position as it gets dragged editDrag: function(e) { var left = this.editStartX + e.pointerX() - this.cursorStartX var top = this.editStartY + e.pointerY() - this.cursorStartY this.elements.editBox.style.left = left + 'px' this.elements.editBox.style.top = top + 'px' e.stop() }, // Start resizing the note resizeStart: function(e) { if (Note.debug) { console.debug("Note#resizeStart (id=%d)", this.id) } this.cursorStartX = e.pointerX() this.cursorStartY = e.pointerY() this.boxStartWidth = this.elements.box.clientWidth this.boxStartHeight = this.elements.box.clientHeight this.boxStartX = this.elements.box.offsetLeft this.boxStartY = this.elements.box.offsetTop this.boundsX = new ClipRange(10, this.elements.image.clientWidth - this.boxStartX - 5) this.boundsY = new ClipRange(10, this.elements.image.clientHeight - this.boxStartY - 5) this.dragging = true this.clearDocumentObservers() this.addDocumentObserver("mousemove", this.resize.bindAsEventListener(this)) this.addDocumentObserver("mouseup", this.resizeStop.bindAsEventListener(this)) e.stop() this.bodyHide() }, // Stop resizing teh note resizeStop: function(e) { if (Note.debug) { console.debug("Note#resizeStop (id=%d)", this.id) } this.clearDocumentObservers() this.boxCursorStartX = null this.boxCursorStartY = null this.boxStartWidth = null this.boxStartHeight = null this.boxStartX = null this.boxStartY = null this.boundsX = null this.boundsY = null this.dragging = false e.stop() }, // Update the note's dimensions as it gets resized resize: function(e) { var width = this.boxStartWidth + e.pointerX() - this.cursorStartX var height = this.boxStartHeight + e.pointerY() - this.cursorStartY width = this.boundsX.clip(width) height = this.boundsY.clip(height) this.elements.box.style.width = width + "px" this.elements.box.style.height = height + "px" var ratio = this.ratio() this.fullsize.width = width / ratio this.fullsize.height = height / ratio e.stop() }, // Save the note to the database save: function(e) { if (Note.debug) { console.debug("Note#save (id=%d)", this.id) } var note = this for (p in this.fullsize) { this.old[p] = this.fullsize[p] } this.old.raw_body = $('edit-box-text').value this.old.formatted_body = this.textValue() // FIXME: this is not quite how the note will look (filtered elems, <tn>...). the user won't input a <script> that only damages him, but it might be nice to "preview" the <tn> here this.elements.body.update(this.textValue()) this.hideEditBox(e) this.bodyHide() this.bodyfit = false var params = { "id": this.id, "note[x]": this.old.left, "note[y]": this.old.top, "note[width]": this.old.width, "note[height]": this.old.height, "note[body]": this.old.raw_body } if (this.is_new) { params["note[post_id]"] = Note.post_id } notice("Saving note...") new Ajax.Request('/note/update.json', { parameters: params, onComplete: function(resp) { var resp = resp.responseJSON if (resp.success) { notice("Note saved") var note = Note.find(resp.old_id) if (resp.old_id < 0) { note.is_new = false note.id = resp.new_id note.elements.box.id = 'note-box-' + note.id note.elements.body.id = 'note-body-' + note.id note.elements.corner.id = 'note-corner-' + note.id } note.elements.body.innerHTML = resp.formatted_body note.elements.box.setOpacity(0.5) note.elements.box.removeClassName('unsaved') } else { notice("Error: " + resp.reason) note.elements.box.addClassName('unsaved') } } }) e.stop() }, // Revert the note to the last saved state cancel: function(e) { if (Note.debug) { console.debug("Note#cancel (id=%d)", this.id) } this.hideEditBox(e) this.bodyHide() var ratio = this.ratio() for (p in this.fullsize) { this.fullsize[p] = this.old[p] this.elements.box.style[p] = this.fullsize[p] * ratio + 'px' } this.elements.body.innerHTML = this.old.formatted_body e.stop() }, // Remove all references to the note from the page removeCleanup: function() { if (Note.debug) { console.debug("Note#removeCleanup (id=%d)", this.id) } this.elements.box.remove() this.elements.body.remove() var allTemp = [] for (i=0; i<Note.all.length; ++i) { if (Note.all[i].id != this.id) { allTemp.push(Note.all[i]) } } Note.all = allTemp Note.updateNoteCount() }, // Removes a note from the database remove: function(e) { if (Note.debug) { console.debug("Note#remove (id=%d)", this.id) } this.hideEditBox(e) this.bodyHide() this_note = this if (this.is_new) { this.removeCleanup() notice("Note removed") } else { notice("Removing note...") new Ajax.Request('/note/update.json', { parameters: { "id": this.id, "note[is_active]": "0" }, onComplete: function(resp) { var resp = resp.responseJSON if (resp.success) { notice("Note removed") this_note.removeCleanup() } else { notice("Error: " + resp.reason) } } }) } e.stop() }, // Redirect to the note's history history: function(e) { if (Note.debug) { console.debug("Note#history (id=%d)", this.id) } this.hideEditBox(e) if (this.is_new) { notice("This note has no history") } else { location.href = '/history?search=notes:' + this.id } e.stop() } }) // The following are class methods and variables Object.extend(Note, { zindex: 0, counter: -1, all: [], display: true, debug: false, // Show all notes show: function() { if (Note.debug) { console.debug("Note.show") } $("note-container").show() }, // Hide all notes hide: function() { if (Note.debug) { console.debug("Note.hide") } $("note-container").hide() }, // Find a note instance based on the id number find: function(id) { if (Note.debug) { console.debug("Note.find") } for (var i=0; i<Note.all.size(); ++i) { if (Note.all[i].id == id) { return Note.all[i] } } return null }, // Toggle the display of all notes toggle: function() { if (Note.debug) { console.debug("Note.toggle") } if (Note.display) { Note.hide() Note.display = false } else { Note.show() Note.display = true } }, // Update the text displaying the number of notes a post has updateNoteCount: function() { if (Note.debug) { console.debug("Note.updateNoteCount") } if (Note.all.length > 0) { var label = "" if (Note.all.length == 1) label = "note" else label = "notes" $('note-count').innerHTML = "This post has <a href=\"/note/history?post_id=" + Note.post_id + "\">" + Note.all.length + " " + label + "</a>" } else { $('note-count').innerHTML = "" } }, // Create a new note create: function() { if (Note.debug) { console.debug("Note.create") } Note.show() var insertion_position = Note.getInsertionPosition() var top = insertion_position[0] var left = insertion_position[1] var html = '' html += '<div class="note-box unsaved" style="width: 150px; height: 150px; ' html += 'top: ' + top + 'px; ' html += 'left: ' + left + 'px;" ' html += 'id="note-box-' + Note.counter + '">' html += '<div class="note-corner" id="note-corner-' + Note.counter + '"></div>' html += '</div>' html += '<div class="note-body" title="Click to edit" id="note-body-' + Note.counter + '"></div>' $("note-container").insert({bottom: html}) var note = new Note(Note.counter, true, "") Note.all.push(note) Note.counter -= 1 }, // Find a suitable position to insert new notes getInsertionPosition: function() { if (Note.debug) { console.debug("Note.getInsertionPosition") } // We want to show the edit box somewhere on the screen, but not outside the image. var scroll_x = $("image").cumulativeScrollOffset()[0] var scroll_y = $("image").cumulativeScrollOffset()[1] var image_left = $("image").positionedOffset()[0] var image_top = $("image").positionedOffset()[1] var image_right = image_left + $("image").width var image_bottom = image_top + $("image").height var left = 0 var top = 0 if (scroll_x > image_left) { left = scroll_x } else { left = image_left } if (scroll_y > image_top) { top = scroll_y } else { top = image_top + 20 } if (top > image_bottom) { top = image_top + 20 } return [top, left] } })
describe('dJSON', function () { 'use strict'; var chai = require('chai'); var expect = chai.expect; var dJSON = require('../lib/dJSON'); var path = 'x.y["q.{r}"].z'; var obj; beforeEach(function () { obj = { x: { y: { 'q.{r}': { z: 635 }, q: { r: { z: 1 } } } }, 'x-y': 5, falsy: false }; }); it('gets a value from an object with a path containing properties which contain a period', function () { expect(dJSON.get(obj, path)).to.equal(635); expect(dJSON.get(obj, 'x.y.q.r.z')).to.equal(1); }); it('sets a value from an object with a path containing properties which contain a period', function () { dJSON.set(obj, path, 17771); expect(dJSON.get(obj, path)).to.equal(17771); expect(dJSON.get(obj, 'x.y.q.r.z')).to.equal(1); }); it('will return undefined when requesting a property with a dash directly', function () { expect(dJSON.get(obj, 'x-y')).to.be.undefined; }); it('will return the proper value when requesting a property with a dash by square bracket notation', function () { expect(dJSON.get(obj, '["x-y"]')).to.equal(5); }); it('returns a value that is falsy', function () { expect(dJSON.get(obj, 'falsy')).to.equal(false); }); it('sets a value that is falsy', function () { dJSON.set(obj, 'new', false); expect(dJSON.get(obj, 'new')).to.equal(false); }); it('uses an empty object as default for the value in the set method', function () { var newObj = {}; dJSON.set(newObj, 'foo.bar.lorem'); expect(newObj).to.deep.equal({ foo: { bar: { lorem: {} } } }); }); it('does not create an object when a path exists as empty string', function () { var newObj = { nestedObject: { anArray: [ 'i have a value', '' ] } }; var newPath = 'nestedObject.anArray[1]'; dJSON.set(newObj, newPath, 17771); expect(newObj).to.deep.equal({ nestedObject: { anArray: [ 'i have a value', 17771 ] } }); }); it('creates an object from a path with a left curly brace', function () { var newObj = {}; dJSON.set(newObj, path.replace('}', ''), 'foo'); expect(newObj).to.be.deep.equal({ x: { y: { 'q.{r': { z: 'foo' } } } }); }); it('creates an object from a path with a right curly brace', function () { var newObj = {}; dJSON.set(newObj, path.replace('{', ''), 'foo'); expect(newObj).to.be.deep.equal({ x: { y: { 'q.r}': { z: 'foo' } } } }); }); it('creates an object from a path with curly braces', function () { var newObj = {}; dJSON.set(newObj, path, 'foo'); expect(newObj).to.be.deep.equal({ x: { y: { 'q.{r}': { z: 'foo' } } } }); }); it('creates an object from a path without curly braces', function () { var newObj = {}; dJSON.set(newObj, path.replace('{', '').replace('}', ''), 'foo'); expect(newObj).to.be.deep.equal({ x: { y: { 'q.r': { z: 'foo' } } } }); }); });
var fusepm = require('./fusepm'); module.exports = fixunoproj; function fixunoproj () { var fn = fusepm.local_unoproj("."); fusepm.read_unoproj(fn).then(function (obj) { var inc = []; if (obj.Includes) { var re = /\//; for (var i=0; i<obj.Includes.length;i++) { if (obj.Includes[i] === '*') { inc.push('./*.ux'); inc.push('./*.uno'); inc.push('./*.uxl'); } else if (!obj.Includes[i].match(re)) { inc.push('./' + obj.Includes[i]); } else { inc.push(obj.Includes[i]); } } } else { inc = ['./*.ux', './*.uno', './*.uxl']; } if (!obj.Version) { obj.Version = "0.0.0"; } obj.Includes = inc; fusepm.save_unoproj(fn, obj); }).catch(function (e) { console.log(e); }); }
import mod437 from './mod437'; var value=mod437+1; export default value;
const defaults = { base_css: true, // the base dark theme css inline_youtube: true, // makes youtube videos play inline the chat collapse_onebox: true, // can collapse collapse_onebox_default: false, // default option for collapse pause_youtube_on_collapse: true, // default option for pausing youtube on collapse user_color_bars: true, // show colored bars above users message blocks fish_spinner: true, // fish spinner is best spinner inline_imgur: true, // inlines webm,gifv,mp4 content from imgur visualize_hex: true, // underlines hex codes with their colour values syntax_highlight_code: true, // guess at language and highlight the code blocks emoji_translator: true, // emoji translator for INPUT area code_mode_editor: true, // uses CodeMirror for your code inputs better_image_uploads: true // use the drag & drop and paste api for image uploads }; const fileLocations = { inline_youtube: ['js/inline_youtube.js'], collapse_onebox: ['js/collapse_onebox.js'], user_color_bars: ['js/user_color_bars.js'], fish_spinner: ['js/fish_spinner.js'], inline_imgur: ['js/inline_imgur.js'], visualize_hex: ['js/visualize_hex.js'], better_image_uploads: ['js/better_image_uploads.js'], syntax_highlight_code: ['js/highlight.js', 'js/syntax_highlight_code.js'], emoji_translator: ['js/emojidata.js', 'js/emoji_translator.js'], code_mode_editor: ['CodeMirror/js/codemirror.js', 'CodeMirror/mode/cmake/cmake.js', 'CodeMirror/mode/cobol/cobol.js', 'CodeMirror/mode/coffeescript/coffeescript.js', 'CodeMirror/mode/commonlisp/commonlisp.js', 'CodeMirror/mode/css/css.js', 'CodeMirror/mode/dart/dart.js', 'CodeMirror/mode/go/go.js', 'CodeMirror/mode/groovy/groovy.js', 'CodeMirror/mode/haml/haml.js', 'CodeMirror/mode/haskell/haskell.js', 'CodeMirror/mode/htmlembedded/htmlembedded.js', 'CodeMirror/mode/htmlmixed/htmlmixed.js', 'CodeMirror/mode/jade/jade.js', 'CodeMirror/mode/javascript/javascript.js', 'CodeMirror/mode/lua/lua.js', 'CodeMirror/mode/markdown/markdown.js', 'CodeMirror/mode/mathematica/mathematica.js', 'CodeMirror/mode/nginx/nginx.js', 'CodeMirror/mode/pascal/pascal.js', 'CodeMirror/mode/perl/perl.js', 'CodeMirror/mode/php/php.js', 'CodeMirror/mode/puppet/puppet.js', 'CodeMirror/mode/python/python.js', 'CodeMirror/mode/ruby/ruby.js', 'CodeMirror/mode/sass/sass.js', 'CodeMirror/mode/scheme/scheme.js', 'CodeMirror/mode/shell/shell.js' , 'CodeMirror/mode/sql/sql.js', 'CodeMirror/mode/swift/swift.js', 'CodeMirror/mode/twig/twig.js', 'CodeMirror/mode/vb/vb.js', 'CodeMirror/mode/vbscript/vbscript.js', 'CodeMirror/mode/vhdl/vhdl.js', 'CodeMirror/mode/vue/vue.js', 'CodeMirror/mode/xml/xml.js', 'CodeMirror/mode/xquery/xquery.js', 'CodeMirror/mode/yaml/yaml.js', 'js/code_mode_editor.js'] }; // right now I assume order is correct because I'm a terrible person. make an order array or base it on File Locations and make that an array // inject the observer and the utils always. then initialize the options. injector([{type: 'js', location: 'js/observer.js'},{type: 'js', location: 'js/utils.js'}], _ => chrome.storage.sync.get(defaults, init)); function init(options) { // inject the options for the plugins themselves. const opts = document.createElement('script'); opts.textContent = ` const options = ${JSON.stringify(options)}; `; document.body.appendChild(opts); // now load the plugins. const loading = []; if( !options.base_css ) { document.documentElement.classList.add('nocss'); } delete options.base_css; for( const key of Object.keys(options) ) { if( !options[key] || !( key in fileLocations)) continue; for( const location of fileLocations[key] ) { const [,type] = location.split('.'); loading.push({location, type}); } } injector(loading, _ => { const drai = document.createElement('script'); drai.textContent = ` if( document.readyState === 'complete' ) { DOMObserver.drain(); } else { window.onload = _ => DOMObserver.drain(); } `; document.body.appendChild(drai); }); } function injector([first, ...rest], cb) { if( !first ) return cb(); if( first.type === 'js' ) { injectJS(first.location, _ => injector(rest, cb)); } else { injectCSS(first.location, _ => injector(rest, cb)); } } function injectCSS(file, cb) { const elm = document.createElement('link'); elm.rel = 'stylesheet'; elm.type = 'text/css'; elm.href = chrome.extension.getURL(file); elm.onload = cb; document.head.appendChild(elm); } function injectJS(file, cb) { const elm = document.createElement('script'); elm.type = 'text/javascript'; elm.src = chrome.extension.getURL(file); elm.onload = cb; document.body.appendChild(elm); }
'use strict'; const expect = require('expect.js'); const http = require('http'); const express = require('express'); const linkCheck = require('../'); describe('link-check', function () { this.timeout(2500);//increase timeout to enable 429 retry tests let baseUrl; let laterCustomRetryCounter; before(function (done) { const app = express(); app.head('/nohead', function (req, res) { res.sendStatus(405); // method not allowed }); app.get('/nohead', function (req, res) { res.sendStatus(200); }); app.get('/foo/redirect', function (req, res) { res.redirect('/foo/bar'); }); app.get('/foo/bar', function (req, res) { res.json({foo:'bar'}); }); app.get('/loop', function (req, res) { res.redirect('/loop'); }); app.get('/hang', function (req, res) { // no reply }); app.get('/notfound', function (req, res) { res.sendStatus(404); }); app.get('/basic-auth', function (req, res) { if (req.headers["authorization"] === "Basic Zm9vOmJhcg==") { return res.sendStatus(200); } res.sendStatus(401); }); // prevent first header try to be a hit app.head('/later-custom-retry-count', function (req, res) { res.sendStatus(405); // method not allowed }); app.get('/later-custom-retry-count', function (req, res) { laterCustomRetryCounter++; if(laterCustomRetryCounter === parseInt(req.query.successNumber)) { res.sendStatus(200); }else{ res.setHeader('retry-after', 1); res.sendStatus(429); } }); // prevent first header try to be a hit app.head('/later-standard-header', function (req, res) { res.sendStatus(405); // method not allowed }); var stdRetried = false; var stdFirstTry = 0; app.get('/later', function (req, res) { var isRetryDelayExpired = stdFirstTry + 1000 < Date.now(); if(!stdRetried || !isRetryDelayExpired){ stdFirstTry = Date.now(); stdRetried = true; res.setHeader('retry-after', 1); res.sendStatus(429); }else{ res.sendStatus(200); } }); // prevent first header try to be a hit app.head('/later-no-header', function (req, res) { res.sendStatus(405); // method not allowed }); var stdNoHeadRetried = false; var stdNoHeadFirstTry = 0; app.get('/later-no-header', function (req, res) { var minTime = stdNoHeadFirstTry + 1000; var maxTime = minTime + 100; var now = Date.now(); var isRetryDelayExpired = minTime < now && now < maxTime; if(!stdNoHeadRetried || !isRetryDelayExpired){ stdNoHeadFirstTry = Date.now(); stdNoHeadRetried = true; res.sendStatus(429); }else{ res.sendStatus(200); } }); // prevent first header try to be a hit app.head('/later-non-standard-header', function (req, res) { res.sendStatus(405); // method not allowed }); var nonStdRetried = false; var nonStdFirstTry = 0; app.get('/later-non-standard-header', function (req, res) { var isRetryDelayExpired = nonStdFirstTry + 1000 < Date.now(); if(!nonStdRetried || !isRetryDelayExpired){ nonStdFirstTry = Date.now(); nonStdRetried = true; res.setHeader('retry-after', '1s'); res.sendStatus(429); }else { res.sendStatus(200); } }); app.get(encodeURI('/url_with_unicode–'), function (req, res) { res.sendStatus(200); }); app.get('/url_with_special_chars\\(\\)\\+', function (req, res) { res.sendStatus(200); }); const server = http.createServer(app); server.listen(0 /* random open port */, 'localhost', function serverListen(err) { if (err) { done(err); return; } baseUrl = 'http://' + server.address().address + ':' + server.address().port; done(); }); }); it('should find that a valid link is alive', function (done) { linkCheck(baseUrl + '/foo/bar', function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/foo/bar'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); expect(result.err).to.be(null); done(); }); }); it('should find that a valid external link with basic authentication is alive', function (done) { linkCheck(baseUrl + '/basic-auth', { headers: { 'Authorization': 'Basic Zm9vOmJhcg==' }, }, function (err, result) { expect(err).to.be(null); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); expect(result.err).to.be(null); done(); }); }); it('should find that a valid relative link is alive', function (done) { linkCheck('/foo/bar', { baseUrl: baseUrl }, function (err, result) { expect(err).to.be(null); expect(result.link).to.be('/foo/bar'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); expect(result.err).to.be(null); done(); }); }); it('should find that an invalid link is dead', function (done) { linkCheck(baseUrl + '/foo/dead', function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/foo/dead'); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(404); expect(result.err).to.be(null); done(); }); }); it('should find that an invalid relative link is dead', function (done) { linkCheck('/foo/dead', { baseUrl: baseUrl }, function (err, result) { expect(err).to.be(null); expect(result.link).to.be('/foo/dead'); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(404); expect(result.err).to.be(null); done(); }); }); it('should report no DNS entry as a dead link (http)', function (done) { linkCheck('http://example.example.example.com/', function (err, result) { expect(err).to.be(null); expect(result.link).to.be('http://example.example.example.com/'); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(0); expect(result.err.code).to.be('ENOTFOUND'); done(); }); }); it('should report no DNS entry as a dead link (https)', function (done) { const badLink = 'https://githuuuub.com/tcort/link-check'; linkCheck(badLink, function (err, result) { expect(err).to.be(null); expect(result.link).to.be(badLink); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(0); expect(result.err.code).to.contain('ENOTFOUND'); done(); }); }); it('should timeout if there is no response', function (done) { linkCheck(baseUrl + '/hang', { timeout: '100ms' }, function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/hang'); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(0); expect(result.err.code).to.be('ECONNRESET'); done(); }); }); it('should try GET if HEAD fails', function (done) { linkCheck(baseUrl + '/nohead', function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/nohead'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); expect(result.err).to.be(null); done(); }); }); it('should handle redirects', function (done) { linkCheck(baseUrl + '/foo/redirect', function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/foo/redirect'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); expect(result.err).to.be(null); done(); }); }); it('should handle valid mailto', function (done) { linkCheck('mailto:linuxgeek@gmail.com', function (err, result) { expect(err).to.be(null); expect(result.link).to.be('mailto:linuxgeek@gmail.com'); expect(result.status).to.be('alive'); done(); }); }); it('should handle valid mailto with encoded characters in address', function (done) { linkCheck('mailto:foo%20bar@example.org', function (err, result) { expect(err).to.be(null); expect(result.link).to.be('mailto:foo%20bar@example.org'); expect(result.status).to.be('alive'); done(); }); }); it('should handle valid mailto containing hfields', function (done) { linkCheck('mailto:linuxgeek@gmail.com?subject=caf%C3%A9', function (err, result) { expect(err).to.be(null); expect(result.link).to.be('mailto:linuxgeek@gmail.com?subject=caf%C3%A9'); expect(result.status).to.be('alive'); done(); }); }); it('should handle invalid mailto', function (done) { linkCheck('mailto:foo@@bar@@baz', function (err, result) { expect(err).to.be(null); expect(result.link).to.be('mailto:foo@@bar@@baz'); expect(result.status).to.be('dead'); done(); }); }); it('should handle file protocol', function(done) { linkCheck('fixtures/file.md', { baseUrl: 'file://' + __dirname }, function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); done() }); }); it('should handle file protocol with fragment', function(done) { linkCheck('fixtures/file.md#section-1', { baseUrl: 'file://' + __dirname }, function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); done() }); }); it('should handle file protocol with query', function(done) { linkCheck('fixtures/file.md?foo=bar', { baseUrl: 'file://' + __dirname }, function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); done() }); }); it('should handle file path containing spaces', function(done) { linkCheck('fixtures/s p a c e/A.md', { baseUrl: 'file://' + __dirname }, function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); done() }); }); it('should handle baseUrl containing spaces', function(done) { linkCheck('A.md', { baseUrl: 'file://' + __dirname + '/fixtures/s p a c e'}, function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); done() }); }); it('should handle file protocol and invalid files', function(done) { linkCheck('fixtures/missing.md', { baseUrl: 'file://' + __dirname }, function(err, result) { expect(err).to.be(null); expect(result.err.code).to.be('ENOENT'); expect(result.status).to.be('dead'); done() }); }); it('should ignore file protocol on absolute links', function(done) { linkCheck(baseUrl + '/foo/bar', { baseUrl: 'file://' }, function(err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/foo/bar'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); expect(result.err).to.be(null); done() }); }); it('should ignore file protocol on fragment links', function(done) { linkCheck('#foobar', { baseUrl: 'file://' }, function(err, result) { expect(err).to.be(null); expect(result.link).to.be('#foobar'); done() }); }); it('should callback with an error on unsupported protocol', function (done) { linkCheck('gopher://gopher/0/v2/vstat', function (err, result) { expect(result).to.be(null); expect(err).to.be.an(Error); done(); }); }); it('should handle redirect loops', function (done) { linkCheck(baseUrl + '/loop', function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/loop'); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(0); expect(result.err.message).to.contain('Max redirects reached'); done(); }); }); it('should honour response codes in opts.aliveStatusCodes[]', function (done) { linkCheck(baseUrl + '/notfound', { aliveStatusCodes: [ 404, 200 ] }, function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/notfound'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(404); done(); }); }); it('should honour regexps in opts.aliveStatusCodes[]', function (done) { linkCheck(baseUrl + '/notfound', { aliveStatusCodes: [ 200, /^[45][0-9]{2}$/ ] }, function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/notfound'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(404); done(); }); }); it('should honour opts.aliveStatusCodes[]', function (done) { linkCheck(baseUrl + '/notfound', { aliveStatusCodes: [ 200 ] }, function (err, result) { expect(err).to.be(null); expect(result.link).to.be(baseUrl + '/notfound'); expect(result.status).to.be('dead'); expect(result.statusCode).to.be(404); done(); }); }); it('should retry after the provided delay on HTTP 429 with standard header', function (done) { linkCheck(baseUrl + '/later', { retryOn429: true }, function (err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.link).to.be(baseUrl + '/later'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); done(); }); }); it('should retry after the provided delay on HTTP 429 with non standard header, and return a warning', function (done) { linkCheck(baseUrl + '/later-non-standard-header', { retryOn429: true }, function (err, result) { expect(err).to.be(null); expect(result.err).not.to.be(null) expect(result.err).to.contain("Server returned a non standard \'retry-after\' header."); expect(result.link).to.be(baseUrl + '/later-non-standard-header'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); done(); }); }); it('should retry after 1s delay on HTTP 429 without header', function (done) { linkCheck(baseUrl + '/later-no-header', { retryOn429: true, fallbackRetryDelay: '1s' }, function (err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.link).to.be(baseUrl + '/later-no-header'); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); done(); }); }); // 2 is default retry so test with custom 3 it('should retry 3 times for 429 status codes', function(done) { laterCustomRetryCounter = 0; linkCheck(baseUrl + '/later-custom-retry-count?successNumber=3', { retryOn429: true, retryCount: 3 }, function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); done(); }); }); // See issue #23 it('should handle non URL encoded unicode chars in URLs', function(done) { //last char is EN DASH linkCheck(baseUrl + '/url_with_unicode–', function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); done(); }); }); // See issues #34 and #40 it('should not URL encode already encoded characters', function(done) { linkCheck(baseUrl + '/url_with_special_chars%28%29%2B', function(err, result) { expect(err).to.be(null); expect(result.err).to.be(null); expect(result.status).to.be('alive'); expect(result.statusCode).to.be(200); done(); }); }); });
function daysLeftThisWeek (date) { return 6 - date.getDay() } module.exports = daysLeftThisWeek
async function test(object) { for (var key in object) { await key; } }
var contenedor = {}; var json = []; var json_active = []; var timeout; var result = {}; $(document).ready(function() { $('#buscador').keyup(function() {   if (timeout) {     clearTimeout(timeout);     timeout = null;   }    timeout = setTimeout(function() { search(); }, 100); }); $("body").on('change', '#result', function() { result = $("#result").val(); load_content(json); }); $("body").on('click', '.asc', function() { var name = $(this).parent().attr('rel'); console.log(name); $(this).removeClass("asc").addClass("desc"); order(name, true); }); $("body").on('click', '.desc', function() { var name = $(this).parent().attr('rel'); $(this).removeClass("desc").addClass("asc"); order(name, false); }); }); function update(id,parent,valor){ for (var i=0; i< json.length; i++) { if (json[i].id === id){ json[i][parent] = valor; return; } } } function load_content(json) { max = result; data = json.slice(0, max); json_active = json; $("#numRows").html(json.length); contenedor.html(''); 2 var list = table.find("th[rel]"); var html = ''; $.each(data, function(i, value) { html += '<tr id="' + value.id + '">'; $.each(list, function(index) { valor = $(this).attr('rel'); if (valor != 'acction') { if ($(this).hasClass("editable")) { html += '<td><span class="edition" rel="' + value.id + '">' + value[valor] .substring(0, 60) +'</span></td>'; } else if($(this).hasClass("view")){ if(value[valor].length > 1){ var class_1 = $(this).data('class'); html += '<td><a href="javascript:void(0)" class="'+class_1+'" rel="'+ value[valor] + '" data-id="' + value.id + '"></a></td>'; }else{ html += '<td></td>'; } }else{ html += '<td>' + value[valor] + '</td>'; } } else { html += '<td>'; $.each(acction, function(k, data) { html += '<a class="' + data.class + '" rel="' + value[data.rel] + '" href="' + data.link + value[data.parameter] + '" target="'+data.target+'" >' + data.button + '</a>'; }); html += "</td>"; } if (index >= list.length - 1) { html += '</tr>'; contenedor.append(html); html = ''; } }); }); } function selectedRow(json) { var num = result; var rows = json.length; var total = rows / num; var cant = Math.floor(total); $("#result").html(''); for (i = 0; i < cant; i++) { $("#result").append("<option value=\"" + parseInt(num) + "\">" + num + "</option>"); num = num + result; } $("#result").append("<option value=\"" + parseInt(rows) + "\">" + rows + "</option>"); } function order(prop, asc) { json = json.sort(function(a, b) { if (asc) return (a[prop] > b[prop]) ? 1 : ((a[prop] < b[prop]) ? -1 : 0); else return (b[prop] > a[prop]) ? 1 : ((b[prop] < a[prop]) ? -1 : 0); }); contenedor.html(''); load_content(json); } function search() { var list = table.find("th[rel]"); var data = []; var serch = $("#buscador").val(); json.forEach(function(element, index, array) { $.each(list, function(index) { valor = $(this).attr('rel'); if (element[valor]) { if (element[valor].like('%' + serch + '%')) { data.push(element); return false; } } }); }); contenedor.html(''); load_content(data); } String.prototype.like = function(search) { if (typeof search !== 'string' || this === null) { return false; } search = search.replace(new RegExp("([\\.\\\\\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:\\-])", "g"), "\\$1"); search = search.replace(/%/g, '.*').replace(/_/g, '.'); return RegExp('^' + search + '$', 'gi').test(this); } function export_csv(JSONData, ReportTitle, ShowLabel) { var arrData = typeof JSONData != 'object' ? JSON.parse(JSONData) : JSONData; var CSV = ''; // CSV += ReportTitle + '\r\n\n'; if (ShowLabel) { var row = ""; for (var index in arrData[0]) { row += index + ';'; } row = row.slice(0, -1); CSV += row + '\r\n'; } for (var i = 0; i < arrData.length; i++) { var row = ""; for (var index in arrData[i]) { row += '"' + arrData[i][index] + '";'; } row.slice(0, row.length - 1); CSV += row + '\r\n'; } if (CSV == '') { alert("Invalid data"); return; } // var fileName = "Report_"; //fileName += ReportTitle.replace(/ /g,"_"); var uri = 'data:text/csv;charset=utf-8,' + escape(CSV); var link = document.createElement("a"); link.href = uri; link.style = "visibility:hidden"; link.download = ReportTitle + ".csv"; document.body.appendChild(link); link.click(); document.body.removeChild(link); }
import React from 'react'; import ons from 'onsenui'; import { Page, Toolbar, BackButton, LazyList, ListItem } from 'react-onsenui'; class InfiniteScroll extends React.Component { renderRow(index) { return ( <ListItem key={index}> {'Item ' + (index + 1)} </ListItem> ); } renderToolbar() { return ( <Toolbar> <div className='left'> <BackButton>Back</BackButton> </div> <div className='center'> Infinite scroll </div> </Toolbar> ); } render() { return ( <Page renderToolbar={this.renderToolbar}> <LazyList length={10000} renderRow={this.renderRow} calculateItemHeight={() => ons.platform.isAndroid() ? 77 : 45} /> </Page> ); } } module.exports = InfiniteScroll;
$js.module({ prerequisite:[ '/{$jshome}/modules/splice.module.extensions.js' ], imports:[ { Inheritance : '/{$jshome}/modules/splice.inheritance.js' }, {'SpliceJS.UI':'../splice.ui.js'}, 'splice.controls.pageloader.html' ], definition:function(){ var scope = this; var imports = scope.imports ; var Class = imports.Inheritance.Class , UIControl = imports.SpliceJS.UI.UIControl ; var PageLoader = Class(function PageLoaderController(){ this.base(); }).extend(UIControl); scope.exports( PageLoader ); } })
'use babel'; import MapQueries from '../lib/map-queries'; // Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. // // To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` // or `fdescribe`). Remove the `f` to unfocus the block. describe('MapQueries', () => { let workspaceElement, activationPromise; beforeEach(() => { workspaceElement = atom.views.getView(atom.workspace); activationPromise = atom.packages.activatePackage('map-queries'); }); describe('when the map-queries:toggle event is triggered', () => { it('hides and shows the modal panel', () => { // Before the activation event the view is not on the DOM, and no panel // has been created expect(workspaceElement.querySelector('.map-queries')).not.toExist(); // This is an activation event, triggering it will cause the package to be // activated. atom.commands.dispatch(workspaceElement, 'map-queries:toggle'); waitsForPromise(() => { return activationPromise; }); runs(() => { expect(workspaceElement.querySelector('.map-queries')).toExist(); let mapQueriesElement = workspaceElement.querySelector('.map-queries'); expect(mapQueriesElement).toExist(); let mapQueriesPanel = atom.workspace.panelForItem(mapQueriesElement); expect(mapQueriesPanel.isVisible()).toBe(true); atom.commands.dispatch(workspaceElement, 'map-queries:toggle'); expect(mapQueriesPanel.isVisible()).toBe(false); }); }); it('hides and shows the view', () => { // This test shows you an integration test testing at the view level. // Attaching the workspaceElement to the DOM is required to allow the // `toBeVisible()` matchers to work. Anything testing visibility or focus // requires that the workspaceElement is on the DOM. Tests that attach the // workspaceElement to the DOM are generally slower than those off DOM. jasmine.attachToDOM(workspaceElement); expect(workspaceElement.querySelector('.map-queries')).not.toExist(); // This is an activation event, triggering it causes the package to be // activated. atom.commands.dispatch(workspaceElement, 'map-queries:toggle'); waitsForPromise(() => { return activationPromise; }); runs(() => { // Now we can test for view visibility let mapQueriesElement = workspaceElement.querySelector('.map-queries'); expect(mapQueriesElement).toBeVisible(); atom.commands.dispatch(workspaceElement, 'map-queries:toggle'); expect(mapQueriesElement).not.toBeVisible(); }); }); }); });
/*! * jQuery JavaScript Library v1.8.3 -css,-effects,-offset,-dimensions * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Mon Nov 19 2012 11:58:00 GMT-0800 (PST) */ (function( window, undefined ) { var // A central reference to the root jQuery(document) rootjQuery, // The deferred used on DOM ready readyList, // Use the correct document accordingly with window argument (sandbox) document = window.document, location = window.location, navigator = window.navigator, // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$, // Save a reference to some core methods core_push = Array.prototype.push, core_slice = Array.prototype.slice, core_indexOf = Array.prototype.indexOf, core_toString = Object.prototype.toString, core_hasOwn = Object.prototype.hasOwnProperty, core_trim = String.prototype.trim, // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery ); }, // Used for matching numbers core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, // Used for detecting and trimming whitespace core_rnotwhite = /\S/, core_rspace = /\s+/, // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, // A simple way to check for HTML strings // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, // Match a standalone tag rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, // JSON RegExp rvalidchars = /^[\],:{}\s]*$/, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, // Matches dashed string for camelizing rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return ( letter + "" ).toUpperCase(); }, // The ready event handler and self cleanup method DOMContentLoaded = function() { if ( document.addEventListener ) { document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); jQuery.ready(); } else if ( document.readyState === "complete" ) { // we're here because readyState === "complete" in oldIE // which is good enough for us to call the dom ready! document.detachEvent( "onreadystatechange", DOMContentLoaded ); jQuery.ready(); } }, // [[Class]] -> type pairs class2type = {}; jQuery.fn = jQuery.prototype = { constructor: jQuery, init: function( selector, context, rootjQuery ) { var match, elem, ret, doc; // Handle $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Handle $(DOMElement) if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; } // Handle HTML strings if ( typeof selector === "string" ) { if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { context = context instanceof jQuery ? context[0] : context; doc = ( context && context.nodeType ? context.ownerDocument || context : document ); // scripts is true for back-compat selector = jQuery.parseHTML( match[1], doc, true ); if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { this.attr.call( selector, context, true ); } return jQuery.merge( this, selector ); // HANDLE: $(#id) } else { elem = document.getElementById( match[2] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id !== match[2] ) { return rootjQuery.find( selector ); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || rootjQuery ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } if ( selector.selector !== undefined ) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray( selector, this ); }, // Start with an empty selector selector: "", // The current version of jQuery being used jquery: "1.8.3 -css,-effects,-offset,-dimensions", // The default length of a jQuery object is 0 length: 0, // The number of elements contained in the matched element set size: function() { return this.length; }, toArray: function() { return core_slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == null ? // Return a 'clean' array this.toArray() : // Return just the object ( num < 0 ? this[ this.length + num ] : this[ num ] ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems, name, selector ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; if ( name === "find" ) { ret.selector = this.selector + ( this.selector ? " " : "" ) + selector; } else if ( name ) { ret.selector = this.selector + "." + name + "(" + selector + ")"; } // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, ready: function( fn ) { // Add the callback jQuery.ready.promise().done( fn ); return this; }, eq: function( i ) { i = +i; return i === -1 ? this.slice( i ) : this.slice( i, i + 1 ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, slice: function() { return this.pushStack( core_slice.apply( this, arguments ), "slice", core_slice.call(arguments).join(",") ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, end: function() { return this.prevObject || this.constructor(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: core_push, sort: [].sort, splice: [].splice }; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; target = arguments[1] || {}; // skip the boolean and the target i = 2; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( length === i ) { target = this; --i; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray(src) ? src : []; } else { clone = src && jQuery.isPlainObject(src) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ noConflict: function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }, // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready, 1 ); } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.trigger ) { jQuery( document ).trigger("ready").off("ready"); } }, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return jQuery.type(obj) === "function"; }, isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; }, isWindow: function( obj ) { return obj != null && obj == obj.window; }, isNumeric: function( obj ) { return !isNaN( parseFloat(obj) ) && isFinite( obj ); }, type: function( obj ) { return obj == null ? String( obj ) : class2type[ core_toString.call(obj) ] || "object"; }, isPlainObject: function( obj ) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { return false; } try { // Not own constructor property must be Object if ( obj.constructor && !core_hasOwn.call(obj, "constructor") && !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } } catch ( e ) { // IE8,9 Will throw exceptions on certain host objects #9897 return false; } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. var key; for ( key in obj ) {} return key === undefined || core_hasOwn.call( obj, key ); }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, error: function( msg ) { throw new Error( msg ); }, // data: string of html // context (optional): If specified, the fragment will be created in this context, defaults to document // scripts (optional): If true, will include scripts passed in the html string parseHTML: function( data, context, scripts ) { var parsed; if ( !data || typeof data !== "string" ) { return null; } if ( typeof context === "boolean" ) { scripts = context; context = 0; } context = context || document; // Single tag if ( (parsed = rsingleTag.exec( data )) ) { return [ context.createElement( parsed[1] ) ]; } parsed = jQuery.buildFragment( [ data ], context, scripts ? null : [] ); return jQuery.merge( [], (parsed.cacheable ? jQuery.clone( parsed.fragment ) : parsed.fragment).childNodes ); }, parseJSON: function( data ) { if ( !data || typeof data !== "string") { return null; } // Make sure leading/trailing whitespace is removed (IE can't handle it) data = jQuery.trim( data ); // Attempt to parse using the native JSON parser first if ( window.JSON && window.JSON.parse ) { return window.JSON.parse( data ); } // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( rvalidchars.test( data.replace( rvalidescape, "@" ) .replace( rvalidtokens, "]" ) .replace( rvalidbraces, "")) ) { return ( new Function( "return " + data ) )(); } jQuery.error( "Invalid JSON: " + data ); }, // Cross-browser xml parsing parseXML: function( data ) { var xml, tmp; if ( !data || typeof data !== "string" ) { return null; } try { if ( window.DOMParser ) { // Standard tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } else { // IE xml = new ActiveXObject( "Microsoft.XMLDOM" ); xml.async = "false"; xml.loadXML( data ); } } catch( e ) { xml = undefined; } if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }, noop: function() {}, // Evaluates a script in a global context // Workarounds based on findings by Jim Driscoll // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context globalEval: function( data ) { if ( data && core_rnotwhite.test( data ) ) { // We use execScript on Internet Explorer // We use an anonymous function so that context is window // rather than jQuery in Firefox ( window.execScript || function( data ) { window[ "eval" ].call( window, data ); } )( data ); } }, // Convert dashed to camelCase; used by the css and data modules // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, // args is for internal usage only each: function( obj, callback, args ) { var name, i = 0, length = obj.length, isObj = length === undefined || jQuery.isFunction( obj ); if ( args ) { if ( isObj ) { for ( name in obj ) { if ( callback.apply( obj[ name ], args ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.apply( obj[ i++ ], args ) === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isObj ) { for ( name in obj ) { if ( callback.call( obj[ name ], name, obj[ name ] ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.call( obj[ i ], i, obj[ i++ ] ) === false ) { break; } } } } return obj; }, // Use native String.trim function wherever possible trim: core_trim && !core_trim.call("\uFEFF\xA0") ? function( text ) { return text == null ? "" : core_trim.call( text ); } : // Otherwise use our own trimming functionality function( text ) { return text == null ? "" : ( text + "" ).replace( rtrim, "" ); }, // results is for internal usage only makeArray: function( arr, results ) { var type, ret = results || []; if ( arr != null ) { // The window, strings (and functions) also have 'length' // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 type = jQuery.type( arr ); if ( arr.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( arr ) ) { core_push.call( ret, arr ); } else { jQuery.merge( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { var len; if ( arr ) { if ( core_indexOf ) { return core_indexOf.call( arr, elem, i ); } len = arr.length; i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; for ( ; i < len; i++ ) { // Skip accessing in sparse arrays if ( i in arr && arr[ i ] === elem ) { return i; } } } return -1; }, merge: function( first, second ) { var l = second.length, i = first.length, j = 0; if ( typeof l === "number" ) { for ( ; j < l; j++ ) { first[ i++ ] = second[ j ]; } } else { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, inv ) { var retVal, ret = [], i = 0, length = elems.length; inv = !!inv; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { retVal = !!callback( elems[ i ], i ); if ( inv !== retVal ) { ret.push( elems[ i ] ); } } return ret; }, // arg is for internal usage only map: function( elems, callback, arg ) { var value, key, ret = [], i = 0, length = elems.length, // jquery objects are treated as arrays isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; // Go through the array, translating each of the items to their if ( isArray ) { for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } // Go through every key on the object, } else { for ( key in elems ) { value = callback( elems[ key ], key, arg ); if ( value != null ) { ret[ ret.length ] = value; } } } // Flatten any nested arrays return ret.concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { var tmp, args, proxy; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind args = core_slice.call( arguments, 2 ); proxy = function() { return fn.apply( context, args.concat( core_slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function access: function( elems, fn, key, value, chainable, emptyGet, pass ) { var exec, bulk = key == null, i = 0, length = elems.length; // Sets many values if ( key && typeof key === "object" ) { for ( i in key ) { jQuery.access( elems, fn, i, key[i], 1, emptyGet, value ); } chainable = 1; // Sets one value } else if ( value !== undefined ) { // Optionally, function values get executed if exec is true exec = pass === undefined && jQuery.isFunction( value ); if ( bulk ) { // Bulk operations only iterate when executing function values if ( exec ) { exec = fn; fn = function( elem, key, value ) { return exec.call( jQuery( elem ), value ); }; // Otherwise they run against the entire set } else { fn.call( elems, value ); fn = null; } } if ( fn ) { for (; i < length; i++ ) { fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); } } chainable = 1; } return chainable ? elems : // Gets bulk ? fn.call( elems ) : length ? fn( elems[0], key ) : emptyGet; }, now: function() { return ( new Date() ).getTime(); } }); jQuery.ready.promise = function( obj ) { if ( !readyList ) { readyList = jQuery.Deferred(); // Catch cases where $(document).ready() is called after the browser event has already occurred. // we once tried to use readyState "interactive" here, but it caused issues like the one // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready setTimeout( jQuery.ready, 1 ); // Standards-based browsers support DOMContentLoaded } else if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", jQuery.ready, false ); // If IE event model is used } else { // Ensure firing before onload, maybe late but safe also for iframes document.attachEvent( "onreadystatechange", DOMContentLoaded ); // A fallback to window.onload, that will always work window.attachEvent( "onload", jQuery.ready ); // If IE and not a frame // continually check to see if the document is ready var top = false; try { top = window.frameElement == null && document.documentElement; } catch(e) {} if ( top && top.doScroll ) { (function doScrollCheck() { if ( !jQuery.isReady ) { try { // Use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, 50 ); } // and execute any waiting functions jQuery.ready(); } })(); } } } return readyList.promise( obj ); }; // Populate the class2type map jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); }); // All jQuery objects should point back to these rootjQuery = jQuery(document); // String to Object options format cache var optionsCache = {}; // Convert String-formatted options into Object-formatted ones and store in cache function createOptions( options ) { var object = optionsCache[ options ] = {}; jQuery.each( options.split( core_rspace ), function( _, flag ) { object[ flag ] = true; }); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? ( optionsCache[ options ] || createOptions( options ) ) : jQuery.extend( {}, options ); var // Last fire value (for non-forgettable lists) memory, // Flag to know if list was already fired fired, // Flag to know if list is currently firing firing, // First callback to fire (used internally by add and fireWith) firingStart, // End of the loop when firing firingLength, // Index of currently firing callback (modified by remove if needed) firingIndex, // Actual callback list list = [], // Stack of fire calls for repeatable lists stack = !options.once && [], // Fire callbacks fire = function( data ) { memory = options.memory && data; fired = true; firingIndex = firingStart || 0; firingStart = 0; firingLength = list.length; firing = true; for ( ; list && firingIndex < firingLength; firingIndex++ ) { if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { memory = false; // To prevent further calls using add break; } } firing = false; if ( list ) { if ( stack ) { if ( stack.length ) { fire( stack.shift() ); } } else if ( memory ) { list = []; } else { self.disable(); } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // First, we save the current length var start = list.length; (function add( args ) { jQuery.each( args, function( _, arg ) { var type = jQuery.type( arg ); if ( type === "function" ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && type !== "string" ) { // Inspect recursively add( arg ); } }); })( arguments ); // Do we need to add the callbacks to the // current firing batch? if ( firing ) { firingLength = list.length; // With memory, if we're not firing then // we should call right away } else if ( memory ) { firingStart = start; fire( memory ); } } return this; }, // Remove a callback from the list remove: function() { if ( list ) { jQuery.each( arguments, function( _, arg ) { var index; while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( firing ) { if ( index <= firingLength ) { firingLength--; } if ( index <= firingIndex ) { firingIndex--; } } } }); } return this; }, // Control if a given callback is in the list has: function( fn ) { return jQuery.inArray( fn, list ) > -1; }, // Remove all callbacks from the list empty: function() { list = []; return this; }, // Have the list do nothing anymore disable: function() { list = stack = memory = undefined; return this; }, // Is it disabled? disabled: function() { return !list; }, // Lock the list in its current state lock: function() { stack = undefined; if ( !memory ) { self.disable(); } return this; }, // Is it locked? locked: function() { return !stack; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; if ( list && ( !fired || stack ) ) { if ( firing ) { stack.push( args ); } else { fire( args ); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], [ "notify", "progress", jQuery.Callbacks("memory") ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, then: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred(function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { var action = tuple[ 0 ], fn = fns[ i ]; // deferred[ done | fail | progress ] for forwarding actions to newDefer deferred[ tuple[1] ]( jQuery.isFunction( fn ) ? function() { var returned = fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise() .done( newDefer.resolve ) .fail( newDefer.reject ) .progress( newDefer.notify ); } else { newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); } } : newDefer[ action ] ); }); fns = null; }).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Keep pipe for back-compat promise.pipe = promise.then; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 3 ]; // promise[ done | fail | progress ] = list.add promise[ tuple[1] ] = list.add; // Handle state if ( stateString ) { list.add(function() { // state = [ resolved | rejected ] state = stateString; // [ reject_list | resolve_list ].disable; progress_list.lock }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); } // deferred[ resolve | reject | notify ] = list.fire deferred[ tuple[0] ] = list.fire; deferred[ tuple[0] + "With" ] = list.fireWith; }); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( subordinate /* , ..., subordinateN */ ) { var i = 0, resolveValues = core_slice.call( arguments ), length = resolveValues.length, // the count of uncompleted subordinates remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = remaining === 1 ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function( i, contexts, values ) { return function( value ) { contexts[ i ] = this; values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; if( values === progressValues ) { deferred.notifyWith( contexts, values ); } else if ( !( --remaining ) ) { deferred.resolveWith( contexts, values ); } }; }, progressValues, progressContexts, resolveContexts; // add listeners to Deferred subordinates; treat others as resolved if ( length > 1 ) { progressValues = new Array( length ); progressContexts = new Array( length ); resolveContexts = new Array( length ); for ( ; i < length; i++ ) { if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { resolveValues[ i ].promise() .done( updateFunc( i, resolveContexts, resolveValues ) ) .fail( deferred.reject ) .progress( updateFunc( i, progressContexts, progressValues ) ); } else { --remaining; } } } // if we're not waiting on anything, resolve the master if ( !remaining ) { deferred.resolveWith( resolveContexts, resolveValues ); } return deferred.promise(); } }); jQuery.support = (function() { var support, all, a, select, opt, input, fragment, eventName, i, isSupported, clickFn, div = document.createElement("div"); // Setup div.setAttribute( "className", "t" ); div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; // Support tests won't run in some limited or non-browser environments all = div.getElementsByTagName("*"); a = div.getElementsByTagName("a")[ 0 ]; if ( !all || !a || !all.length ) { return {}; } // First batch of tests select = document.createElement("select"); opt = select.appendChild( document.createElement("option") ); input = div.getElementsByTagName("input")[ 0 ]; a.style.cssText = "top:1px;float:left;opacity:.5"; support = { // IE strips leading whitespace when .innerHTML is used leadingWhitespace: ( div.firstChild.nodeType === 3 ), // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables tbody: !div.getElementsByTagName("tbody").length, // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE htmlSerialize: !!div.getElementsByTagName("link").length, // Get the style information from getAttribute // (IE uses .cssText instead) style: /top/.test( a.getAttribute("style") ), // Make sure that URLs aren't manipulated // (IE normalizes it by default) hrefNormalized: ( a.getAttribute("href") === "/a" ), // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 opacity: /^0.5/.test( a.style.opacity ), // Verify style float existence // (IE uses styleFloat instead of cssFloat) cssFloat: !!a.style.cssFloat, // Make sure that if no value is specified for a checkbox // that it defaults to "on". // (WebKit defaults to "" instead) checkOn: ( input.value === "on" ), // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) optSelected: opt.selected, // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) getSetAttribute: div.className !== "t", // Tests for enctype support on a form (#6743) enctype: !!document.createElement("form").enctype, // Makes sure cloning an html5 element does not cause problems // Where outerHTML is undefined, this still works html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>", // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode boxModel: ( document.compatMode === "CSS1Compat" ), // Will be defined later submitBubbles: true, changeBubbles: true, focusinBubbles: false, deleteExpando: true, noCloneEvent: true, inlineBlockNeedsLayout: false, shrinkWrapBlocks: false, reliableMarginRight: true, boxSizingReliable: true, pixelPosition: false }; // Make sure checked status is properly cloned input.checked = true; support.noCloneChecked = input.cloneNode( true ).checked; // Make sure that the options inside disabled selects aren't marked as disabled // (WebKit marks them as disabled) select.disabled = true; support.optDisabled = !opt.disabled; // Test to see if it's possible to delete an expando from an element // Fails in Internet Explorer try { delete div.test; } catch( e ) { support.deleteExpando = false; } if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { div.attachEvent( "onclick", clickFn = function() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this) support.noCloneEvent = false; }); div.cloneNode( true ).fireEvent("onclick"); div.detachEvent( "onclick", clickFn ); } // Check if a radio maintains its value // after being appended to the DOM input = document.createElement("input"); input.value = "t"; input.setAttribute( "type", "radio" ); support.radioValue = input.value === "t"; input.setAttribute( "checked", "checked" ); // #11217 - WebKit loses check when the name is after the checked attribute input.setAttribute( "name", "t" ); div.appendChild( input ); fragment = document.createDocumentFragment(); fragment.appendChild( div.lastChild ); // WebKit doesn't clone checked state correctly in fragments support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; // Check if a disconnected checkbox will retain its checked // value of true after appended to the DOM (IE6/7) support.appendChecked = input.checked; fragment.removeChild( input ); fragment.appendChild( div ); // Technique from Juriy Zaytsev // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/ // We only care about the case where non-standard event systems // are used, namely in IE. Short-circuiting here helps us to // avoid an eval call (in setAttribute) which can cause CSP // to go haywire. See: https://developer.mozilla.org/en/Security/CSP if ( div.attachEvent ) { for ( i in { submit: true, change: true, focusin: true }) { eventName = "on" + i; isSupported = ( eventName in div ); if ( !isSupported ) { div.setAttribute( eventName, "return;" ); isSupported = ( typeof div[ eventName ] === "function" ); } support[ i + "Bubbles" ] = isSupported; } } // Run tests that need a body at doc ready jQuery(function() { var container, div, tds, marginDiv, divReset = "padding:0;margin:0;border:0;display:block;overflow:hidden;", body = document.getElementsByTagName("body")[0]; if ( !body ) { // Return for frameset docs that don't have a body return; } container = document.createElement("div"); container.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px"; body.insertBefore( container, body.firstChild ); // Construct the test element div = document.createElement("div"); container.appendChild( div ); // Check if table cells still have offsetWidth/Height when they are set // to display:none and there are still other visible table cells in a // table row; if so, offsetWidth/Height are not reliable for use when // determining if an element has been hidden directly using // display:none (it is still safe to use offsets if a parent element is // hidden; don safety goggles and see bug #4512 for more information). // (only IE 8 fails this test) div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"; tds = div.getElementsByTagName("td"); tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; isSupported = ( tds[ 0 ].offsetHeight === 0 ); tds[ 0 ].style.display = ""; tds[ 1 ].style.display = "none"; // Check if empty table cells still have offsetWidth/Height // (IE <= 8 fail this test) support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); // Check box-sizing and margin behavior div.innerHTML = ""; div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; support.boxSizing = ( div.offsetWidth === 4 ); support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 ); // NOTE: To any future maintainer, we've window.getComputedStyle // because jsdom on node.js will break without it. if ( window.getComputedStyle ) { support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; // Check if div with explicit width and no margin-right incorrectly // gets computed margin-right based on width of container. For more // info see bug #3333 // Fails in WebKit before Feb 2011 nightlies // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right marginDiv = document.createElement("div"); marginDiv.style.cssText = div.style.cssText = divReset; marginDiv.style.marginRight = marginDiv.style.width = "0"; div.style.width = "1px"; div.appendChild( marginDiv ); support.reliableMarginRight = !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); } if ( typeof div.style.zoom !== "undefined" ) { // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout // (IE < 8 does this) div.innerHTML = ""; div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); // Check if elements with layout shrink-wrap their children // (IE 6 does this) div.style.display = "block"; div.style.overflow = "visible"; div.innerHTML = "<div></div>"; div.firstChild.style.width = "5px"; support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); container.style.zoom = 1; } // Null elements to avoid leaks in IE body.removeChild( container ); container = div = tds = marginDiv = null; }); // Null elements to avoid leaks in IE fragment.removeChild( div ); all = a = select = opt = input = fragment = div = null; return support; })(); var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g; jQuery.extend({ cache: {}, deletedIds: [], // Remove at next major release (1.9/2.0) uuid: 0, // Unique for each copy of jQuery on the page // Non-digits removed to match rinlinejQuery expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ), // The following elements throw uncatchable exceptions if you // attempt to add expando properties to them. noData: { "embed": true, // Ban all objects except for Flash (which handle expandos) "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "applet": true }, hasData: function( elem ) { elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; return !!elem && !isEmptyDataObject( elem ); }, data: function( elem, name, data, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, ret, internalKey = jQuery.expando, getByName = typeof name === "string", // We have to handle DOM nodes and JS objects differently because IE6-7 // can't GC object references properly across the DOM-JS boundary isNode = elem.nodeType, // Only DOM nodes need the global jQuery cache; JS object data is // attached directly to the object so GC can occur automatically cache = isNode ? jQuery.cache : elem, // Only defining an ID for JS objects if its cache already exists allows // the code to shortcut on the same path as a DOM node with no cache id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; // Avoid doing any more work than we need to when trying to get data on an // object that has no data at all if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) { return; } if ( !id ) { // Only DOM nodes need a new unique ID for each element since their data // ends up in the global cache if ( isNode ) { elem[ internalKey ] = id = jQuery.deletedIds.pop() || jQuery.guid++; } else { id = internalKey; } } if ( !cache[ id ] ) { cache[ id ] = {}; // Avoids exposing jQuery metadata on plain JS objects when the object // is serialized using JSON.stringify if ( !isNode ) { cache[ id ].toJSON = jQuery.noop; } } // An object can be passed to jQuery.data instead of a key/value pair; this gets // shallow copied over onto the existing cache if ( typeof name === "object" || typeof name === "function" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } } thisCache = cache[ id ]; // jQuery data() is stored in a separate object inside the object's internal data // cache in order to avoid key collisions between internal data and user-defined // data. if ( !pvt ) { if ( !thisCache.data ) { thisCache.data = {}; } thisCache = thisCache.data; } if ( data !== undefined ) { thisCache[ jQuery.camelCase( name ) ] = data; } // Check for both converted-to-camel and non-converted data property names // If a data property was specified if ( getByName ) { // First Try to find as-is property data ret = thisCache[ name ]; // Test for null|undefined property data if ( ret == null ) { // Try to find the camelCased property ret = thisCache[ jQuery.camelCase( name ) ]; } } else { ret = thisCache; } return ret; }, removeData: function( elem, name, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, i, l, isNode = elem.nodeType, // See jQuery.data for more information cache = isNode ? jQuery.cache : elem, id = isNode ? elem[ jQuery.expando ] : jQuery.expando; // If there is already no cache entry for this object, there is no // purpose in continuing if ( !cache[ id ] ) { return; } if ( name ) { thisCache = pvt ? cache[ id ] : cache[ id ].data; if ( thisCache ) { // Support array or space separated string names for data keys if ( !jQuery.isArray( name ) ) { // try the string as a key before any manipulation if ( name in thisCache ) { name = [ name ]; } else { // split the camel cased version by spaces unless a key with the spaces exists name = jQuery.camelCase( name ); if ( name in thisCache ) { name = [ name ]; } else { name = name.split(" "); } } } for ( i = 0, l = name.length; i < l; i++ ) { delete thisCache[ name[i] ]; } // If there is no data left in the cache, we want to continue // and let the cache object itself get destroyed if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) { return; } } } // See jQuery.data for more information if ( !pvt ) { delete cache[ id ].data; // Don't destroy the parent cache unless the internal data object // had been the only thing left in it if ( !isEmptyDataObject( cache[ id ] ) ) { return; } } // Destroy the cache if ( isNode ) { jQuery.cleanData( [ elem ], true ); // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) } else if ( jQuery.support.deleteExpando || cache != cache.window ) { delete cache[ id ]; // When all else fails, null } else { cache[ id ] = null; } }, // For internal use only. _data: function( elem, name, data ) { return jQuery.data( elem, name, data, true ); }, // A method for determining if a DOM node can handle the data expando acceptData: function( elem ) { var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; // nodes accept data unless otherwise specified; rejection can be conditional return !noData || noData !== true && elem.getAttribute("classid") === noData; } }); jQuery.fn.extend({ data: function( key, value ) { var parts, part, attr, name, l, elem = this[0], i = 0, data = null; // Gets all values if ( key === undefined ) { if ( this.length ) { data = jQuery.data( elem ); if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { attr = elem.attributes; for ( l = attr.length; i < l; i++ ) { name = attr[i].name; if ( !name.indexOf( "data-" ) ) { name = jQuery.camelCase( name.substring(5) ); dataAttr( elem, name, data[ name ] ); } } jQuery._data( elem, "parsedAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each(function() { jQuery.data( this, key ); }); } parts = key.split( ".", 2 ); parts[1] = parts[1] ? "." + parts[1] : ""; part = parts[1] + "!"; return jQuery.access( this, function( value ) { if ( value === undefined ) { data = this.triggerHandler( "getData" + part, [ parts[0] ] ); // Try to fetch any internally stored data first if ( data === undefined && elem ) { data = jQuery.data( elem, key ); data = dataAttr( elem, key, data ); } return data === undefined && parts[1] ? this.data( parts[0] ) : data; } parts[1] = value; this.each(function() { var self = jQuery( this ); self.triggerHandler( "setData" + part, parts ); jQuery.data( this, key, value ); self.triggerHandler( "changeData" + part, parts ); }); }, null, value, arguments.length > 1, null, false ); }, removeData: function( key ) { return this.each(function() { jQuery.removeData( this, key ); }); } }); function dataAttr( elem, key, data ) { // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = data === "true" ? true : data === "false" ? false : data === "null" ? null : // Only convert to a number if it doesn't change the string +data + "" === data ? +data : rbrace.test( data ) ? jQuery.parseJSON( data ) : data; } catch( e ) {} // Make sure we set the data so it isn't changed later jQuery.data( elem, key, data ); } else { data = undefined; } } return data; } // checks a cache object for emptiness function isEmptyDataObject( obj ) { var name; for ( name in obj ) { // if the public data object is empty, the private is still empty if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { continue; } if ( name !== "toJSON" ) { return false; } } return true; } jQuery.extend({ queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = jQuery._data( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || jQuery.isArray(data) ) { queue = jQuery._data( elem, type, jQuery.makeArray(data) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // not intended for public consumption - generates a queueHooks object, or returns the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return jQuery._data( elem, key ) || jQuery._data( elem, key, { empty: jQuery.Callbacks("once memory").add(function() { jQuery.removeData( elem, type + "queue", true ); jQuery.removeData( elem, key, true ); }) }); } }); jQuery.fn.extend({ queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[0], type ); } return data === undefined ? this : this.each(function() { var queue = jQuery.queue( this, type, data ); // ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ delay: function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = setTimeout( next, time ); hooks.stop = function() { clearTimeout( timeout ); }; }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while( i-- ) { tmp = jQuery._data( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } }); var nodeHook, boolHook, fixSpecified, rclass = /[\t\r\n]/g, rreturn = /\r/g, rtype = /^(?:button|input)$/i, rfocusable = /^(?:button|input|object|select|textarea)$/i, rclickable = /^a(?:rea|)$/i, rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, getSetAttribute = jQuery.support.getSetAttribute; jQuery.fn.extend({ attr: function( name, value ) { return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each(function() { jQuery.removeAttr( this, name ); }); }, prop: function( name, value ) { return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { name = jQuery.propFix[ name ] || name; return this.each(function() { // try/catch handles cases where IE balks (such as removing a property on window) try { this[ name ] = undefined; delete this[ name ]; } catch( e ) {} }); }, addClass: function( value ) { var classNames, i, l, elem, setClass, c, cl; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).addClass( value.call(this, j, this.className) ); }); } if ( value && typeof value === "string" ) { classNames = value.split( core_rspace ); for ( i = 0, l = this.length; i < l; i++ ) { elem = this[ i ]; if ( elem.nodeType === 1 ) { if ( !elem.className && classNames.length === 1 ) { elem.className = value; } else { setClass = " " + elem.className + " "; for ( c = 0, cl = classNames.length; c < cl; c++ ) { if ( setClass.indexOf( " " + classNames[ c ] + " " ) < 0 ) { setClass += classNames[ c ] + " "; } } elem.className = jQuery.trim( setClass ); } } } } return this; }, removeClass: function( value ) { var removes, className, elem, c, cl, i, l; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).removeClass( value.call(this, j, this.className) ); }); } if ( (value && typeof value === "string") || value === undefined ) { removes = ( value || "" ).split( core_rspace ); for ( i = 0, l = this.length; i < l; i++ ) { elem = this[ i ]; if ( elem.nodeType === 1 && elem.className ) { className = (" " + elem.className + " ").replace( rclass, " " ); // loop over each item in the removal list for ( c = 0, cl = removes.length; c < cl; c++ ) { // Remove until there is nothing to remove, while ( className.indexOf(" " + removes[ c ] + " ") >= 0 ) { className = className.replace( " " + removes[ c ] + " " , " " ); } } elem.className = value ? jQuery.trim( className ) : ""; } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isBool = typeof stateVal === "boolean"; if ( jQuery.isFunction( value ) ) { return this.each(function( i ) { jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); }); } return this.each(function() { if ( type === "string" ) { // toggle individual class names var className, i = 0, self = jQuery( this ), state = stateVal, classNames = value.split( core_rspace ); while ( (className = classNames[ i++ ]) ) { // check each className given, space separated list state = isBool ? state : !self.hasClass( className ); self[ state ? "addClass" : "removeClass" ]( className ); } } else if ( type === "undefined" || type === "boolean" ) { if ( this.className ) { // store className if set jQuery._data( this, "__className__", this.className ); } // toggle whole className this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; } }); }, hasClass: function( selector ) { var className = " " + selector + " ", i = 0, l = this.length; for ( ; i < l; i++ ) { if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { return true; } } return false; }, val: function( value ) { var hooks, ret, isFunction, elem = this[0]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { return ret; } ret = elem.value; return typeof ret === "string" ? // handle most common string cases ret.replace(rreturn, "") : // handle cases where value is null/undef or number ret == null ? "" : ret; } return; } isFunction = jQuery.isFunction( value ); return this.each(function( i ) { var val, self = jQuery(this); if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call( this, i, self.val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( jQuery.isArray( val ) ) { val = jQuery.map(val, function ( value ) { return value == null ? "" : value + ""; }); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } }); } }); jQuery.extend({ valHooks: { option: { get: function( elem ) { // attributes.value is undefined in Blackberry 4.7 but // uses .value. See #6932 var val = elem.attributes.value; return !val || val.specified ? elem.value : elem.text; } }, select: { get: function( elem ) { var value, option, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one" || index < 0, values = one ? null : [], max = one ? index + 1 : options.length, i = index < 0 ? max : one ? index : 0; // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // oldIE doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var values = jQuery.makeArray( value ); jQuery(elem).find("option").each(function() { this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; }); if ( !values.length ) { elem.selectedIndex = -1; } return values; } } }, // Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9 attrFn: {}, attr: function( elem, name, value, pass ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set attributes on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } if ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) { return jQuery( elem )[ name ]( value ); } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); // All attributes are lowercase // Grab necessary hook if one is defined if ( notxml ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); return; } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { elem.setAttribute( name, value + "" ); return value; } } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { ret = elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined return ret === null ? undefined : ret; } }, removeAttr: function( elem, value ) { var propName, attrNames, name, isBool, i = 0; if ( value && elem.nodeType === 1 ) { attrNames = value.split( core_rspace ); for ( ; i < attrNames.length; i++ ) { name = attrNames[ i ]; if ( name ) { propName = jQuery.propFix[ name ] || name; isBool = rboolean.test( name ); // See #9699 for explanation of this approach (setting first, then removal) // Do not do this for boolean attributes (see #10870) if ( !isBool ) { jQuery.attr( elem, name, "" ); } elem.removeAttribute( getSetAttribute ? name : propName ); // Set corresponding property to false for boolean attributes if ( isBool && propName in elem ) { elem[ propName ] = false; } } } } }, attrHooks: { type: { set: function( elem, value ) { // We can't allow the type property to be changed (since it causes problems in IE) if ( rtype.test( elem.nodeName ) && elem.parentNode ) { jQuery.error( "type property can't be changed" ); } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { // Setting the type on a radio button after the value resets the value in IE6-9 // Reset value to it's default in case type is set after value // This is for element creation var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } }, // Use the value property for back compat // Use the nodeHook for button elements in IE6/7 (#1954) value: { get: function( elem, name ) { if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { return nodeHook.get( elem, name ); } return name in elem ? elem.value : null; }, set: function( elem, value, name ) { if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { return nodeHook.set( elem, value, name ); } // Does not return so that setAttribute is also used elem.value = value; } } }, propFix: { tabindex: "tabIndex", readonly: "readOnly", "for": "htmlFor", "class": "className", maxlength: "maxLength", cellspacing: "cellSpacing", cellpadding: "cellPadding", rowspan: "rowSpan", colspan: "colSpan", usemap: "useMap", frameborder: "frameBorder", contenteditable: "contentEditable" }, prop: function( elem, name, value ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set properties on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); if ( notxml ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { return ( elem[ name ] = value ); } } else { if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { return elem[ name ]; } } }, propHooks: { tabIndex: { get: function( elem ) { // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ var attributeNode = elem.getAttributeNode("tabindex"); return attributeNode && attributeNode.specified ? parseInt( attributeNode.value, 10 ) : rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? 0 : undefined; } } } }); // Hook for boolean attributes boolHook = { get: function( elem, name ) { // Align boolean attributes with corresponding properties // Fall back to attribute presence where some booleans are not supported var attrNode, property = jQuery.prop( elem, name ); return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ? name.toLowerCase() : undefined; }, set: function( elem, value, name ) { var propName; if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { // value is true since we know at this point it's type boolean and not false // Set boolean attributes to the same name and set the DOM property propName = jQuery.propFix[ name ] || name; if ( propName in elem ) { // Only set the IDL specifically if it already exists on the element elem[ propName ] = true; } elem.setAttribute( name, name.toLowerCase() ); } return name; } }; // IE6/7 do not support getting/setting some attributes with get/setAttribute if ( !getSetAttribute ) { fixSpecified = { name: true, id: true, coords: true }; // Use this for any attribute in IE6/7 // This fixes almost every IE6/7 issue nodeHook = jQuery.valHooks.button = { get: function( elem, name ) { var ret; ret = elem.getAttributeNode( name ); return ret && ( fixSpecified[ name ] ? ret.value !== "" : ret.specified ) ? ret.value : undefined; }, set: function( elem, value, name ) { // Set the existing or create a new attribute node var ret = elem.getAttributeNode( name ); if ( !ret ) { ret = document.createAttribute( name ); elem.setAttributeNode( ret ); } return ( ret.value = value + "" ); } }; // Set width and height to auto instead of 0 on empty string( Bug #8150 ) // This is for removals jQuery.each([ "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { set: function( elem, value ) { if ( value === "" ) { elem.setAttribute( name, "auto" ); return value; } } }); }); // Set contenteditable to false on removals(#10429) // Setting to empty string throws an error as an invalid value jQuery.attrHooks.contenteditable = { get: nodeHook.get, set: function( elem, value, name ) { if ( value === "" ) { value = "false"; } nodeHook.set( elem, value, name ); } }; } // Some attributes require a special call on IE if ( !jQuery.support.hrefNormalized ) { jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { get: function( elem ) { var ret = elem.getAttribute( name, 2 ); return ret === null ? undefined : ret; } }); }); } if ( !jQuery.support.style ) { jQuery.attrHooks.style = { get: function( elem ) { // Return undefined in the case of empty string // Normalize to lowercase since IE uppercases css property names return elem.style.cssText.toLowerCase() || undefined; }, set: function( elem, value ) { return ( elem.style.cssText = value + "" ); } }; } // Safari mis-reports the default selected property of an option // Accessing the parent's selectedIndex property fixes it if ( !jQuery.support.optSelected ) { jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { get: function( elem ) { var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } return null; } }); } // IE6/7 call enctype encoding if ( !jQuery.support.enctype ) { jQuery.propFix.enctype = "encoding"; } // Radios and checkboxes getter/setter if ( !jQuery.support.checkOn ) { jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { get: function( elem ) { // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified return elem.getAttribute("value") === null ? "on" : elem.value; } }; }); } jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { set: function( elem, value ) { if ( jQuery.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); } } }); }); var rformElems = /^(?:textarea|input|select)$/i, rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/, rhoverHack = /(?:^|\s)hover(\.\S+|)\b/, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, hoverHack = function( events ) { return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" ); }; /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { add: function( elem, types, handler, data, selector ) { var elemData, eventHandle, events, t, tns, type, namespaces, handleObj, handleObjIn, handlers, special; // Don't attach events to noData or text/comment nodes (allow plain objects tho) if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first events = elemData.events; if ( !events ) { elemData.events = events = {}; } eventHandle = elemData.handle; if ( !eventHandle ) { elemData.handle = eventHandle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : undefined; }; // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events eventHandle.elem = elem; } // Handle multiple events separated by a space // jQuery(...).bind("mouseover mouseout", fn); types = jQuery.trim( hoverHack(types) ).split( " " ); for ( t = 0; t < types.length; t++ ) { tns = rtypenamespace.exec( types[t] ) || []; type = tns[1]; namespaces = ( tns[2] || "" ).split( "." ).sort(); // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend({ type: type, origType: tns[1], data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join(".") }, handleObjIn ); // Init the event handler queue if we're the first handlers = events[ type ]; if ( !handlers ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener/attachEvent if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { // Bind the global event handler to the element if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, global: {}, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var t, tns, type, origType, namespaces, origCount, j, events, special, eventType, handleObj, elemData = jQuery.hasData( elem ) && jQuery._data( elem ); if ( !elemData || !(events = elemData.events) ) { return; } // Once for each type.namespace in types; type may be omitted types = jQuery.trim( hoverHack( types || "" ) ).split(" "); for ( t = 0; t < types.length; t++ ) { tns = rtypenamespace.exec( types[t] ) || []; type = origType = tns[1]; namespaces = tns[2]; // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector? special.delegateType : special.bindType ) || type; eventType = events[ type ] || []; origCount = eventType.length; namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null; // Remove matching events for ( j = 0; j < eventType.length; j++ ) { handleObj = eventType[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !namespaces || namespaces.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { eventType.splice( j--, 1 ); if ( handleObj.selector ) { eventType.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( eventType.length === 0 && origCount !== eventType.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { delete elemData.handle; // removeData also checks for emptiness and clears the expando if empty // so use it instead of delete jQuery.removeData( elem, "events", true ); } }, // Events that are safe to short-circuit if no handlers are attached. // Native DOM events should not be added, they may have inline handlers. customEvent: { "getData": true, "setData": true, "changeData": true }, trigger: function( event, data, elem, onlyHandlers ) { // Don't do events on text and comment nodes if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) { return; } // Event object or event type var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType, type = event.type || event, namespaces = []; // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf( "!" ) >= 0 ) { // Exclusive events trigger only for the exact event (no namespaces) type = type.slice(0, -1); exclusive = true; } if ( type.indexOf( "." ) >= 0 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split("."); type = namespaces.shift(); namespaces.sort(); } if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { // No jQuery handlers for this event type, and it can't have inline handlers return; } // Caller can pass in an Event, Object, or just an event type string event = typeof event === "object" ? // jQuery.Event object event[ jQuery.expando ] ? event : // Object literal new jQuery.Event( type, event ) : // Just the event type (string) new jQuery.Event( type ); event.type = type; event.isTrigger = true; event.exclusive = exclusive; event.namespace = namespaces.join( "." ); event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null; ontype = type.indexOf( ":" ) < 0 ? "on" + type : ""; // Handle a global trigger if ( !elem ) { // TODO: Stop taunting the data cache; remove global events and always attach to document cache = jQuery.cache; for ( i in cache ) { if ( cache[ i ].events && cache[ i ].events[ type ] ) { jQuery.event.trigger( event, data, cache[ i ].handle.elem, true ); } } return; } // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data != null ? jQuery.makeArray( data ) : []; data.unshift( event ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) eventPath = [[ elem, special.bindType || type ]]; if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode; for ( old = elem; cur; cur = cur.parentNode ) { eventPath.push([ cur, bubbleType ]); old = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( old === (elem.ownerDocument || document) ) { eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]); } } // Fire handlers on the event path for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) { cur = eventPath[i][0]; event.type = eventPath[i][1]; handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Note that this is a bare JS function and not a jQuery handler handle = ontype && cur[ ontype ]; if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { event.preventDefault(); } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) && !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { // Call a native DOM method on the target with the same name name as the event. // Can't use an .isFunction() check here because IE6/7 fails that test. // Don't do default actions on window, that's where global variables be (#6170) // IE<9 dies on focus/blur to hidden element (#1486) if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method old = elem[ ontype ]; if ( old ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; elem[ type ](); jQuery.event.triggered = undefined; if ( old ) { elem[ ontype ] = old; } } } } return event.result; }, dispatch: function( event ) { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event || window.event ); var i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related, handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []), delegateCount = handlers.delegateCount, args = core_slice.call( arguments ), run_all = !event.exclusive && !event.namespace, special = jQuery.event.special[ event.type ] || {}, handlerQueue = []; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[0] = event; event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers that should run if there are delegated events // Avoid non-left-click bubbling in Firefox (#3861) if ( delegateCount && !(event.button && event.type === "click") ) { for ( cur = event.target; cur != this; cur = cur.parentNode || this ) { // Don't process clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764) if ( cur.disabled !== true || event.type !== "click" ) { selMatch = {}; matches = []; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; sel = handleObj.selector; if ( selMatch[ sel ] === undefined ) { selMatch[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) >= 0 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( selMatch[ sel ] ) { matches.push( handleObj ); } } if ( matches.length ) { handlerQueue.push({ elem: cur, matches: matches }); } } } } // Add the remaining (directly-bound) handlers if ( handlers.length > delegateCount ) { handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) }); } // Run delegates first; they may want to stop propagation beneath us for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) { matched = handlerQueue[ i ]; event.currentTarget = matched.elem; for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) { handleObj = matched.matches[ j ]; // Triggered event must either 1) be non-exclusive and have no namespace, or // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) { event.data = handleObj.data; event.handleObj = handleObj; ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) .apply( matched.elem, args ); if ( ret !== undefined ) { event.result = ret; if ( ret === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, // Includes some event props shared by KeyEvent and MouseEvent // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 *** props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function( event, original ) { // Add which for key events if ( event.which == null ) { event.which = original.charCode != null ? original.charCode : original.keyCode; } return event; } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function( event, original ) { var eventDoc, doc, body, button = original.button, fromElement = original.fromElement; // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && original.clientX != null ) { eventDoc = event.target.ownerDocument || document; doc = eventDoc.documentElement; body = eventDoc.body; event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); } // Add relatedTarget, if necessary if ( !event.relatedTarget && fromElement ) { event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && button !== undefined ) { event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); } return event; } }, fix: function( event ) { if ( event[ jQuery.expando ] ) { return event; } // Create a writable copy of the event object and normalize some properties var i, prop, originalEvent = event, fixHook = jQuery.event.fixHooks[ event.type ] || {}, copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; event = jQuery.Event( originalEvent ); for ( i = copy.length; i; ) { prop = copy[ --i ]; event[ prop ] = originalEvent[ prop ]; } // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2) if ( !event.target ) { event.target = originalEvent.srcElement || document; } // Target should not be a text node (#504, Safari) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } // For mouse/key events, metaKey==false if it's undefined (#3368, #11328; IE6/7/8) event.metaKey = !!event.metaKey; return fixHook.filter? fixHook.filter( event, originalEvent ) : event; }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { delegateType: "focusin" }, blur: { delegateType: "focusout" }, beforeunload: { setup: function( data, namespaces, eventHandle ) { // We only want to do this special case on windows if ( jQuery.isWindow( this ) ) { this.onbeforeunload = eventHandle; } }, teardown: function( namespaces, eventHandle ) { if ( this.onbeforeunload === eventHandle ) { this.onbeforeunload = null; } } } }, simulate: function( type, elem, event, bubble ) { // Piggyback on a donor event to simulate a different one. // Fake originalEvent to avoid donor's stopPropagation, but if the // simulated event prevents default then we do the same on the donor. var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true, originalEvent: {} } ); if ( bubble ) { jQuery.event.trigger( e, null, elem ); } else { jQuery.event.dispatch.call( elem, e ); } if ( e.isDefaultPrevented() ) { event.preventDefault(); } } }; // Some plugins are using, but it's undocumented/deprecated and will be removed. // The 1.7 special event interface should provide all the hooks needed now. jQuery.event.handle = jQuery.event.dispatch; jQuery.removeEvent = document.removeEventListener ? function( elem, type, handle ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, handle, false ); } } : function( elem, type, handle ) { var name = "on" + type; if ( elem.detachEvent ) { // #8545, #7054, preventing memory leaks for custom events in IE6-8 // detachEvent needed property on element, by name of that event, to properly expose it to GC if ( typeof elem[ name ] === "undefined" ) { elem[ name ] = null; } elem.detachEvent( name, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !(this instanceof jQuery.Event) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; function returnFalse() { return false; } function returnTrue() { return true; } // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if preventDefault exists run it on the original event if ( e.preventDefault ) { e.preventDefault(); // otherwise set the returnValue property of the original event to false (IE) } else { e.returnValue = false; } }, stopPropagation: function() { this.isPropagationStopped = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if stopPropagation exists run it on the original event if ( e.stopPropagation ) { e.stopPropagation(); } // otherwise set the cancelBubble property of the original event to true (IE) e.cancelBubble = true; }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation(); }, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse }; // Create mouseenter/leave events using mouseover/out and event-time checks jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj, selector = handleObj.selector; // For mousenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || (related !== target && !jQuery.contains( target, related )) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; }); // IE submit delegation if ( !jQuery.support.submitBubbles ) { jQuery.event.special.submit = { setup: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Lazy-add a submit handler when a descendant form may potentially be submitted jQuery.event.add( this, "click._submit keypress._submit", function( e ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; if ( form && !jQuery._data( form, "_submit_attached" ) ) { jQuery.event.add( form, "submit._submit", function( event ) { event._submit_bubble = true; }); jQuery._data( form, "_submit_attached", true ); } }); // return undefined since we don't need an event listener }, postDispatch: function( event ) { // If form was submitted by the user, bubble the event up the tree if ( event._submit_bubble ) { delete event._submit_bubble; if ( this.parentNode && !event.isTrigger ) { jQuery.event.simulate( "submit", this.parentNode, event, true ); } } }, teardown: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Remove delegated handlers; cleanData eventually reaps submit handlers attached above jQuery.event.remove( this, "._submit" ); } }; } // IE change delegation and checkbox/radio fix if ( !jQuery.support.changeBubbles ) { jQuery.event.special.change = { setup: function() { if ( rformElems.test( this.nodeName ) ) { // IE doesn't fire change on a check/radio until blur; trigger it on click // after a propertychange. Eat the blur-change in special.change.handle. // This still fires onchange a second time for check/radio after blur. if ( this.type === "checkbox" || this.type === "radio" ) { jQuery.event.add( this, "propertychange._change", function( event ) { if ( event.originalEvent.propertyName === "checked" ) { this._just_changed = true; } }); jQuery.event.add( this, "click._change", function( event ) { if ( this._just_changed && !event.isTrigger ) { this._just_changed = false; } // Allow triggered, simulated change events (#11500) jQuery.event.simulate( "change", this, event, true ); }); } return false; } // Delegated event; lazy-add a change handler on descendant inputs jQuery.event.add( this, "beforeactivate._change", function( e ) { var elem = e.target; if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "_change_attached" ) ) { jQuery.event.add( elem, "change._change", function( event ) { if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { jQuery.event.simulate( "change", this.parentNode, event, true ); } }); jQuery._data( elem, "_change_attached", true ); } }); }, handle: function( event ) { var elem = event.target; // Swallow native change events from checkbox/radio, we already triggered them above if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { return event.handleObj.handler.apply( this, arguments ); } }, teardown: function() { jQuery.event.remove( this, "._change" ); return !rformElems.test( this.nodeName ); } }; } // Create "bubbling" focus and blur events if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler while someone wants focusin/focusout var attaches = 0, handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }; jQuery.event.special[ fix ] = { setup: function() { if ( attaches++ === 0 ) { document.addEventListener( orig, handler, true ); } }, teardown: function() { if ( --attaches === 0 ) { document.removeEventListener( orig, handler, true ); } } }; }); } jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // && selector != null // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, one: function( types, selector, data, fn ) { return this.on( types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each(function() { jQuery.event.remove( this, types, fn, selector ); }); }, bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, live: function( types, data, fn ) { jQuery( this.context ).on( types, this.selector, data, fn ); return this; }, die: function( types, fn ) { jQuery( this.context ).off( types, this.selector || "**", fn ); return this; }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { if ( this[0] ) { return jQuery.event.trigger( type, data, this[0], true ); } }, toggle: function( fn ) { // Save reference to arguments for access in closure var args = arguments, guid = fn.guid || jQuery.guid++, i = 0, toggler = function( event ) { // Figure out which function to execute var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); // Make sure that clicks stop event.preventDefault(); // and execute the function return args[ lastToggle ].apply( this, arguments ) || false; }; // link all the functions, so any of them can unbind this click handler toggler.guid = guid; while ( i < args.length ) { args[ i++ ].guid = guid; } return this.click( toggler ); }, hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); } }); jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { if ( fn == null ) { fn = data; data = null; } return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; if ( rkeyEvent.test( name ) ) { jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks; } if ( rmouseEvent.test( name ) ) { jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks; } }); /*! * Sizzle CSS Selector Engine * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://sizzlejs.com/ */ (function( window, undefined ) { var cachedruns, dirruns, sortOrder, siblingCheck, assertGetIdNotName, document = window.document, docElem = document.documentElement, strundefined = "undefined", hasDuplicate = false, baseHasDuplicate = true, done = 0, slice = [].slice, push = [].push, expando = ( "sizcache" + Math.random() ).replace( ".", "" ), // Regex // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // http://www.w3.org/TR/css3-syntax/#characters characterEncoding = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+", // Loosely modeled on CSS identifier characters // An unquoted value should be a CSS identifier (http://www.w3.org/TR/css3-selectors/#attribute-selectors) // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier identifier = characterEncoding.replace( "w", "w#" ), // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors operators = "([*^$|!~]?=)", attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|((?:[^,]|\\\\,|(?:,(?=[^\\[]*\\]))|(?:,(?=[^\\(]*\\))))*))\\)|)", pos = ":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\)|)(?=[^-]|$)", combinators = whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*", groups = "(?=[^\\x20\\t\\r\\n\\f])(?:\\\\.|" + attributes + "|" + pseudos.replace( 2, 7 ) + "|[^\\\\(),])+", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcombinators = new RegExp( "^" + combinators ), // All simple (non-comma) selectors, excluding insignifant trailing whitespace rgroups = new RegExp( groups + "?(?=" + whitespace + "*,|$)", "g" ), // A selector, or everything after leading whitespace // Optionally followed in either case by a ")" for terminating sub-selectors rselector = new RegExp( "^(?:(?!,)(?:(?:^|,)" + whitespace + "*" + groups + ")*?|" + whitespace + "*(.*?))(\\)|$)" ), // All combinators and selector components (attribute test, tag, pseudo, etc.), the latter appearing together when consecutive rtokens = new RegExp( groups.slice( 19, -6 ) + "\\x20\\t\\r\\n\\f>+~])+|" + combinators, "g" ), // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/, rsibling = /[\x20\t\r\n\f]*[+~]/, rendsWithNot = /:not\($/, rheader = /h\d/i, rinputs = /input|select|textarea|button/i, rbackslash = /\\(?!\\)/g, matchExpr = { "ID": new RegExp( "^#(" + characterEncoding + ")" ), "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ), "TAG": new RegExp( "^(" + characterEncoding.replace( "[-", "[-\\*" ) + ")" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|nth|last|first)-child(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "POS": new RegExp( pos, "ig" ), // For use in libraries implementing .is() "needsContext": new RegExp( "^" + whitespace + "*[>+~]|" + pos, "i" ) }, classCache = {}, cachedClasses = [], compilerCache = {}, cachedSelectors = [], // Mark a function for use in filtering markFunction = function( fn ) { fn.sizzleFilter = true; return fn; }, // Returns a function to use in pseudos for input types createInputFunction = function( type ) { return function( elem ) { // Check the input's nodeName and type return elem.nodeName.toLowerCase() === "input" && elem.type === type; }; }, // Returns a function to use in pseudos for buttons createButtonFunction = function( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; }, // Used for testing something on an element assert = function( fn ) { var pass = false, div = document.createElement("div"); try { pass = fn( div ); } catch (e) {} // release memory in IE div = null; return pass; }, // Check if attributes should be retrieved by attribute nodes assertAttributes = assert(function( div ) { div.innerHTML = "<select></select>"; var type = typeof div.lastChild.getAttribute("multiple"); // IE8 returns a string for some attributes even when not present return type !== "boolean" && type !== "string"; }), // Check if getElementById returns elements by name // Check if getElementsByName privileges form controls or returns elements by ID assertUsableName = assert(function( div ) { // Inject content div.id = expando + 0; div.innerHTML = "<a name='" + expando + "'></a><div name='" + expando + "'></div>"; docElem.insertBefore( div, docElem.firstChild ); // Test var pass = document.getElementsByName && // buggy browsers will return fewer than the correct 2 document.getElementsByName( expando ).length === // buggy browsers will return more than the correct 0 2 + document.getElementsByName( expando + 0 ).length; assertGetIdNotName = !document.getElementById( expando ); // Cleanup docElem.removeChild( div ); return pass; }), // Check if the browser returns only elements // when doing getElementsByTagName("*") assertTagNameNoComments = assert(function( div ) { div.appendChild( document.createComment("") ); return div.getElementsByTagName("*").length === 0; }), // Check if getAttribute returns normalized href attributes assertHrefNotNormalized = assert(function( div ) { div.innerHTML = "<a href='#'></a>"; return div.firstChild && typeof div.firstChild.getAttribute !== strundefined && div.firstChild.getAttribute("href") === "#"; }), // Check if getElementsByClassName can be trusted assertUsableClassName = assert(function( div ) { // Opera can't find a second classname (in 9.6) div.innerHTML = "<div class='hidden e'></div><div class='hidden'></div>"; if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { return false; } // Safari caches class attributes, doesn't catch changes (in 3.2) div.lastChild.className = "e"; return div.getElementsByClassName("e").length !== 1; }); var Sizzle = function( selector, context, results, seed ) { results = results || []; context = context || document; var match, elem, xml, m, nodeType = context.nodeType; if ( nodeType !== 1 && nodeType !== 9 ) { return []; } if ( !selector || typeof selector !== "string" ) { return results; } xml = isXML( context ); if ( !xml && !seed ) { if ( (match = rquickExpr.exec( selector )) ) { // Speed-up: Sizzle("#ID") if ( (m = match[1]) ) { if ( nodeType === 9 ) { elem = context.getElementById( m ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE, Opera, and Webkit return items // by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } } else { // Context is not a document if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Speed-up: Sizzle("TAG") } else if ( match[2] ) { push.apply( results, slice.call(context.getElementsByTagName( selector ), 0) ); return results; // Speed-up: Sizzle(".CLASS") } else if ( (m = match[3]) && assertUsableClassName && context.getElementsByClassName ) { push.apply( results, slice.call(context.getElementsByClassName( m ), 0) ); return results; } } } // All others return select( selector, context, results, seed, xml ); }; var Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, match: matchExpr, order: [ "ID", "TAG" ], attrHandle: {}, createPseudo: markFunction, find: { "ID": assertGetIdNotName ? function( id, context, xml ) { if ( typeof context.getElementById !== strundefined && !xml ) { var m = context.getElementById( id ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 return m && m.parentNode ? [m] : []; } } : function( id, context, xml ) { if ( typeof context.getElementById !== strundefined && !xml ) { var m = context.getElementById( id ); return m ? m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ? [m] : undefined : []; } }, "TAG": assertTagNameNoComments ? function( tag, context ) { if ( typeof context.getElementsByTagName !== strundefined ) { return context.getElementsByTagName( tag ); } } : function( tag, context ) { var results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { var elem, tmp = [], i = 0; for ( ; (elem = results[i]); i++ ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; } }, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[1] = match[1].replace( rbackslash, "" ); // Move the given value to match[3] whether quoted or unquoted match[3] = ( match[4] || match[5] || "" ).replace( rbackslash, "" ); if ( match[2] === "~=" ) { match[3] = " " + match[3] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr.CHILD 1 type (only|nth|...) 2 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 3 xn-component of xn+y argument ([+-]?\d*n|) 4 sign of xn-component 5 x of xn-component 6 sign of y-component 7 y of y-component */ match[1] = match[1].toLowerCase(); if ( match[1] === "nth" ) { // nth-child requires argument if ( !match[2] ) { Sizzle.error( match[0] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[3] = +( match[3] ? match[4] + (match[5] || 1) : 2 * ( match[2] === "even" || match[2] === "odd" ) ); match[4] = +( ( match[6] + match[7] ) || match[2] === "odd" ); // other types prohibit arguments } else if ( match[2] ) { Sizzle.error( match[0] ); } return match; }, "PSEUDO": function( match ) { var argument, unquoted = match[4]; if ( matchExpr["CHILD"].test( match[0] ) ) { return null; } // Relinquish our claim on characters in `unquoted` from a closing parenthesis on if ( unquoted && (argument = rselector.exec( unquoted )) && argument.pop() ) { match[0] = match[0].slice( 0, argument[0].length - unquoted.length - 1 ); unquoted = argument[0].slice( 0, -1 ); } // Quoted or unquoted, we have the full argument // Return only captures needed by the pseudo filter method (type and argument) match.splice( 2, 3, unquoted || match[3] ); return match; } }, filter: { "ID": assertGetIdNotName ? function( id ) { id = id.replace( rbackslash, "" ); return function( elem ) { return elem.getAttribute("id") === id; }; } : function( id ) { id = id.replace( rbackslash, "" ); return function( elem ) { var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); return node && node.value === id; }; }, "TAG": function( nodeName ) { if ( nodeName === "*" ) { return function() { return true; }; } nodeName = nodeName.replace( rbackslash, "" ).toLowerCase(); return function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className ]; if ( !pattern ) { pattern = classCache[ className ] = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" ); cachedClasses.push( className ); // Avoid too large of a cache if ( cachedClasses.length > Expr.cacheLength ) { delete classCache[ cachedClasses.shift() ]; } } return function( elem ) { return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" ); }; }, "ATTR": function( name, operator, check ) { if ( !operator ) { return function( elem ) { return Sizzle.attr( elem, name ) != null; }; } return function( elem ) { var result = Sizzle.attr( elem, name ), value = result + ""; if ( result == null ) { return operator === "!="; } switch ( operator ) { case "=": return value === check; case "!=": return value !== check; case "^=": return check && value.indexOf( check ) === 0; case "*=": return check && value.indexOf( check ) > -1; case "$=": return check && value.substr( value.length - check.length ) === check; case "~=": return ( " " + value + " " ).indexOf( check ) > -1; case "|=": return value === check || value.substr( 0, check.length + 1 ) === check + "-"; } }; }, "CHILD": function( type, argument, first, last ) { if ( type === "nth" ) { var doneName = done++; return function( elem ) { var parent, diff, count = 0, node = elem; if ( first === 1 && last === 0 ) { return true; } parent = elem.parentNode; if ( parent && (parent[ expando ] !== doneName || !elem.sizset) ) { for ( node = parent.firstChild; node; node = node.nextSibling ) { if ( node.nodeType === 1 ) { node.sizset = ++count; if ( node === elem ) { break; } } } parent[ expando ] = doneName; } diff = elem.sizset - last; if ( first === 0 ) { return diff === 0; } else { return ( diff % first === 0 && diff / first >= 0 ); } }; } return function( elem ) { var node = elem; switch ( type ) { case "only": case "first": while ( (node = node.previousSibling) ) { if ( node.nodeType === 1 ) { return false; } } if ( type === "first" ) { return true; } node = elem; /* falls through */ case "last": while ( (node = node.nextSibling) ) { if ( node.nodeType === 1 ) { return false; } } return true; } }; }, "PSEUDO": function( pseudo, argument, context, xml ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters var fn = Expr.pseudos[ pseudo ] || Expr.pseudos[ pseudo.toLowerCase() ]; if ( !fn ) { Sizzle.error( "unsupported pseudo: " + pseudo ); } // The user may set fn.sizzleFilter to indicate // that arguments are needed to create the filter function // just as Sizzle does if ( !fn.sizzleFilter ) { return fn; } return fn( argument, context, xml ); } }, pseudos: { "not": markFunction(function( selector, context, xml ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var matcher = compile( selector.replace( rtrim, "$1" ), context, xml ); return function( elem ) { return !matcher( elem ); }; }), "enabled": function( elem ) { return elem.disabled === false; }, "disabled": function( elem ) { return elem.disabled === true; }, "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, "parent": function( elem ) { return !Expr.pseudos["empty"]( elem ); }, "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), // not comment, processing instructions, or others // Thanks to Diego Perini for the nodeName shortcut // Greater than "@" means alpha characters (specifically not starting with "#" or "?") var nodeType; elem = elem.firstChild; while ( elem ) { if ( elem.nodeName > "@" || (nodeType = elem.nodeType) === 3 || nodeType === 4 ) { return false; } elem = elem.nextSibling; } return true; }, "contains": markFunction(function( text ) { return function( elem ) { return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; }; }), "has": markFunction(function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; }), "header": function( elem ) { return rheader.test( elem.nodeName ); }, "text": function( elem ) { var type, attr; // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) // use getAttribute instead to test this case return elem.nodeName.toLowerCase() === "input" && (type = elem.type) === "text" && ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === type ); }, // Input types "radio": createInputFunction("radio"), "checkbox": createInputFunction("checkbox"), "file": createInputFunction("file"), "password": createInputFunction("password"), "image": createInputFunction("image"), "submit": createButtonFunction("submit"), "reset": createButtonFunction("reset"), "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "focus": function( elem ) { var doc = elem.ownerDocument; return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href); }, "active": function( elem ) { return elem === elem.ownerDocument.activeElement; } }, setFilters: { "first": function( elements, argument, not ) { return not ? elements.slice( 1 ) : [ elements[0] ]; }, "last": function( elements, argument, not ) { var elem = elements.pop(); return not ? elements : [ elem ]; }, "even": function( elements, argument, not ) { var results = [], i = not ? 1 : 0, len = elements.length; for ( ; i < len; i = i + 2 ) { results.push( elements[i] ); } return results; }, "odd": function( elements, argument, not ) { var results = [], i = not ? 0 : 1, len = elements.length; for ( ; i < len; i = i + 2 ) { results.push( elements[i] ); } return results; }, "lt": function( elements, argument, not ) { return not ? elements.slice( +argument ) : elements.slice( 0, +argument ); }, "gt": function( elements, argument, not ) { return not ? elements.slice( 0, +argument + 1 ) : elements.slice( +argument + 1 ); }, "eq": function( elements, argument, not ) { var elem = elements.splice( +argument, 1 ); return not ? elements : elem; } } }; // Deprecated Expr.setFilters["nth"] = Expr.setFilters["eq"]; // Back-compat Expr.filters = Expr.pseudos; // IE6/7 return a modified href if ( !assertHrefNotNormalized ) { Expr.attrHandle = { "href": function( elem ) { return elem.getAttribute( "href", 2 ); }, "type": function( elem ) { return elem.getAttribute("type"); } }; } // Add getElementsByName if usable if ( assertUsableName ) { Expr.order.push("NAME"); Expr.find["NAME"] = function( name, context ) { if ( typeof context.getElementsByName !== strundefined ) { return context.getElementsByName( name ); } }; } // Add getElementsByClassName if usable if ( assertUsableClassName ) { Expr.order.splice( 1, 0, "CLASS" ); Expr.find["CLASS"] = function( className, context, xml ) { if ( typeof context.getElementsByClassName !== strundefined && !xml ) { return context.getElementsByClassName( className ); } }; } // If slice is not available, provide a backup try { slice.call( docElem.childNodes, 0 )[0].nodeType; } catch ( e ) { slice = function( i ) { var elem, results = []; for ( ; (elem = this[i]); i++ ) { results.push( elem ); } return results; }; } var isXML = Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; // Element contains another var contains = Sizzle.contains = docElem.compareDocumentPosition ? function( a, b ) { return !!( a.compareDocumentPosition( b ) & 16 ); } : docElem.contains ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && adown.contains && adown.contains(bup) ); } : function( a, b ) { while ( (b = b.parentNode) ) { if ( b === a ) { return true; } } return false; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ var getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( nodeType ) { if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (see #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes } else { // If no nodeType, this is expected to be an array for ( ; (node = elem[i]); i++ ) { // Do not traverse comment nodes ret += getText( node ); } } return ret; }; Sizzle.attr = function( elem, name ) { var attr, xml = isXML( elem ); if ( !xml ) { name = name.toLowerCase(); } if ( Expr.attrHandle[ name ] ) { return Expr.attrHandle[ name ]( elem ); } if ( assertAttributes || xml ) { return elem.getAttribute( name ); } attr = elem.getAttributeNode( name ); return attr ? typeof elem[ name ] === "boolean" ? elem[ name ] ? name : null : attr.specified ? attr.value : null : null; }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; // Check if the JavaScript engine is using some sort of // optimization where it does not always call our comparision // function. If that is the case, discard the hasDuplicate value. // Thus far that includes Google Chrome. [0, 0].sort(function() { return (baseHasDuplicate = 0); }); if ( docElem.compareDocumentPosition ) { sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; return 0; } return ( !a.compareDocumentPosition || !b.compareDocumentPosition ? a.compareDocumentPosition : a.compareDocumentPosition(b) & 4 ) ? -1 : 1; }; } else { sortOrder = function( a, b ) { // The nodes are identical, we can exit early if ( a === b ) { hasDuplicate = true; return 0; // Fallback to using sourceIndex (in IE) if it's available on both nodes } else if ( a.sourceIndex && b.sourceIndex ) { return a.sourceIndex - b.sourceIndex; } var al, bl, ap = [], bp = [], aup = a.parentNode, bup = b.parentNode, cur = aup; // If the nodes are siblings (or identical) we can do a quick check if ( aup === bup ) { return siblingCheck( a, b ); // If no parents were found then the nodes are disconnected } else if ( !aup ) { return -1; } else if ( !bup ) { return 1; } // Otherwise they're somewhere else in the tree so we need // to build up a full list of the parentNodes for comparison while ( cur ) { ap.unshift( cur ); cur = cur.parentNode; } cur = bup; while ( cur ) { bp.unshift( cur ); cur = cur.parentNode; } al = ap.length; bl = bp.length; // Start walking down the tree looking for a discrepancy for ( var i = 0; i < al && i < bl; i++ ) { if ( ap[i] !== bp[i] ) { return siblingCheck( ap[i], bp[i] ); } } // We ended someplace up the tree so do a sibling check return i === al ? siblingCheck( a, bp[i], -1 ) : siblingCheck( ap[i], b, 1 ); }; siblingCheck = function( a, b, ret ) { if ( a === b ) { return ret; } var cur = a.nextSibling; while ( cur ) { if ( cur === b ) { return -1; } cur = cur.nextSibling; } return 1; }; } // Document sorting and removing duplicates Sizzle.uniqueSort = function( results ) { var elem, i = 1; if ( sortOrder ) { hasDuplicate = baseHasDuplicate; results.sort( sortOrder ); if ( hasDuplicate ) { for ( ; (elem = results[i]); i++ ) { if ( elem === results[ i - 1 ] ) { results.splice( i--, 1 ); } } } } return results; }; function multipleContexts( selector, contexts, results, seed ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results, seed ); } } function handlePOSGroup( selector, posfilter, argument, contexts, seed, not ) { var results, fn = Expr.setFilters[ posfilter.toLowerCase() ]; if ( !fn ) { Sizzle.error( posfilter ); } if ( selector || !(results = seed) ) { multipleContexts( selector || "*", contexts, (results = []), seed ); } return results.length > 0 ? fn( results, argument, not ) : []; } function handlePOS( selector, context, results, seed, groups ) { var match, not, anchor, ret, elements, currentContexts, part, lastIndex, i = 0, len = groups.length, rpos = matchExpr["POS"], // This is generated here in case matchExpr["POS"] is extended rposgroups = new RegExp( "^" + rpos.source + "(?!" + whitespace + ")", "i" ), // This is for making sure non-participating // matching groups are represented cross-browser (IE6-8) setUndefined = function() { var i = 1, len = arguments.length - 2; for ( ; i < len; i++ ) { if ( arguments[i] === undefined ) { match[i] = undefined; } } }; for ( ; i < len; i++ ) { // Reset regex index to 0 rpos.exec(""); selector = groups[i]; ret = []; anchor = 0; elements = seed; while ( (match = rpos.exec( selector )) ) { lastIndex = rpos.lastIndex = match.index + match[0].length; if ( lastIndex > anchor ) { part = selector.slice( anchor, match.index ); anchor = lastIndex; currentContexts = [ context ]; if ( rcombinators.test(part) ) { if ( elements ) { currentContexts = elements; } elements = seed; } if ( (not = rendsWithNot.test( part )) ) { part = part.slice( 0, -5 ).replace( rcombinators, "$&*" ); } if ( match.length > 1 ) { match[0].replace( rposgroups, setUndefined ); } elements = handlePOSGroup( part, match[1], match[2], currentContexts, elements, not ); } } if ( elements ) { ret = ret.concat( elements ); if ( (part = selector.slice( anchor )) && part !== ")" ) { if ( rcombinators.test(part) ) { multipleContexts( part, ret, results, seed ); } else { Sizzle( part, context, results, seed ? seed.concat(elements) : elements ); } } else { push.apply( results, ret ); } } else { Sizzle( selector, context, results, seed ); } } // Do not sort if this is a single filter return len === 1 ? results : Sizzle.uniqueSort( results ); } function tokenize( selector, context, xml ) { var tokens, soFar, type, groups = [], i = 0, // Catch obvious selector issues: terminal ")"; nonempty fallback match // rselector never fails to match *something* match = rselector.exec( selector ), matched = !match.pop() && !match.pop(), selectorGroups = matched && selector.match( rgroups ) || [""], preFilters = Expr.preFilter, filters = Expr.filter, checkContext = !xml && context !== document; for ( ; (soFar = selectorGroups[i]) != null && matched; i++ ) { groups.push( tokens = [] ); // Need to make sure we're within a narrower context if necessary // Adding a descendant combinator will generate what is needed if ( checkContext ) { soFar = " " + soFar; } while ( soFar ) { matched = false; // Combinators if ( (match = rcombinators.exec( soFar )) ) { soFar = soFar.slice( match[0].length ); // Cast descendant combinators to space matched = tokens.push({ part: match.pop().replace( rtrim, " " ), captures: match }); } // Filters for ( type in filters ) { if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || (match = preFilters[ type ]( match, context, xml )) ) ) { soFar = soFar.slice( match.shift().length ); matched = tokens.push({ part: type, captures: match }); } } if ( !matched ) { break; } } } if ( !matched ) { Sizzle.error( selector ); } return groups; } function addCombinator( matcher, combinator, context ) { var dir = combinator.dir, doneName = done++; if ( !matcher ) { // If there is no matcher to check, check against the context matcher = function( elem ) { return elem === context; }; } return combinator.first ? function( elem, context ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 ) { return matcher( elem, context ) && elem; } } } : function( elem, context ) { var cache, dirkey = doneName + "." + dirruns, cachedkey = dirkey + "." + cachedruns; while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 ) { if ( (cache = elem[ expando ]) === cachedkey ) { return elem.sizset; } else if ( typeof cache === "string" && cache.indexOf(dirkey) === 0 ) { if ( elem.sizset ) { return elem; } } else { elem[ expando ] = cachedkey; if ( matcher( elem, context ) ) { elem.sizset = true; return elem; } elem.sizset = false; } } } }; } function addMatcher( higher, deeper ) { return higher ? function( elem, context ) { var result = deeper( elem, context ); return result && higher( result === true ? elem : result, context ); } : deeper; } // ["TAG", ">", "ID", " ", "CLASS"] function matcherFromTokens( tokens, context, xml ) { var token, matcher, i = 0; for ( ; (token = tokens[i]); i++ ) { if ( Expr.relative[ token.part ] ) { matcher = addCombinator( matcher, Expr.relative[ token.part ], context ); } else { token.captures.push( context, xml ); matcher = addMatcher( matcher, Expr.filter[ token.part ].apply( null, token.captures ) ); } } return matcher; } function matcherFromGroupMatchers( matchers ) { return function( elem, context ) { var matcher, j = 0; for ( ; (matcher = matchers[j]); j++ ) { if ( matcher(elem, context) ) { return true; } } return false; }; } var compile = Sizzle.compile = function( selector, context, xml ) { var tokens, group, i, cached = compilerCache[ selector ]; // Return a cached group function if already generated (context dependent) if ( cached && cached.context === context ) { return cached; } // Generate a function of recursive functions that can be used to check each element group = tokenize( selector, context, xml ); for ( i = 0; (tokens = group[i]); i++ ) { group[i] = matcherFromTokens( tokens, context, xml ); } // Cache the compiled function cached = compilerCache[ selector ] = matcherFromGroupMatchers( group ); cached.context = context; cached.runs = cached.dirruns = 0; cachedSelectors.push( selector ); // Ensure only the most recent are cached if ( cachedSelectors.length > Expr.cacheLength ) { delete compilerCache[ cachedSelectors.shift() ]; } return cached; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { return Sizzle( expr, null, null, [ elem ] ).length > 0; }; var select = function( selector, context, results, seed, xml ) { // Remove excessive whitespace selector = selector.replace( rtrim, "$1" ); var elements, matcher, i, len, elem, token, type, findContext, notTokens, match = selector.match( rgroups ), tokens = selector.match( rtokens ), contextNodeType = context.nodeType; // POS handling if ( matchExpr["POS"].test(selector) ) { return handlePOS( selector, context, results, seed, match ); } if ( seed ) { elements = slice.call( seed, 0 ); // To maintain document order, only narrow the // set if there is one group } else if ( match && match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID if ( tokens.length > 1 && contextNodeType === 9 && !xml && (match = matchExpr["ID"].exec( tokens[0] )) ) { context = Expr.find["ID"]( match[1], context, xml )[0]; if ( !context ) { return results; } selector = selector.slice( tokens.shift().length ); } findContext = ( (match = rsibling.exec( tokens[0] )) && !match.index && context.parentNode ) || context; // Get the last token, excluding :not notTokens = tokens.pop(); token = notTokens.split(":not")[0]; for ( i = 0, len = Expr.order.length; i < len; i++ ) { type = Expr.order[i]; if ( (match = matchExpr[ type ].exec( token )) ) { elements = Expr.find[ type ]( (match[1] || "").replace( rbackslash, "" ), findContext, xml ); if ( elements == null ) { continue; } if ( token === notTokens ) { selector = selector.slice( 0, selector.length - notTokens.length ) + token.replace( matchExpr[ type ], "" ); if ( !selector ) { push.apply( results, slice.call(elements, 0) ); } } break; } } } // Only loop over the given elements once // If selector is empty, we're already done if ( selector ) { matcher = compile( selector, context, xml ); dirruns = matcher.dirruns++; if ( elements == null ) { elements = Expr.find["TAG"]( "*", (rsibling.test( selector ) && context.parentNode) || context ); } for ( i = 0; (elem = elements[i]); i++ ) { cachedruns = matcher.runs++; if ( matcher(elem, context) ) { results.push( elem ); } } } return results; }; if ( document.querySelectorAll ) { (function() { var disconnectedMatch, oldSelect = select, rescape = /'|\\/g, rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, rbuggyQSA = [], // matchesSelector(:active) reports false when true (IE9/Opera 11.5) // A support test would require too much code (would include document ready) // just skip matchesSelector for :active rbuggyMatches = [":active"], matches = docElem.matchesSelector || docElem.mozMatchesSelector || docElem.webkitMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector; // Build QSA regex // Regex strategy adopted from Diego Perini assert(function( div ) { div.innerHTML = "<select><option selected></option></select>"; // IE8 - Some boolean attributes are not treated correctly if ( !div.querySelectorAll("[selected]").length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" ); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here (do not put tests after this one) if ( !div.querySelectorAll(":checked").length ) { rbuggyQSA.push(":checked"); } }); assert(function( div ) { // Opera 10-12/IE9 - ^= $= *= and empty values // Should not select anything div.innerHTML = "<p test=''></p>"; if ( div.querySelectorAll("[test^='']").length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here (do not put tests after this one) div.innerHTML = "<input type='hidden'>"; if ( !div.querySelectorAll(":enabled").length ) { rbuggyQSA.push(":enabled", ":disabled"); } }); rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); select = function( selector, context, results, seed, xml ) { // Only use querySelectorAll when not filtering, // when this is not xml, // and when no QSA bugs apply if ( !seed && !xml && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { if ( context.nodeType === 9 ) { try { push.apply( results, slice.call(context.querySelectorAll( selector ), 0) ); return results; } catch(qsaError) {} // qSA works strangely on Element-rooted queries // We can work around this by specifying an extra ID on the root // and working up from there (Thanks to Andrew Dupont for the technique) // IE 8 doesn't work on object elements } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { var old = context.getAttribute("id"), nid = old || expando, newContext = rsibling.test( selector ) && context.parentNode || context; if ( old ) { nid = nid.replace( rescape, "\\$&" ); } else { context.setAttribute( "id", nid ); } try { push.apply( results, slice.call( newContext.querySelectorAll( selector.replace( rgroups, "[id='" + nid + "'] $&" ) ), 0 ) ); return results; } catch(qsaError) { } finally { if ( !old ) { context.removeAttribute("id"); } } } } return oldSelect( selector, context, results, seed, xml ); }; if ( matches ) { assert(function( div ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) disconnectedMatch = matches.call( div, "div" ); // This should fail with an exception // Gecko does not error, returns false instead try { matches.call( div, "[test!='']:sizzle" ); rbuggyMatches.push( Expr.match.PSEUDO ); } catch ( e ) {} }); // rbuggyMatches always contains :active, so no need for a length check rbuggyMatches = /* rbuggyMatches.length && */ new RegExp( rbuggyMatches.join("|") ); Sizzle.matchesSelector = function( elem, expr ) { // Make sure that attribute selectors are quoted expr = expr.replace( rattributeQuotes, "='$1']" ); // rbuggyMatches always contains :active, so no need for an existence check if ( !isXML( elem ) && !rbuggyMatches.test( expr ) && (!rbuggyQSA || !rbuggyQSA.test( expr )) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch(e) {} } return Sizzle( expr, null, null, [ elem ] ).length > 0; }; } })(); } // Override sizzle attribute retrieval Sizzle.attr = jQuery.attr; jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.pseudos; jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; })( window ); var runtil = /Until$/, rparentsprev = /^(?:parents|prev(?:Until|All))/, isSimple = /^.[^:#\[\.,]*$/, rneedsContext = jQuery.expr.match.needsContext, // methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend({ find: function( selector ) { var i, l, length, n, r, ret, self = this; if ( typeof selector !== "string" ) { return jQuery( selector ).filter(function() { for ( i = 0, l = self.length; i < l; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } }); } ret = this.pushStack( "", "find", selector ); for ( i = 0, l = this.length; i < l; i++ ) { length = ret.length; jQuery.find( selector, this[i], ret ); if ( i > 0 ) { // Make sure that the results are unique for ( n = length; n < ret.length; n++ ) { for ( r = 0; r < length; r++ ) { if ( ret[r] === ret[n] ) { ret.splice(n--, 1); break; } } } } } return ret; }, has: function( target ) { var i, targets = jQuery( target, this ), len = targets.length; return this.filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, not: function( selector ) { return this.pushStack( winnow(this, selector, false), "not", selector); }, filter: function( selector ) { return this.pushStack( winnow(this, selector, true), "filter", selector ); }, is: function( selector ) { return !!selector && ( typeof selector === "string" ? // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". rneedsContext.test( selector ) ? jQuery( selector, this.context ).index( this[0] ) >= 0 : jQuery.filter( selector, this ).length > 0 : this.filter( selector ).length > 0 ); }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, ret = [], pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? jQuery( selectors, context || this.context ) : 0; for ( ; i < l; i++ ) { cur = this[i]; while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) { if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { ret.push( cur ); break; } cur = cur.parentNode; } } ret = ret.length > 1 ? jQuery.unique( ret ) : ret; return this.pushStack( ret, "closest", selectors ); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; } // index in selector if ( typeof elem === "string" ) { return jQuery.inArray( this[0], jQuery( elem ) ); } // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem.jquery ? elem[0] : elem, this ); }, add: function( selector, context ) { var set = typeof selector === "string" ? jQuery( selector, context ) : jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), all = jQuery.merge( this.get(), set ); return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? all : jQuery.unique( all ) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter(selector) ); } }); jQuery.fn.andSelf = jQuery.fn.addBack; // A painfully simple check to see if an element is disconnected // from a document (should be improved, where feasible). function isDisconnected( node ) { return !node || !node.parentNode || node.parentNode.nodeType === 11; } function sibling( cur, dir ) { do { cur = cur[ dir ]; } while ( cur && cur.nodeType !== 1 ); return cur; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return jQuery.nodeName( elem, "iframe" ) ? elem.contentDocument || elem.contentWindow.document : jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); if ( !runtil.test( name ) ) { selector = until; } if ( selector && typeof selector === "string" ) { ret = jQuery.filter( selector, ret ); } ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; if ( this.length > 1 && rparentsprev.test( name ) ) { ret = ret.reverse(); } return this.pushStack( ret, name, core_slice.call( arguments ).join(",") ); }; }); jQuery.extend({ filter: function( expr, elems, not ) { if ( not ) { expr = ":not(" + expr + ")"; } return elems.length === 1 ? jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : jQuery.find.matches(expr, elems); }, dir: function( elem, dir, until ) { var matched = [], cur = elem[ dir ]; while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { if ( cur.nodeType === 1 ) { matched.push( cur ); } cur = cur[dir]; } return matched; }, sibling: function( n, elem ) { var r = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { r.push( n ); } } return r; } }); // Implement the identical functionality for filter and not function winnow( elements, qualifier, keep ) { // Can't pass null or undefined to indexOf in Firefox 4 // Set to 0 to skip string check qualifier = qualifier || 0; if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep(elements, function( elem, i ) { var retVal = !!qualifier.call( elem, i, elem ); return retVal === keep; }); } else if ( qualifier.nodeType ) { return jQuery.grep(elements, function( elem, i ) { return ( elem === qualifier ) === keep; }); } else if ( typeof qualifier === "string" ) { var filtered = jQuery.grep(elements, function( elem ) { return elem.nodeType === 1; }); if ( isSimple.test( qualifier ) ) { return jQuery.filter(qualifier, filtered, !keep); } else { qualifier = jQuery.filter( qualifier, filtered ); } } return jQuery.grep(elements, function( elem, i ) { return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; }); } function createSafeFragment( document ) { var list = nodeNames.split( "|" ), safeFrag = document.createDocumentFragment(); if ( safeFrag.createElement ) { while ( list.length ) { safeFrag.createElement( list.pop() ); } } return safeFrag; } var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /<tbody/i, rhtml = /<|&#?\w+;/, rnoInnerhtml = /<(?:script|style|link)/i, rnocache = /<(?:script|object|embed|option|style)/i, rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), rcheckableType = /^(?:checkbox|radio)$/, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /\/(java|ecma)script/i, rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g, wrapMap = { option: [ 1, "<select multiple='multiple'>", "</select>" ], legend: [ 1, "<fieldset>", "</fieldset>" ], thead: [ 1, "<table>", "</table>" ], tr: [ 2, "<table><tbody>", "</tbody></table>" ], td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ], area: [ 1, "<map>", "</map>" ], _default: [ 0, "", "" ] }, safeFragment = createSafeFragment( document ), fragmentDiv = safeFragment.appendChild( document.createElement("div") ); wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, // unless wrapped in a div with non-breaking characters in front of it. if ( !jQuery.support.htmlSerialize ) { wrapMap._default = [ 1, "X<div>", "</div>" ]; } jQuery.fn.extend({ text: function( value ) { return jQuery.access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); }, null, value, arguments.length ); }, wrapAll: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapAll( html.call(this, i) ); }); } if ( this[0] ) { // The elements to wrap the target around var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); if ( this[0].parentNode ) { wrap.insertBefore( this[0] ); } wrap.map(function() { var elem = this; while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { elem = elem.firstChild; } return elem; }).append( this ); } return this; }, wrapInner: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapInner( html.call(this, i) ); }); } return this.each(function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } }); }, wrap: function( html ) { var isFunction = jQuery.isFunction( html ); return this.each(function(i) { jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); }); }, unwrap: function() { return this.parent().each(function() { if ( !jQuery.nodeName( this, "body" ) ) { jQuery( this ).replaceWith( this.childNodes ); } }).end(); }, append: function() { return this.domManip(arguments, true, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 ) { this.appendChild( elem ); } }); }, prepend: function() { return this.domManip(arguments, true, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 ) { this.insertBefore( elem, this.firstChild ); } }); }, before: function() { if ( !isDisconnected( this[0] ) ) { return this.domManip(arguments, false, function( elem ) { this.parentNode.insertBefore( elem, this ); }); } if ( arguments.length ) { var set = jQuery.clean( arguments ); return this.pushStack( jQuery.merge( set, this ), "before", this.selector ); } }, after: function() { if ( !isDisconnected( this[0] ) ) { return this.domManip(arguments, false, function( elem ) { this.parentNode.insertBefore( elem, this.nextSibling ); }); } if ( arguments.length ) { var set = jQuery.clean( arguments ); return this.pushStack( jQuery.merge( this, set ), "after", this.selector ); } }, // keepData is for internal use only--do not document remove: function( selector, keepData ) { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { if ( !selector || jQuery.filter( selector, [ elem ] ).length ) { if ( !keepData && elem.nodeType === 1 ) { jQuery.cleanData( elem.getElementsByTagName("*") ); jQuery.cleanData( [ elem ] ); } if ( elem.parentNode ) { elem.parentNode.removeChild( elem ); } } } return this; }, empty: function() { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( elem.getElementsByTagName("*") ); } // Remove any remaining nodes while ( elem.firstChild ) { elem.removeChild( elem.firstChild ); } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function () { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); }); }, html: function( value ) { return jQuery.access( this, function( value ) { var elem = this[0] || {}, i = 0, l = this.length; if ( value === undefined ) { return elem.nodeType === 1 ? elem.innerHTML.replace( rinlinejQuery, "" ) : undefined; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { value = value.replace( rxhtmlTag, "<$1></$2>" ); try { for (; i < l; i++ ) { // Remove element nodes and prevent memory leaks elem = this[i] || {}; if ( elem.nodeType === 1 ) { jQuery.cleanData( elem.getElementsByTagName( "*" ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch(e) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function( value ) { if ( !isDisconnected( this[0] ) ) { // Make sure that the elements are removed from the DOM before they are inserted // this can help fix replacing a parent with child elements if ( jQuery.isFunction( value ) ) { return this.each(function(i) { var self = jQuery(this), old = self.html(); self.replaceWith( value.call( this, i, old ) ); }); } if ( typeof value !== "string" ) { value = jQuery( value ).detach(); } return this.each(function() { var next = this.nextSibling, parent = this.parentNode; jQuery( this ).remove(); if ( next ) { jQuery(next).before( value ); } else { jQuery(parent).append( value ); } }); } return this.length ? this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) : this; }, detach: function( selector ) { return this.remove( selector, true ); }, domManip: function( args, table, callback ) { // Flatten any nested arrays args = [].concat.apply( [], args ); var results, first, fragment, iNoClone, i = 0, value = args[0], scripts = [], l = this.length; // We can't cloneNode fragments that contain checked, in WebKit if ( !jQuery.support.checkClone && l > 1 && typeof value === "string" && rchecked.test( value ) ) { return this.each(function() { jQuery(this).domManip( args, table, callback ); }); } if ( jQuery.isFunction(value) ) { return this.each(function(i) { var self = jQuery(this); args[0] = value.call( this, i, table ? self.html() : undefined ); self.domManip( args, table, callback ); }); } if ( this[0] ) { results = jQuery.buildFragment( args, this, scripts ); fragment = results.fragment; first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } if ( first ) { table = table && jQuery.nodeName( first, "tr" ); // Use the original fragment for the last item instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). // Fragments from the fragment cache must always be cloned and never used in place. for ( iNoClone = results.cacheable || l - 1; i < l; i++ ) { callback.call( table && jQuery.nodeName( this[i], "table" ) ? findOrAppend( this[i], "tbody" ) : this[i], i === iNoClone ? fragment : jQuery.clone( fragment, true, true ) ); } } // Fix #11809: Avoid leaking memory fragment = first = null; if ( scripts.length ) { jQuery.each( scripts, function( i, elem ) { if ( elem.src ) { if ( jQuery.ajax ) { jQuery.ajax({ url: elem.src, type: "GET", dataType: "script", async: false, global: false, "throws": true }); } else { jQuery.error("no ajax"); } } else { jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "" ) ); } if ( elem.parentNode ) { elem.parentNode.removeChild( elem ); } }); } } return this; } }); function findOrAppend( elem, tag ) { return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) ); } function cloneCopyEvent( src, dest ) { if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { return; } var type, i, l, oldData = jQuery._data( src ), curData = jQuery._data( dest, oldData ), events = oldData.events; if ( events ) { delete curData.handle; curData.events = {}; for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } // make the cloned public data object a copy from the original if ( curData.data ) { curData.data = jQuery.extend( {}, curData.data ); } } function cloneFixAttributes( src, dest ) { var nodeName; // We do not need to do anything for non-Elements if ( dest.nodeType !== 1 ) { return; } // clearAttributes removes the attributes, which we don't want, // but also removes the attachEvent events, which we *do* want if ( dest.clearAttributes ) { dest.clearAttributes(); } // mergeAttributes, in contrast, only merges back on the // original attributes, not the events if ( dest.mergeAttributes ) { dest.mergeAttributes( src ); } nodeName = dest.nodeName.toLowerCase(); if ( nodeName === "object" ) { // IE6-10 improperly clones children of object elements using classid. // IE10 throws NoModificationAllowedError if parent is null, #12132. if ( dest.parentNode ) { dest.outerHTML = src.outerHTML; } // This path appears unavoidable for IE9. When cloning an object // element in IE9, the outerHTML strategy above is not sufficient. // If the src has innerHTML and the destination does not, // copy the src.innerHTML into the dest.innerHTML. #10324 if ( jQuery.support.html5Clone && (src.innerHTML && !jQuery.trim(dest.innerHTML)) ) { dest.innerHTML = src.innerHTML; } } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { // IE6-8 fails to persist the checked state of a cloned checkbox // or radio button. Worse, IE6-7 fail to give the cloned element // a checked appearance if the defaultChecked value isn't also set dest.defaultChecked = dest.checked = src.checked; // IE6-7 get confused and end up setting the value of a cloned // checkbox/radio button to an empty string instead of "on" if ( dest.value !== src.value ) { dest.value = src.value; } // IE6-8 fails to return the selected option to the default selected // state when cloning options } else if ( nodeName === "option" ) { dest.selected = src.defaultSelected; // IE6-8 fails to set the defaultValue to the correct value when // cloning other types of input fields } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; // IE blanks contents when cloning scripts } else if ( nodeName === "script" && dest.text !== src.text ) { dest.text = src.text; } // Event data gets referenced instead of copied if the expando // gets copied too dest.removeAttribute( jQuery.expando ); } jQuery.buildFragment = function( args, context, scripts ) { var fragment, cacheable, cachehit, first = args[ 0 ]; // Set context from what may come in as undefined or a jQuery collection or a node // Updated to fix #12266 where accessing context[0] could throw an exception in IE9/10 & // also doubles as fix for #8950 where plain objects caused createDocumentFragment exception context = context || document; context = !context.nodeType && context[0] || context; context = context.ownerDocument || context; // Only cache "small" (1/2 KB) HTML strings that are associated with the main document // Cloning options loses the selected state, so don't cache them // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501 if ( args.length === 1 && typeof first === "string" && first.length < 512 && context === document && first.charAt(0) === "<" && !rnocache.test( first ) && (jQuery.support.checkClone || !rchecked.test( first )) && (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) { // Mark cacheable and look for a hit cacheable = true; fragment = jQuery.fragments[ first ]; cachehit = fragment !== undefined; } if ( !fragment ) { fragment = context.createDocumentFragment(); jQuery.clean( args, context, fragment, scripts ); // Update the cache, but only store false // unless this is a second parsing of the same content if ( cacheable ) { jQuery.fragments[ first ] = cachehit && fragment; } } return { fragment: fragment, cacheable: cacheable }; }; jQuery.fragments = {}; jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, i = 0, ret = [], insert = jQuery( selector ), l = insert.length, parent = this.length === 1 && this[0].parentNode; if ( (parent == null || parent && parent.nodeType === 11 && parent.childNodes.length === 1) && l === 1 ) { insert[ original ]( this[0] ); return this; } else { for ( ; i < l; i++ ) { elems = ( i > 0 ? this.clone(true) : this ).get(); jQuery( insert[i] )[ original ]( elems ); ret = ret.concat( elems ); } return this.pushStack( ret, name, insert.selector ); } }; }); function getAll( elem ) { if ( typeof elem.getElementsByTagName !== "undefined" ) { return elem.getElementsByTagName( "*" ); } else if ( typeof elem.querySelectorAll !== "undefined" ) { return elem.querySelectorAll( "*" ); } else { return []; } } // Used in clean, fixes the defaultChecked property function fixDefaultChecked( elem ) { if ( rcheckableType.test( elem.type ) ) { elem.defaultChecked = elem.checked; } } jQuery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents ) { var srcElements, destElements, i, clone; if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { clone = elem.cloneNode( true ); // IE<=8 does not properly clone detached, unknown element nodes } else { fragmentDiv.innerHTML = elem.outerHTML; fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); } if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { // IE copies events bound via attachEvent when using cloneNode. // Calling detachEvent on the clone will also remove the events // from the original. In order to get around this, we use some // proprietary methods to clear the events. Thanks to MooTools // guys for this hotness. cloneFixAttributes( elem, clone ); // Using Sizzle here is crazy slow, so we use getElementsByTagName instead srcElements = getAll( elem ); destElements = getAll( clone ); // Weird iteration because IE will replace the length property // with an element if you are cloning the body and one of the // elements on the page has a name or id of "length" for ( i = 0; srcElements[i]; ++i ) { // Ensure that the destination node is not null; Fixes #9587 if ( destElements[i] ) { cloneFixAttributes( srcElements[i], destElements[i] ); } } } // Copy the events from the original to the clone if ( dataAndEvents ) { cloneCopyEvent( elem, clone ); if ( deepDataAndEvents ) { srcElements = getAll( elem ); destElements = getAll( clone ); for ( i = 0; srcElements[i]; ++i ) { cloneCopyEvent( srcElements[i], destElements[i] ); } } } srcElements = destElements = null; // Return the cloned set return clone; }, clean: function( elems, context, fragment, scripts ) { var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags, safe = context === document && safeFragment, ret = []; // Ensure that context is a document if ( !context || typeof context.createDocumentFragment === "undefined" ) { context = document; } // Use the already-created safe fragment if context permits for ( i = 0; (elem = elems[i]) != null; i++ ) { if ( typeof elem === "number" ) { elem += ""; } if ( !elem ) { continue; } // Convert html string into DOM nodes if ( typeof elem === "string" ) { if ( !rhtml.test( elem ) ) { elem = context.createTextNode( elem ); } else { // Ensure a safe container in which to render the html safe = safe || createSafeFragment( context ); div = context.createElement("div"); safe.appendChild( div ); // Fix "XHTML"-style tags in all browsers elem = elem.replace(rxhtmlTag, "<$1></$2>"); // Go to html and back, then peel off extra wrappers tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; depth = wrap[0]; div.innerHTML = wrap[1] + elem + wrap[2]; // Move to the right depth while ( depth-- ) { div = div.lastChild; } // Remove IE's autoinserted <tbody> from table fragments if ( !jQuery.support.tbody ) { // String was a <table>, *may* have spurious <tbody> hasBody = rtbody.test(elem); tbody = tag === "table" && !hasBody ? div.firstChild && div.firstChild.childNodes : // String was a bare <thead> or <tfoot> wrap[1] === "<table>" && !hasBody ? div.childNodes : []; for ( j = tbody.length - 1; j >= 0 ; --j ) { if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { tbody[ j ].parentNode.removeChild( tbody[ j ] ); } } } // IE completely kills leading whitespace when innerHTML is used if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild ); } elem = div.childNodes; // Take out of fragment container (we need a fresh div each time) div.parentNode.removeChild( div ); } } if ( elem.nodeType ) { ret.push( elem ); } else { jQuery.merge( ret, elem ); } } // Fix #11356: Clear elements from safeFragment if ( div ) { elem = div = safe = null; } // Reset defaultChecked for any radios and checkboxes // about to be appended to the DOM in IE 6/7 (#8060) if ( !jQuery.support.appendChecked ) { for ( i = 0; (elem = ret[i]) != null; i++ ) { if ( jQuery.nodeName( elem, "input" ) ) { fixDefaultChecked( elem ); } else if ( typeof elem.getElementsByTagName !== "undefined" ) { jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked ); } } } // Append elements to a provided document fragment if ( fragment ) { // Special handling of each script element handleScript = function( elem ) { // Check if we consider it executable if ( !elem.type || rscriptType.test( elem.type ) ) { // Detach the script and store it in the scripts array (if provided) or the fragment // Return truthy to indicate that it has been handled return scripts ? scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) : fragment.appendChild( elem ); } }; for ( i = 0; (elem = ret[i]) != null; i++ ) { // Check if we're done after handling an executable script if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) { // Append to fragment and handle embedded scripts fragment.appendChild( elem ); if ( typeof elem.getElementsByTagName !== "undefined" ) { // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript ); // Splice the scripts into ret after their former ancestor and advance our index beyond them ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) ); i += jsTags.length; } } } } return ret; }, cleanData: function( elems, /* internal */ acceptData ) { var data, id, elem, type, i = 0, internalKey = jQuery.expando, cache = jQuery.cache, deleteExpando = jQuery.support.deleteExpando, special = jQuery.event.special; for ( ; (elem = elems[i]) != null; i++ ) { if ( acceptData || jQuery.acceptData( elem ) ) { id = elem[ internalKey ]; data = id && cache[ id ]; if ( data ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Remove cache only if it was not already removed by jQuery.event.remove if ( cache[ id ] ) { delete cache[ id ]; // IE does not allow us to delete expando properties from nodes, // nor does it have a removeAttribute function on Document nodes; // we must handle all of these cases if ( deleteExpando ) { delete elem[ internalKey ]; } else if ( elem.removeAttribute ) { elem.removeAttribute( internalKey ); } else { elem[ internalKey ] = null; } jQuery.deletedIds.push( id ); } } } } } }); // Limit scope pollution from any deprecated API (function() { var matched, browser; // Use of jQuery.browser is frowned upon. // More details: http://api.jquery.com/jQuery.browser // jQuery.uaMatch maintained for back-compat jQuery.uaMatch = function( ua ) { ua = ua.toLowerCase(); var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || /(webkit)[ \/]([\w.]+)/.exec( ua ) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || /(msie) ([\w.]+)/.exec( ua ) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || []; return { browser: match[ 1 ] || "", version: match[ 2 ] || "0" }; }; matched = jQuery.uaMatch( navigator.userAgent ); browser = {}; if ( matched.browser ) { browser[ matched.browser ] = true; browser.version = matched.version; } // Chrome is Webkit, but Webkit is also Safari. if ( browser.chrome ) { browser.webkit = true; } else if ( browser.webkit ) { browser.safari = true; } jQuery.browser = browser; jQuery.sub = function() { function jQuerySub( selector, context ) { return new jQuerySub.fn.init( selector, context ); } jQuery.extend( true, jQuerySub, this ); jQuerySub.superclass = this; jQuerySub.fn = jQuerySub.prototype = this(); jQuerySub.fn.constructor = jQuerySub; jQuerySub.sub = this.sub; jQuerySub.fn.init = function init( selector, context ) { if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { context = jQuerySub( context ); } return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); }; jQuerySub.fn.init.prototype = jQuerySub.fn; var rootjQuerySub = jQuerySub(document); return jQuerySub; }; })(); var r20 = /%20/g, rbracket = /\[\]$/, rCRLF = /\r?\n/g, rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, rselectTextarea = /^(?:select|textarea)/i; jQuery.fn.extend({ serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map(function(){ return this.elements ? jQuery.makeArray( this.elements ) : this; }) .filter(function(){ return this.name && !this.disabled && ( this.checked || rselectTextarea.test( this.nodeName ) || rinput.test( this.type ) ); }) .map(function( i, elem ){ var val = jQuery( this ).val(); return val == null ? null : jQuery.isArray( val ) ? jQuery.map( val, function( val, i ){ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }) : { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }).get(); } }); //Serialize an array of form elements or a set of //key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, value ) { // If value is a function, invoke it and return its value value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); }; // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; } // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ).replace( r20, "+" ); }; function buildParams( prefix, obj, traditional, add ) { var name; if ( jQuery.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // If array item is non-scalar (array or object), encode its // numeric index to resolve deserialization ambiguity issues. // Note that rack (as of 1.0.0) can't currently deserialize // nested arrays properly, and attempting to do so may cause // a server error. Possible fixes are to modify rack's // deserialization algorithm or to provide an option or flag // to force array serialization to be shallow. buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); } }); } else if ( !traditional && jQuery.type( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } var // Document location ajaxLocParts, ajaxLocation, rhash = /#.*$/, rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rquery = /\?/, rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, rts = /([?&])_=[^&]*/, rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, // Keep a copy of the old load method _load = jQuery.fn.load, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = ["*/"] + ["*"]; // #8138, IE may throw an exception when accessing // a field from window.location if document.domain has been set try { ajaxLocation = location.href; } catch( e ) { // Use the href attribute of an A element // since IE will modify it given document.location ajaxLocation = document.createElement( "a" ); ajaxLocation.href = ""; ajaxLocation = ajaxLocation.href; } // Segment location into parts ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, list, placeBefore, dataTypes = dataTypeExpression.toLowerCase().split( core_rspace ), i = 0, length = dataTypes.length; if ( jQuery.isFunction( func ) ) { // For each dataType in the dataTypeExpression for ( ; i < length; i++ ) { dataType = dataTypes[ i ]; // We control if we're asked to add before // any existing element placeBefore = /^\+/.test( dataType ); if ( placeBefore ) { dataType = dataType.substr( 1 ) || "*"; } list = structure[ dataType ] = structure[ dataType ] || []; // then we add to the structure accordingly list[ placeBefore ? "unshift" : "push" ]( func ); } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR, dataType /* internal */, inspected /* internal */ ) { dataType = dataType || options.dataTypes[ 0 ]; inspected = inspected || {}; inspected[ dataType ] = true; var selection, list = structure[ dataType ], i = 0, length = list ? list.length : 0, executeOnly = ( structure === prefilters ); for ( ; i < length && ( executeOnly || !selection ); i++ ) { selection = list[ i ]( options, originalOptions, jqXHR ); // If we got redirected to another dataType // we try there if executing only and not done already if ( typeof selection === "string" ) { if ( !executeOnly || inspected[ selection ] ) { selection = undefined; } else { options.dataTypes.unshift( selection ); selection = inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR, selection, inspected ); } } } // If we're only executing or nothing was selected // we try the catchall dataType if not done already if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) { selection = inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR, "*", inspected ); } // unnecessary when only executing (prefilters) // but it'll be ignored by the caller in that case return selection; } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } } jQuery.fn.load = function( url, params, callback ) { if ( typeof url !== "string" && _load ) { return _load.apply( this, arguments ); } // Don't do a request if no elements are being requested if ( !this.length ) { return this; } var selector, type, response, self = this, off = url.indexOf(" "); if ( off >= 0 ) { selector = url.slice( off, url.length ); url = url.slice( 0, off ); } // If it's a function if ( jQuery.isFunction( params ) ) { // We assume that it's the callback callback = params; params = undefined; // Otherwise, build a param string } else if ( params && typeof params === "object" ) { type = "POST"; } // Request the remote document jQuery.ajax({ url: url, // if "type" variable is undefined, then "GET" method will be used type: type, dataType: "html", data: params, complete: function( jqXHR, status ) { if ( callback ) { self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); } } }).done(function( responseText ) { // Save response for use in complete callback response = arguments; // See if a selector was specified self.html( selector ? // Create a dummy div to hold the results jQuery("<div>") // inject the contents of the document in, removing the scripts // to avoid any 'Permission Denied' errors in IE .append( responseText.replace( rscript, "" ) ) // Locate the specified elements .find( selector ) : // If not, just inject the full result responseText ); }); return this; }; // Attach a bunch of functions for handling common AJAX events jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){ jQuery.fn[ o ] = function( f ){ return this.on( o, f ); }; }); jQuery.each( [ "get", "post" ], function( i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // shift arguments if data argument was omitted if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } return jQuery.ajax({ type: method, url: url, data: data, success: callback, dataType: type }); }; }); jQuery.extend({ getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { if ( settings ) { // Building a settings object ajaxExtend( target, jQuery.ajaxSettings ); } else { // Extending ajaxSettings settings = target; target = jQuery.ajaxSettings; } ajaxExtend( target, settings ); return target; }, ajaxSettings: { url: ajaxLocation, isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ), global: true, type: "GET", contentType: "application/x-www-form-urlencoded; charset=UTF-8", processData: true, async: true, /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { xml: "application/xml, text/xml", html: "text/html", text: "text/plain", json: "application/json, text/javascript", "*": allTypes }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText" }, // List of data converters // 1) key format is "source_type destination_type" (a single space in-between) // 2) the catchall symbol "*" can be used for source_type converters: { // Convert anything to text "* text": window.String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": jQuery.parseJSON, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { context: true, url: true } }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var // ifModified key ifModifiedKey, // Response headers responseHeadersString, responseHeaders, // transport transport, // timeout handle timeoutTimer, // Cross-domain detection vars parts, // To know if global events are to be dispatched fireGlobals, // Loop variable i, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events // It's the callbackContext if one was provided in the options // and if it's a DOM node or a jQuery collection globalEventContext = callbackContext !== s && ( callbackContext.nodeType || callbackContext instanceof jQuery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks( "once memory" ), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // The jqXHR state state = 0, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Caches the header setRequestHeader: function( name, value ) { if ( !state ) { var lname = name.toLowerCase(); name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; requestHeaders[ name ] = value; } return this; }, // Raw string getAllResponseHeaders: function() { return state === 2 ? responseHeadersString : null; }, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( state === 2 ) { if ( !responseHeaders ) { responseHeaders = {}; while( ( match = rheaders.exec( responseHeadersString ) ) ) { responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; } } match = responseHeaders[ key.toLowerCase() ]; } return match === undefined ? null : match; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( !state ) { s.mimeType = type; } return this; }, // Cancel the request abort: function( statusText ) { statusText = statusText || strAbort; if ( transport ) { transport.abort( statusText ); } done( 0, statusText ); return this; } }; // Callback for when everything is done // It is defined here because jslint complains if it is declared // at the end of the function (which would be more logical and readable) function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Called once if ( state === 2 ) { return; } // State is "done" now state = 2; // Clear timeout if it exists if ( timeoutTimer ) { clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // If successful, handle type chaining if ( status >= 200 && status < 300 || status === 304 ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader("Last-Modified"); if ( modified ) { jQuery.lastModified[ ifModifiedKey ] = modified; } modified = jqXHR.getResponseHeader("Etag"); if ( modified ) { jQuery.etag[ ifModifiedKey ] = modified; } } // If not modified if ( status === 304 ) { statusText = "notmodified"; isSuccess = true; // If we have data } else { isSuccess = ajaxConvert( s, response ); statusText = isSuccess.state; success = isSuccess.data; error = isSuccess.error; isSuccess = !error; } } else { // We extract error from statusText // then normalize statusText and status for non-aborts error = statusText; if ( !statusText || status ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ), [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger( "ajaxStop" ); } } } // Attach deferreds deferred.promise( jqXHR ); jqXHR.success = jqXHR.done; jqXHR.error = jqXHR.fail; jqXHR.complete = completeDeferred.add; // Status-dependent callbacks jqXHR.statusCode = function( map ) { if ( map ) { var tmp; if ( state < 2 ) { for ( tmp in map ) { statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ]; } } else { tmp = map[ jqXHR.status ]; jqXHR.always( tmp ); } } return this; }; // Remove hash character (#7531: and string promotion) // Add protocol if not provided (#5866: IE7 issue with protocol-less urls) // We also use the url parameter if available s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); // Extract dataTypes list s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( core_rspace ); // A cross-domain request is in order when we have a protocol:host:port mismatch if ( s.crossDomain == null ) { parts = rurl.exec( s.url.toLowerCase() ); s.crossDomain = !!( parts && ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) != ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) ) ); } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( state === 2 ) { return jqXHR; } // We can fire global events as of now if asked to fireGlobals = s.global; // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger( "ajaxStart" ); } // More options handling for requests with no content if ( !s.hasContent ) { // If data is available, append data to url if ( s.data ) { s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data; // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Get ifModifiedKey before adding the anti-cache parameter ifModifiedKey = s.url; // Add anti-cache in url if needed if ( s.cache === false ) { var ts = jQuery.now(), // try replacing _= if it is there ret = s.url.replace( rts, "$1_=" + ts ); // if nothing was replaced, add timestamp to the end s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { ifModifiedKey = ifModifiedKey || s.url; if ( jQuery.lastModified[ ifModifiedKey ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] ); } if ( jQuery.etag[ ifModifiedKey ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] ); } } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { // Abort if not done already and return return jqXHR.abort(); } // aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds for ( i in { success: 1, error: 1, complete: 1 } ) { jqXHR[ i ]( s[ i ] ); } // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = setTimeout( function(){ jqXHR.abort( "timeout" ); }, s.timeout ); } try { state = 1; transport.send( requestHeaders, done ); } catch (e) { // Propagate exception as error if not done if ( state < 2 ) { done( -1, e ); // Simply rethrow otherwise } else { throw e; } } } return jqXHR; }, // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {} }); /* Handles responses to an ajax request: * - sets all responseXXX fields accordingly * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes, responseFields = s.responseFields; // Fill responseXXX fields for ( type in responseFields ) { if ( type in responses ) { jqXHR[ responseFields[type] ] = responses[ type ]; } } // Remove auto dataType and get content-type in the process while( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader( "content-type" ); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } // Chain conversions given the request and the original response function ajaxConvert( s, response ) { var conv, conv2, current, tmp, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(), prev = dataTypes[ 0 ], converters = {}, i = 0; // Apply the dataFilter if provided if ( s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } // Convert to each sequential dataType, tolerating list modification for ( ; (current = dataTypes[++i]); ) { // There's only work to do if current dataType is non-auto if ( current !== "*" ) { // Convert response if prev dataType is non-auto and differs from current if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split(" "); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.splice( i--, 0, current ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s["throws"] ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } // Update prev for next iteration prev = current; } } return { state: "success", data: response }; } var oldCallbacks = [], rquestion = /\?/, rjsonp = /(=)\?(?=&|$)|\?\?/, nonce = jQuery.now(); // Default jsonp settings jQuery.ajaxSetup({ jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) ); this[ callback ] = true; return callback; } }); // Detect, normalize options and install callbacks for jsonp requests jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { var callbackName, overwritten, responseContainer, data = s.data, url = s.url, hasCallback = s.jsonp !== false, replaceInUrl = hasCallback && rjsonp.test( url ), replaceInData = hasCallback && !replaceInUrl && typeof data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( data ); // Handle iff the expected data type is "jsonp" or we have a parameter to set if ( s.dataTypes[ 0 ] === "jsonp" || replaceInUrl || replaceInData ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback; overwritten = window[ callbackName ]; // Insert callback into url or form data if ( replaceInUrl ) { s.url = url.replace( rjsonp, "$1" + callbackName ); } else if ( replaceInData ) { s.data = data.replace( rjsonp, "$1" + callbackName ); } else if ( hasCallback ) { s.url += ( rquestion.test( url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; } // Use data converter to retrieve json after script execution s.converters["script json"] = function() { if ( !responseContainer ) { jQuery.error( callbackName + " was not called" ); } return responseContainer[ 0 ]; }; // force json dataType s.dataTypes[ 0 ] = "json"; // Install callback window[ callbackName ] = function() { responseContainer = arguments; }; // Clean-up function (fires after converters) jqXHR.always(function() { // Restore preexisting value window[ callbackName ] = overwritten; // Save back as free if ( s[ callbackName ] ) { // make sure that re-using the options doesn't screw things around s.jsonpCallback = originalSettings.jsonpCallback; // save the callback name for future use oldCallbacks.push( callbackName ); } // Call if it was a function and we have a response if ( responseContainer && jQuery.isFunction( overwritten ) ) { overwritten( responseContainer[ 0 ] ); } responseContainer = overwritten = undefined; }); // Delegate to script return "script"; } }); // Install script dataType jQuery.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /javascript|ecmascript/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } }); // Handle cache's special case and global jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; s.global = false; } }); // Bind script tag hack transport jQuery.ajaxTransport( "script", function(s) { // This transport only deals with cross domain requests if ( s.crossDomain ) { var script, head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement; return { send: function( _, callback ) { script = document.createElement( "script" ); script.async = "async"; if ( s.scriptCharset ) { script.charset = s.scriptCharset; } script.src = s.url; // Attach handlers for all browsers script.onload = script.onreadystatechange = function( _, isAbort ) { if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) { // Handle memory leak in IE script.onload = script.onreadystatechange = null; // Remove the script if ( head && script.parentNode ) { head.removeChild( script ); } // Dereference the script script = undefined; // Callback if not abort if ( !isAbort ) { callback( 200, "success" ); } } }; // Use insertBefore instead of appendChild to circumvent an IE6 bug. // This arises when a base node is used (#2709 and #4378). head.insertBefore( script, head.firstChild ); }, abort: function() { if ( script ) { script.onload( 0, 1 ); } } }; } }); var xhrCallbacks, // #5280: Internet Explorer will keep connections alive if we don't abort on unload xhrOnUnloadAbort = window.ActiveXObject ? function() { // Abort all pending requests for ( var key in xhrCallbacks ) { xhrCallbacks[ key ]( 0, 1 ); } } : false, xhrId = 0; // Functions to create xhrs function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch( e ) {} } function createActiveXHR() { try { return new window.ActiveXObject( "Microsoft.XMLHTTP" ); } catch( e ) {} } // Create the request object // (This is still attached to ajaxSettings for backward compatibility) jQuery.ajaxSettings.xhr = window.ActiveXObject ? /* Microsoft failed to properly * implement the XMLHttpRequest in IE7 (can't request local files), * so we use the ActiveXObject when it is available * Additionally XMLHttpRequest can be disabled in IE7/IE8 so * we need a fallback. */ function() { return !this.isLocal && createStandardXHR() || createActiveXHR(); } : // For all other browsers, use the standard XMLHttpRequest object createStandardXHR; // Determine support properties (function( xhr ) { jQuery.extend( jQuery.support, { ajax: !!xhr, cors: !!xhr && ( "withCredentials" in xhr ) }); })( jQuery.ajaxSettings.xhr() ); // Create transport if the browser can provide an xhr if ( jQuery.support.ajax ) { jQuery.ajaxTransport(function( s ) { // Cross domain only allowed if supported through XMLHttpRequest if ( !s.crossDomain || jQuery.support.cors ) { var callback; return { send: function( headers, complete ) { // Get a new xhr var handle, i, xhr = s.xhr(); // Open the socket // Passing null username, generates a login popup on Opera (#2865) if ( s.username ) { xhr.open( s.type, s.url, s.async, s.username, s.password ); } else { xhr.open( s.type, s.url, s.async ); } // Apply custom fields if provided if ( s.xhrFields ) { for ( i in s.xhrFields ) { xhr[ i ] = s.xhrFields[ i ]; } } // Override mime type if needed if ( s.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( s.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !s.crossDomain && !headers["X-Requested-With"] ) { headers[ "X-Requested-With" ] = "XMLHttpRequest"; } // Need an extra try/catch for cross domain requests in Firefox 3 try { for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } } catch( _ ) {} // Do send the request // This may raise an exception which is actually // handled in jQuery.ajax (so no try/catch here) xhr.send( ( s.hasContent && s.data ) || null ); // Listener callback = function( _, isAbort ) { var status, statusText, responseHeaders, responses, xml; // Firefox throws exceptions when accessing properties // of an xhr when a network error occurred // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE) try { // Was never called and is aborted or complete if ( callback && ( isAbort || xhr.readyState === 4 ) ) { // Only called once callback = undefined; // Do not keep as active anymore if ( handle ) { xhr.onreadystatechange = jQuery.noop; if ( xhrOnUnloadAbort ) { delete xhrCallbacks[ handle ]; } } // If it's an abort if ( isAbort ) { // Abort it manually if needed if ( xhr.readyState !== 4 ) { xhr.abort(); } } else { status = xhr.status; responseHeaders = xhr.getAllResponseHeaders(); responses = {}; xml = xhr.responseXML; // Construct response list if ( xml && xml.documentElement /* #4958 */ ) { responses.xml = xml; } // When requesting binary data, IE6-9 will throw an exception // on any attempt to access responseText (#11426) try { responses.text = xhr.responseText; } catch( e ) { } // Firefox throws an exception when accessing // statusText for faulty cross-domain requests try { statusText = xhr.statusText; } catch( e ) { // We normalize with Webkit giving an empty statusText statusText = ""; } // Filter status for non standard behaviors // If the request is local and we have data: assume a success // (success with no data won't get notified, that's the best we // can do given current implementations) if ( !status && s.isLocal && !s.crossDomain ) { status = responses.text ? 200 : 404; // IE - #1450: sometimes returns 1223 when it should be 204 } else if ( status === 1223 ) { status = 204; } } } } catch( firefoxAccessException ) { if ( !isAbort ) { complete( -1, firefoxAccessException ); } } // Call complete if needed if ( responses ) { complete( status, statusText, responses, responseHeaders ); } }; if ( !s.async ) { // if we're in sync mode we fire the callback callback(); } else if ( xhr.readyState === 4 ) { // (IE6 & IE7) if it's in cache and has been // retrieved directly we need to fire the callback setTimeout( callback, 0 ); } else { handle = ++xhrId; if ( xhrOnUnloadAbort ) { // Create the active xhrs callbacks list if needed // and attach the unload handler if ( !xhrCallbacks ) { xhrCallbacks = {}; jQuery( window ).unload( xhrOnUnloadAbort ); } // Add to list of active xhrs callbacks xhrCallbacks[ handle ] = callback; } xhr.onreadystatechange = callback; } }, abort: function() { if ( callback ) { callback(0,1); } } }; } }); } // Expose jQuery to the global object window.jQuery = window.$ = jQuery; // Expose jQuery as an AMD module, but only for AMD loaders that // understand the issues with loading multiple versions of jQuery // in a page that all might call define(). The loader will indicate // they have special allowances for multiple jQuery versions by // specifying define.amd.jQuery = true. Register as a named module, // since jQuery can be concatenated with other files that may use define, // but not use a proper concatenation script that understands anonymous // AMD modules. A named AMD is safest and most robust way to register. // Lowercase jquery is used because AMD module names are derived from // file names, and jQuery is normally delivered in a lowercase file name. // Do this after creating the global so that if an AMD module wants to call // noConflict to hide this version of jQuery, it will work. if ( typeof define === "function" && define.amd && define.amd.jQuery ) { define( "jquery", [], function () { return jQuery; } ); } })( window );
var config = require('./config'); var express = require('express'); var superagent = require('superagent'); /** * Auth Token */ var authToken = null; var expires = 0; var expires_in = 20160; // 14 days in minutes /** * Urls */ var OAUTH = 'https://www.arcgis.com/sharing/oauth2/token'; var GEOCODE = 'http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer'; /** * ESRI Query Parameter Defaults */ var CATEGORY = 'Address'; var CENTER = config.geocode.center; var DISTANCE = 160 * 1000; // meters /** * Expose `router` */ var router = module.exports = express.Router(); /** * Expose `encode` & `reverse` */ module.exports.encode = encode; module.exports.reverse = reverse; module.exports.suggest = suggest; /** * Geocode */ router.get('/:address', function(req, res) { encode(req.params.address, function(err, addresses) { if (err) { console.error(err); res.status(400).send(err); } else { var ll = addresses[0].feature.geometry; res.status(200).send({ lng: ll.x, lat: ll.y }); } }); }); /** * Reverse */ router.get('/reverse/:coordinate', function(req, res) { reverse(req.params.coordinate, function(err, address) { if (err) { console.error(err); res.status(400).send(err); } else { res.status(200).send(address); } }); }); /** * Suggest */ router.get('/suggest/:text', function(req, res) { suggest(req.params.text, function(err, suggestions) { if (err) { console.error(err); res.status(400).send(err); } else { res.status(200).send(suggestions); } }); }); /** * Geocode */ function encode(address, callback) { var text = ''; if (address.address) { text = address.address + ', ' + address.city + ', ' + address.state + ' ' + address.zip; } else { text = address; } auth(callback, function(token) { superagent .get(GEOCODE + '/find') .query({ category: CATEGORY, f: 'json', text: text, token: token }) .end(function(err, res) { if (err) { callback(err, res); } else { var body = parseResponse(res, callback); if (!body || !body.locations || body.locations.length === 0) { callback(new Error('Location not found.')); } else { callback(null, body.locations); } } }); }); } /** * Reverse geocode */ function reverse(ll, callback) { var location = ll; if (ll.lng) { location = ll.lng + ',' + ll.lat; } else if (ll.x) { location = ll.x + ',' + ll.y; } else if (ll[0]) { location = ll[0] + ',' + ll[1]; } auth(callback, function(token) { superagent .get(GEOCODE + '/reverseGeocode') .query({ f: 'json', location: location, token: token }) .end(function(err, res) { if (err) { callback(err, res); } else { var body = parseResponse(res, callback); if (!body || !body.address) { callback(new Error('Location not found.')); } else { var addr = body.address; callback(null, { address: addr.Address, neighborhood: addr.Neighborhood, city: addr.City, county: addr.Subregion, state: addr.Region, zip: parseInt(addr.Postal, 10), country: addr.CountryCode }); } } }); }); } /** * Auto suggest */ function suggest(text, callback) { auth(callback, function(token) { superagent .get(GEOCODE + '/suggest') .query({ category: CATEGORY, distance: DISTANCE, f: 'json', location: CENTER, text: text, token: token }) .end(function(err, res) { if (err) { callback(err, res); } else { var body = parseResponse(res, callback); callback(null, body.suggestions); } }); }); } /** * Auth? */ function auth(callback, next) { generateAuthToken(function(err, token) { if (err) { callback(err); } else { next(token); } }); } /** * Parse */ function parseResponse(res, callback) { try { return JSON.parse(res.text); } catch (e) { callback(e); } } /** * Generate an auth token */ function generateAuthToken(callback) { // If we're within 7 days of auth token expiration, generate a new one if ((expires - expires_in / 2) < Date.now().valueOf()) { superagent .get(OAUTH) .query({ client_id: config.arcgis_id, client_secret: config.arcgis_secret, expiration: expires_in, grant_type: 'client_credentials' }) .end(function(err, res) { if (err || res.error || !res.ok) { callback(err || res.error || res.text); } else { authToken = res.body.access_token; // Set the expires time expires = new Date(); expires.setSeconds(expires.getSeconds() + res.body.expires_in); expires = expires.valueOf(); callback(null, authToken); } }); } else { callback(null, authToken); } }
import Immutable from 'immutable'; import * as ActionType from '../../actions/auth/auth'; const defaultState = Immutable.fromJS({ loggedIn: false, }); function authReducer(state = defaultState, action) { const { loggedIn, } = action; switch (action.type) { case ActionType.VERIFIED_LOGIN: return state.merge(Immutable.fromJS({ loggedIn })); default: return state; } } export default authReducer;
var PassThrough = require('stream').PassThrough describe('Object Streams', function () { it('should be supported', function (done) { var app = koala() app.use(function* (next) { var body = this.body = new PassThrough({ objectMode: true }) body.write({ message: 'a' }) body.write({ message: 'b' }) body.end() }) request(app.listen()) .get('/') .expect(200) .expect([{ message: 'a' }, { message: 'b' }], done) }) })
YUI.add("inputex-inplaceedit", function(Y){ var lang = Y.Lang;//, Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, CSS_PREFIX = 'inputEx-InPlaceEdit-'; /** * Meta field providing in place editing (the editor appears when you click on the formatted value). * @class inputEx.InPlaceEdit * @extends inputEx.Field * @constructor * @param {Object} options Added options: * <ul> * <li>visu</li> * <li>editorField</li> * <li>animColors</li> * </ul> */ inputEx.InPlaceEdit = function(options) { inputEx.InPlaceEdit.superclass.constructor.call(this, options); this.publish('openEditor'); this.publish('closeEditor'); }; lang.extend(inputEx.InPlaceEdit, inputEx.Field, { /** * Set the default values of the options * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.InPlaceEdit.superclass.setOptions.call(this, options); this.options.visu = options.visu; this.options.editorField = options.editorField; //this.options.buttonTypes = options.buttonTypes || {ok:"submit",cancel:"link"}; this.options.buttonConfigs = options.buttonConfigs || [{ type: "submit", value: inputEx.messages.okEditor, className: "inputEx-Button "+CSS_PREFIX+'OkButton', onClick: {fn: this.onOkEditor, scope:this} },{ type: "link", value: inputEx.messages.cancelEditor, className: "inputEx-Button "+CSS_PREFIX+'CancelLink', onClick: {fn: this.onCancelEditor, scope:this} }]; this.options.animColors = options.animColors || null; }, /** * Override renderComponent to create 2 divs: the visualization one, and the edit in place form */ renderComponent: function() { this.renderVisuDiv(); this.renderEditor(); }, /** * Render the editor */ renderEditor: function() { this.editorContainer = inputEx.cn('div', {className: CSS_PREFIX+'editor'}, {display: 'none'}); // Render the editor field this.editorField = inputEx(this.options.editorField,this); var editorFieldEl = this.editorField.getEl(); this.editorContainer.appendChild( editorFieldEl ); Y.one(editorFieldEl).addClass(CSS_PREFIX+'editorDiv'); this.buttons = []; for (var i = 0; i < this.options.buttonConfigs.length ; i++){ var config = this.options.buttonConfigs[i]; config.parentEl = this.editorContainer; this.buttons.push(new inputEx.widget.Button(config)); } // Line breaker () this.editorContainer.appendChild( inputEx.cn('div',null, {clear: 'both'}) ); this.fieldContainer.appendChild(this.editorContainer); }, /** * Set the color when hovering the field * @param {Event} e The original mouseover event */ onVisuMouseOver: function(e) { // to totally disable the visual effect on mouse enter, you should change css options inputEx-InPlaceEdit-visu:hover if(this.disabled) return; if(this.colorAnim) { this.colorAnim.stop(true); } inputEx.sn(this.formattedContainer, null, {backgroundColor: this.options.animColors.from }); }, /** * Start the color animation when hovering the field * @param {Event} e The original mouseout event */ onVisuMouseOut: function(e) { var optionsAnim; if(this.disabled) return; // Start animation if(this.colorAnim) { this.colorAnim.stop(true); } if(!this.options.animColors) return; optionsAnim = { node: Y.one(this.formattedContainer), } if(this.options.animColors.from){ optionsAnim.from = { backgroundColor : this.options.animColors.from } } if(this.options.animColors.from){ optionsAnim.to = { backgroundColor : this.options.animColors.to } } this.colorAnim = new Y.Anim(optionsAnim); this.colorAnim.on("end",function() { Y.one(this.formattedContainer).setStyle('background-color', ''); }); this.colorAnim.run(); }, /** * Create the div that will contain the visualization of the value */ renderVisuDiv: function() { this.formattedContainer = inputEx.cn('div', {className: 'inputEx-InPlaceEdit-visu'}); if( lang.isFunction(this.options.formatDom) ) { this.formattedContainer.appendChild( this.options.formatDom(this.options.value) ); } else if( lang.isFunction(this.options.formatValue) ) { this.formattedContainer.innerHTML = this.options.formatValue(this.options.value); } else { this.formattedContainer.innerHTML = lang.isUndefined(this.options.value) ? inputEx.messages.emptyInPlaceEdit: this.options.value; } this.fieldContainer.appendChild(this.formattedContainer); }, /** * Adds the events for the editor and color animations */ initEvents: function() { Y.one(this.formattedContainer).on("click", this.openEditor, this, true); // For color animation (if specified) if (this.options.animColors) { Y.one(this.formattedContainer).on('mouseover', this.onVisuMouseOver, this); Y.one(this.formattedContainer).on('mouseout', this.onVisuMouseOut, this); } if(this.editorField.el) { var that = this; // Register some listeners Y.on("key", function(){ that.onKeyUp },"#"+Y.one(this.editorField.el).get("id"),"up:"); Y.on("key", function(){ that.onKeyDown },"#"+Y.one(this.editorField.el).get("id"),"down:" ); } }, /** * Handle some keys events to close the editor * @param {Event} e The original keyup event */ onKeyUp: function(e) { // Enter if( e.keyCode == 13) { this.onOkEditor(e); } // Escape if( e.keyCode == 27) { this.onCancelEditor(e); } }, /** * Handle the tabulation key to close the editor * @param {Event} e The original keydown event */ onKeyDown: function(e) { // Tab if(e.keyCode == 9) { this.onOkEditor(e); } }, /** * Validate the editor (ok button, enter key or tabulation key) */ onOkEditor: function(e) { e.halt(); var newValue = this.editorField.getValue(); this.setValue(newValue); this.closeEditor(); var that = this; setTimeout(function() {that.fire("updated",newValue);}, 50); }, /** * Close the editor on cancel (cancel button, blur event or escape key) * @param {Event} e The original event (click, blur or keydown) */ onCancelEditor: function(e) { e.halt(); this.closeEditor(); }, /** * Close the editor on cancel (cancel button, blur event or escape key) * @param {Event} e The original event (click, blur or keydown) */ closeEditor: function() { this.editorContainer.style.display = 'none'; this.formattedContainer.style.display = ''; this.fire("closeEditor") }, /** * Override enable to Enable openEditor */ enable: function(){ this.disabled = false; inputEx.sn(this.formattedContainer, {className: 'inputEx-InPlaceEdit-visu'}); }, /** * Override disable to Disable openEditor */ disable: function(){ this.disabled = true; inputEx.sn(this.formattedContainer, {className: 'inputEx-InPlaceEdit-visu-disable'}); }, /** * Display the editor */ openEditor: function() { if(this.disabled) return; var value = this.getValue(); this.editorContainer.style.display = ''; this.formattedContainer.style.display = 'none'; if(!lang.isUndefined(value)) { this.editorField.setValue(value); } // Set focus in the element ! this.editorField.focus(); // Select the content if(this.editorField.el && lang.isFunction(this.editorField.el.setSelectionRange) && (!!value && !!value.length)) { this.editorField.el.setSelectionRange(0,value.length); } this.fire("openEditor"); }, /** * Returned the previously stored value * @return {Any} The value of the subfield */ getValue: function() { var editorOpened = (this.editorContainer.style.display == ''); return editorOpened ? this.editorField.getValue() : this.value; }, /** * Set the value and update the display * @param {Any} value The value to set * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { // Store the value this.value = value; if(lang.isUndefined(value) || value == "") { inputEx.renderVisu(this.options.visu, inputEx.messages.emptyInPlaceEdit, this.formattedContainer); } else { inputEx.renderVisu(this.options.visu, this.value, this.formattedContainer); } // If the editor is opened, update it if(this.editorContainer.style.display == '') { this.editorField.setValue(value); } inputEx.InPlaceEdit.superclass.setValue.call(this, value, sendUpdatedEvt); }, /** * Close the editor when calling the close function on this field */ close: function() { this.editorContainer.style.display = 'none'; this.formattedContainer.style.display = ''; this.fire("openEditor"); } }); inputEx.messages.emptyInPlaceEdit = "(click to edit)"; inputEx.messages.cancelEditor = "cancel"; inputEx.messages.okEditor = "Ok"; // Register this class as "inplaceedit" type inputEx.registerType("inplaceedit", inputEx.InPlaceEdit, [ { type:'type', label: 'Editor', name: 'editorField'} ]); }, '0.1.1', { requires:["anim","inputex-field","inputex-button"] })
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var core_1 = require("@angular/core"); var RemainingTimePipe = (function () { function RemainingTimePipe() { } RemainingTimePipe.prototype.transform = function (date) { var DaysInMonths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; var Months = "JanFebMarAprMayJunJulAugSepOctNovDec"; var padding = "in "; //Input pattern example: 2017-01-02T09:23:00.000Z var input = date + ""; var splitted = input.split('T'); var today = new Date(); var year = +splitted[0].split('-')[0]; var month = +splitted[0].split('-')[1]; var day = +splitted[0].split('-')[2]; var splittedTime = splitted[1].split(':'); var hour = +splittedTime[0]; var minute = +splittedTime[1]; var second = +splittedTime[2].split('.')[0]; //Years var currentYear = today.getFullYear(); var remaining = year - currentYear; if (remaining < 0) { return 'Started'; } if (remaining > 0) { if (remaining == 1) { return padding + '1 year'; } return padding + remaining + ' years'; } //Months var currentMonth = today.getMonth() + 1; remaining = month - currentMonth; if (remaining > 0) { if (remaining == 1) { //TODO Leap year var currentDate = today.getDate(); var daysInPreviousMonth = (month != 0 ? DaysInMonths[month - 1] : DaysInMonths[11]); var daysRemaining = (daysInPreviousMonth + day) - currentDate; if (daysRemaining < 7) { if (daysRemaining == 1) { return padding + '1 day'; } return padding + daysRemaining + ' days'; } var weeksPassed = daysRemaining / 7; weeksPassed = Math.round(weeksPassed); if (weeksPassed == 1) { return padding + '1 week'; } return padding + weeksPassed + ' weeks'; } return padding + remaining + ' months'; } //Days var currentDay = today.getDate(); var daysPassed = day - currentDay; if (daysPassed > 0) { if (daysPassed < 7) { if (daysPassed == 1) { return padding + '1 day'; } return padding + daysPassed + ' days'; } var weeksPassed = daysPassed / 7; weeksPassed = Math.round(weeksPassed); if (weeksPassed == 1) { return padding + '1 week'; } return padding + weeksPassed + ' weeks'; } //Hours var currentHour = today.getHours(); remaining = hour - currentHour; if (remaining > 1) { if (remaining == 2) { return padding + '1 hour'; } return padding + remaining + ' hours'; } //Minutes var currentMinute = today.getMinutes(); if (remaining == 1) { remaining = 60 + minute - currentMinute; } else { remaining = minute - currentMinute; } if (remaining > 0) { if (remaining == 1) { return padding + 'a minute'; } return padding + remaining + ' minutes'; } //Seconds var currentSecond = today.getSeconds(); remaining = second - currentSecond; if (remaining > 0) { return padding + 'less than a minute'; } return 'Started'; }; return RemainingTimePipe; }()); RemainingTimePipe = __decorate([ core_1.Pipe({ name: 'remainingTimePipe' }), __metadata("design:paramtypes", []) ], RemainingTimePipe); exports.RemainingTimePipe = RemainingTimePipe; //# sourceMappingURL=remainingTimePipe.js.map
/* eslint-disable import/no-extraneous-dependencies,import/no-unresolved */ import React, { useState } from 'react'; import { Form } from 'react-bootstrap'; import { Typeahead } from 'react-bootstrap-typeahead'; /* example-start */ const options = [ 'Warsaw', 'Kraków', 'Łódź', 'Wrocław', 'Poznań', 'Gdańsk', 'Szczecin', 'Bydgoszcz', 'Lublin', 'Katowice', 'Białystok', 'Gdynia', 'Częstochowa', 'Radom', 'Sosnowiec', 'Toruń', 'Kielce', 'Gliwice', 'Zabrze', 'Bytom', 'Olsztyn', 'Bielsko-Biała', 'Rzeszów', 'Ruda Śląska', 'Rybnik', ]; const FilteringExample = () => { const [caseSensitive, setCaseSensitive] = useState(false); const [ignoreDiacritics, setIgnoreDiacritics] = useState(true); return ( <> <Typeahead caseSensitive={caseSensitive} id="filtering-example" ignoreDiacritics={ignoreDiacritics} options={options} placeholder="Cities in Poland..." /> <Form.Group> <Form.Check checked={caseSensitive} id="case-sensitive-filtering" label="Case-sensitive filtering" onChange={(e) => setCaseSensitive(e.target.checked)} type="checkbox" /> <Form.Check checked={!ignoreDiacritics} id="diacritical-marks" label="Account for diacritical marks" onChange={(e) => setIgnoreDiacritics(!e.target.checked)} type="checkbox" /> </Form.Group> </> ); }; /* example-end */ export default FilteringExample;
export default { hello : "hello" };
TaskManager.module('ContentModule.List', function (List, App, Backbone) { 'use strict'; List.Controller = Marionette.Controller.extend({ initialize: function (options) { var tasksList = App.request('taskList'), listView = this.getView(tasksList); if (options.region) { this.region = options.region; this.listenTo(listView, this.close); this.region.show(listView); } }, getView: function (tasksList) { return new List.View({collection: tasksList}); } }); });
'use strict'; var Project = require('ember-cli/lib/models/project'); function MockProject() { var root = process.cwd(); var pkg = {}; Project.apply(this, [root, pkg]); } MockProject.prototype.require = function(file) { if (file === './server') { return function() { return { listen: function() { arguments[arguments.length-1](); } }; }; } }; MockProject.prototype.config = function() { return this._config || { baseURL: '/', locationType: 'auto' }; }; MockProject.prototype.has = function(key) { return (/server/.test(key)); }; MockProject.prototype.name = function() { return 'mock-project'; }; MockProject.prototype.initializeAddons = Project.prototype.initializeAddons; MockProject.prototype.buildAddonPackages = Project.prototype.buildAddonPackages; MockProject.prototype.discoverAddons = Project.prototype.discoverAddons; MockProject.prototype.addIfAddon = Project.prototype.addIfAddon; MockProject.prototype.setupBowerDirectory = Project.prototype.setupBowerDirectory; MockProject.prototype.dependencies = function() { return []; }; MockProject.prototype.isEmberCLIAddon = function() { return false; }; module.exports = MockProject;
'use strict'; function NavalMap(canvasId, imageMapUrl, imageCompassUrl, config) { this.canvas = document.getElementById(canvasId); this.imageMap = new Image(); this.imageCompass = new Image(); this.config = config; this.itemsLoaded = false; this.nationsLoaded = false; this.shopsLoaded = false; this.portsLoaded = false; this.imageMapLoaded = false; this.imageCompassLoaded = false; this.init(imageMapUrl, imageCompassUrl); } NavalMap.prototype.init = function init(imageMapUrl, imageCompassUrl) { var self = this; this.loadEverything(imageMapUrl, imageCompassUrl, function () { var stage = new createjs.Stage(self.canvas); createjs.Touch.enable(stage); stage.enableMouseOver(5); stage.tickEnabled = false; //createjs.Ticker.framerate = 60; createjs.Ticker.timingMode = createjs.Ticker.RAF; self.map = new Map(self.canvas, stage, self.imageMap, self.imageCompass, self.config); }); }; NavalMap.prototype.loadImageMap = function loadImageMap(url, cb) { this.imageMap.src = url; var self = this; this.imageMap.onload = function () { self.imageMapLoaded = true; if (self.checkEverethingIsLoaded()) { if(cb) { cb(); } } }; }; NavalMap.prototype.loadImageCompass = function loadImageCompass(url, cb) { this.imageCompass.src = url; var self = this; this.imageCompass.onload = function () { self.imageCompassLoaded = true; if (self.checkEverethingIsLoaded()) { if(cb) { cb(); } } }; }; NavalMap.prototype.checkEverethingIsLoaded = function () { return this.itemsLoaded && this.nationsLoaded && this.shopsLoaded && this.portsLoaded && this.imageMapLoaded && this.imageCompassLoaded; }; NavalMap.prototype.loadItems = function(cb) { var self = this; $.getScript("items.php").done(function(){ self.itemsLoaded = true; if (self.checkEverethingIsLoaded()) { if(cb) { cb(); } } }); }; NavalMap.prototype.loadNations = function(cb) { var self = this; $.getScript("nations.php").done(function(){ self.nationsLoaded = true; if (self.checkEverethingIsLoaded()) { if(cb) { cb(); } } }); }; NavalMap.prototype.loadShops = function(cb) { var self = this; $.getScript("shops.php").done(function(){ self.shopsLoaded = true; if (self.checkEverethingIsLoaded()) { if(cb) { cb(); } } }); }; NavalMap.prototype.loadPorts = function(cb) { var self = this; $.getScript("ports.php").done(function(){ self.portsLoaded = true; if (self.checkEverethingIsLoaded()) { if(cb) { cb(); } } }); }; NavalMap.prototype.loadEverything = function loadEverything(urlMap, urlCompass, cb) { this.loadImageMap(urlMap, cb); this.loadImageCompass(urlCompass, cb); this.loadShops(cb); this.loadItems(cb); this.loadPorts(cb); this.loadNations(cb); }; function Map(canvas, stage, imageMap, imageCompass, config) { this.canvas = canvas; this.config = config; this.stage = stage; this.globalContainer = new createjs.Container(); this.mapContainer = new createjs.Container(); this.unmodifiedMapContainer = {}; this.compass = new Compass(imageCompass, config); this.update = false; this.alreadyZooming = false; this.gpsCursor = undefined; this.statistics = {}; this.fpsLabel = new createjs.Text("-- fps", "bold 18px Arial", "black"); this.init(imageMap); } Map.prototype.init = function (imageMap) { this.stage.addChild(this.globalContainer); this.stage.addChild(this.fpsLabel); this.fpsLabel.x = 240; this.fpsLabel.y = 10; this.globalContainer.addChild(this.mapContainer); this.globalContainer.addChild(this.compass); this.mapContainer.addChild(new createjs.Bitmap(imageMap)); this.mapContainer.hasBeenDblClicked = false; this.initContainerMap(); this.resizeCanvas(this); this.createAllEvents(); var self = this; Nations.Nations.forEach(function(nation) { self.statistics[nation.Name] = 0; }); this.addPorts(); this.stage.update(); self.tickEvent(); setTimeout(function() { $("#progress-bar-load").hide(); $(".top-nav").removeClass('hide'); $("#port-information").removeClass('hide'); $("#how-to-use").removeClass('hide'); },600); //this.update = true; }; Map.prototype.initContainerMap = function () { this.setScale(this.config.map.scale); this.centerTo(this.config.map.x, this.config.map.y); var self = this; this.mapContainer.addLine = function (x, y) { var shape = new createjs.Shape(); self.mapContainer.lineIndex = self.mapContainer.children.length; self.mapContainer.addChild(shape); shape.graphics.setStrokeStyle(3, "round").beginStroke('#3d3d3d').moveTo((self.compass.x - self.mapContainer.x) / self.mapContainer.scale, (self.compass.y - self.mapContainer.y) / self.mapContainer.scale).lineTo(x, y); }; this.mapContainer.removeLine = function () { if (self.mapContainer.lineIndex) { self.mapContainer.removeChildAt(self.mapContainer.lineIndex); } }; //this.globalContainer.cursor = "default"; }; Map.prototype.populateStatistics = function () { var stats = $("#ports-number"); $.each(this.statistics, function(name, number) { stats.append('<strong>' + name + ' : </strong>' + number + '<br>'); }) }; Map.prototype.setScale = function (scale) { this.mapContainer.scale = this.mapContainer.scaleX = this.mapContainer.scaleY = scale; }; Map.prototype.zoom = function (increment) { this.setScale(this.mapContainer.scale + increment); }; Map.prototype.addPorts = function () { var self = this; setTimeout(function() { Ports.forEach(function (port, idx) { var circle = new createjs.Shape(); circle.graphics.beginFill(self.config.color[port.Nation]).drawCircle(0, 0, 5); circle.x = (port.sourcePosition.x + self.config.portsOffset.x) * self.config.portsOffset.ratio; circle.y = (port.sourcePosition.y + self.config.portsOffset.y) * self.config.portsOffset.ratio; circle.cursor = "pointer"; circle.idx = idx; self.statistics[getNationFromIdx(port.Nation).Name] += 1; circle.on("click", function () { var currPort = Ports[this.idx]; $('#port-title').text(currPort.Name); $('#nation').text(getNationFromIdx(currPort.Nation).Name); var timer = currPort.ConquestFlagTimeSlot + 'h - ' + (currPort.ConquestFlagTimeSlot + 2) + "h"; $('#timer').text(currPort.ConquestFlagTimeSlot == -1?'No Timer':timer); $('#capital').text(currPort.Capital?'yes':'no'); $('#regional').text(currPort.Regional?'yes':'no'); $('#shallow').text(currPort.Depth == 1?'yes':'no'); $('#capturer').text(currPort.Capturer); var produces = Shops[this.idx].ResourcesProduced; var consumes = Shops[this.idx].ResourcesConsumed; $('#produces-list').html(''); $('#consumes-list').html(''); produces.forEach(function (produce) { var item = getItemTemplateFromId(produce.Key); $('#produces-list').append('<li class="list-group-item">'+item.Name+' : '+ produce.Value+'</li>'); }); consumes.forEach(function (consume) { var item = getItemTemplateFromId(consume.Key); $('#consumes-list').append('<li class="list-group-item">'+item.Name+' : '+ consume.Value+'</li>'); }); }); circle.cache(-5, -5, 10, 10); self.mapContainer.addChild(circle); }); self.update = true; self.stage.tick(); self.populateStatistics(); },200); }; Map.prototype.keepMapUnderPos = function (x, y) { var mapPos = this.getMapPosFromWindowPos(x, y); this.globalContainer.x = x - this.mapContainer.scale * mapPos.x; this.globalContainer.y = y - this.mapContainer.scale * mapPos.y; }; Map.prototype.keepCompassUnderCurrentPos = function () { var mapPos = this.getMapPosFromWindowPos(this.compass.x + this.unmodifiedMapContainer.x, this.compass.y + this.unmodifiedMapContainer.y); this.compass.x = mapPos.x * this.mapContainer.scale; this.compass.y = mapPos.y * this.mapContainer.scale; }; Map.prototype.centerTo = function (x, y) { this.globalContainer.x = this.canvas.width / 2 - this.mapContainer.scale * x; this.globalContainer.y = this.canvas.height / 2 - this.mapContainer.scale * y; }; Map.prototype.getNewWindowPosFromMapPos = function (x, y) { return { x: x * this.mapContainer.scale + this.mapContainer.x - this.globalContainer.x, y: y * this.mapContainer.scale + this.mapContainer.y - this.globalContainer.y } }; Map.prototype.getMapPosFromGpsPos = function(x , y) { return { x: Math.round(x * this.config.gps.ratio + this.config.gps.x), y: Math.round(-(y * this.config.gps.ratio - this.config.gps.y)) } }; Map.prototype.getMapPosFromWindowPos = function (x, y) { return { x: (x - this.unmodifiedMapContainer.x) / this.unmodifiedMapContainer.scale, y: (y - this.unmodifiedMapContainer.y) / this.unmodifiedMapContainer.scale }; }; Map.prototype.gps = function (x, y) { if (this.gpsCursor) { this.mapContainer.removeChild(this.gpsCursor); } this.gpsCursor = new createjs.Shape(); this.gpsCursor.graphics.setStrokeStyle(2).beginStroke("OrangeRed").drawCircle(0,0,30); var mapPos = this.getMapPosFromGpsPos(x, y); this.gpsCursor.x = mapPos.x + (Math.random() > 0.5 ? Math.floor((Math.random() * 10 * 13 / 10)) : - Math.floor((Math.random() * 10 * 13 / 10))); this.gpsCursor.y = mapPos.y + (Math.random() > 0.5 ? Math.floor((Math.random() * 10 * 13 / 10)) : - Math.floor((Math.random() * 10 * 13 / 10))); this.mapContainer.addChild(this.gpsCursor); this.centerTo(mapPos.x, mapPos.y); this.update = true; }; Map.prototype.gpsSubmitEvent = function () { var self = this; $("#gpsForm").submit(function (event) { event.preventDefault(); self.gps($('#xGps').val(), $('#yGps').val()); }); }; Map.prototype.createAllEvents = function () { this.resizeCanvasEvent(); this.gpsSubmitEvent(); this.mouseDownEvent(); this.clickEvent(); this.pressMoveEvent(); //this.pressUpEvent(); this.dblClickEvent(); this.mouseWheelEvent(); }; Map.prototype.dblClickEvent = function () { var self = this; this.globalContainer.on("dblclick", function (evt) { if (this.hasBeenDblClicked) { self.mapContainer.addLine((evt.stageX - self.globalContainer.x) / self.mapContainer.scale, (evt.stageY - self.globalContainer.y) / self.mapContainer.scale); this.hasBeenDblClicked = false; } else { self.mapContainer.removeLine(); self.compass.x = (evt.stageX - self.globalContainer.x); self.compass.y = (evt.stageY - self.globalContainer.y); this.hasBeenDblClicked = true; } self.update = true; }); }; Map.prototype.clickEvent = function () { var self = this; this.globalContainer.on("click", function (evt) { var mapPos = self.getMapPosFromWindowPos(evt.stageX, evt.stageY); var gpsPos = { x: Math.round((mapPos.x - self.config.gps.x) / self.config.gps.ratio), y: Math.round(-(mapPos.y - self.config.gps.y) / self.config.gps.ratio) }; $('#cursorX').text(gpsPos.x); $('#cursorY').text(gpsPos.y); }); }; Map.prototype.mouseDownEvent = function () { this.globalContainer.on("mousedown", function (evt) { this.offset = {x: this.x - evt.stageX, y: this.y - evt.stageY}; //this.cursor = "move"; }); }; Map.prototype.pressMoveEvent = function () { var self = this; this.globalContainer.on("pressmove", function (evt) { this.x = evt.stageX + this.offset.x; this.y = evt.stageY + this.offset.y; //this.cursor = "move"; self.update = true; }); }; Map.prototype.pressUpEvent = function () { var self = this; this.globalContainer.on("pressup", function (evt) { this.cursor = "default"; //self.update = true; }); }; Map.prototype.mouseWheelEvent = function () { var self = this; $('#canvas').mousewheel(function (event) { if (!self.alreadyZooming) { self.alreadyZooming = true; setTimeout(function () { self.alreadyZooming = false; }, 45); if (event.deltaY == 1) { if (self.mapContainer.scale < 1.8) { self.zoom(0.1); self.keepMapUnderPos(event.pageX, event.pageY); self.keepCompassUnderCurrentPos(); } } else if (event.deltaY == -1) { if (self.mapContainer.scale > 0.4) { self.zoom(-0.1); self.keepMapUnderPos(event.pageX, event.pageY); self.keepCompassUnderCurrentPos(); } } self.update = true; } }); }; Map.prototype.resizeCanvasEvent = function () { var self = this; window.addEventListener('resize', function(){self.resizeCanvas(self)}, false); }; Map.prototype.resizeCanvas = function (self) { self.canvas.width = window.innerWidth; self.canvas.height = window.innerHeight; self.update = true; }; Map.prototype.tickEvent = function () { var self = this; createjs.Ticker.addEventListener("tick", function (event) { self.fpsLabel.text = Math.round(createjs.Ticker.getMeasuredFPS()) + " fps"; if (self.update) { self.copyMapContainer(); self.update = false; // only update once self.stage.update(event); } }); }; Map.prototype.copyMapContainer = function () { this.unmodifiedMapContainer = { x: this.globalContainer.x, y: this.globalContainer.y, scale: this.mapContainer.scale } }; function Compass(imageCompass, config) { this.addChild(new createjs.Bitmap(imageCompass).setTransform(-imageCompass.width / 2, -imageCompass.height / 2)); this.setScale(config.compass.scale); this.x = config.compass.x; this.y = config.compass.y; } Compass.prototype = new createjs.Container(); Compass.prototype.constructor = Compass; Compass.prototype.setScale = function (scale) { this.scale = this.scaleX = this.scaleY = scale; };
import _curry2 from "./_curry2"; /** * Accepts an object and build a function expecting a key to create a "pair" with the key * and its value. * @private * @function * @param {Object} obj * @returns {Function} */ var _keyToPairIn = _curry2(function (obj, key) { return [key, obj[key]]; }); export default _keyToPairIn;
'use strict'; /** * The basic http module, used to create the server. * * @link http://nodejs.org/api/http.html */ alchemy.use('http', 'http'); /** * This module contains utilities for handling and transforming file paths. * Almost all these methods perform only string transformations. * The file system is not consulted to check whether paths are valid. * * @link http://nodejs.org/api/path.html */ alchemy.use('path', 'path'); /** * File I/O is provided by simple wrappers around standard POSIX functions. * * @link http://nodejs.org/api/fs.html */ alchemy.use('graceful-fs', 'fs'); /** * Usefull utilities. * * @link http://nodejs.org/api/util.html */ alchemy.use('util', 'util'); /** * The native mongodb library * * @link https://npmjs.org/package/mongodb */ alchemy.use('mongodb', 'mongodb'); /** * The LESS interpreter. * * @link https://npmjs.org/package/less */ alchemy.use('less', 'less'); /** * Hawkejs view engine * * @link https://npmjs.org/package/hawkejs */ alchemy.use('hawkejs', 'hawkejs'); alchemy.hawkejs = new Classes.Hawkejs.Hawkejs; /** * The function to detect when everything is too busy */ alchemy.toobusy = alchemy.use('toobusy-js', 'toobusy'); // If the config is a number, use that as the lag threshold if (typeof alchemy.settings.toobusy === 'number') { alchemy.toobusy.maxLag(alchemy.settings.toobusy); } /** * Load Sputnik, the stage-based launcher */ alchemy.sputnik = new (alchemy.use('sputnik', 'sputnik'))(); /** * Real-time apps made cross-browser & easy with a WebSocket-like API. * * @link https://npmjs.org/package/socket.io */ alchemy.use('socket.io', 'io'); /** * Recursively mkdir, like `mkdir -p`. * This is a requirement fetched from express * * @link https://npmjs.org/package/mkdirp */ alchemy.use('mkdirp', 'mkdirp'); /** * Base useragent library * * @link https://npmjs.org/package/useragent */ alchemy.use('useragent'); /** * Enable the `satisfies` method in the `useragent` library * * @link https://www.npmjs.com/package/useragent#adding-more-features-to-the-useragent */ require('useragent/features');
/** * Copyright (c) 2015, Alexander Orzechowski. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /** * Currently in beta stage. Changes can and will be made to the core mechanic * making this not backwards compatible. * * Github: https://github.com/Need4Speed402/tessellator */ Tessellator.Model.prototype.drawObject = Tessellator.Model.prototype.add;
var crypto = require('crypto'); var lob = require('lob-enc') var hashname = require('hashname'); var log = require("./log")("Handshake") module.exports = { bootstrap : handshake_bootstrap, validate : handshake_validate, from : handshake_from, types : handshake_types, collect : handshake_collect }; var hcache = {} setInterval(function(){hcache = {}}, 60 * 1000) /** * collect incoming handshakes to accept them * @param {object} id * @param {handshake} handshake * @param {pipe} pipe * @param {Buffer} message */ function handshake_collect(mesh, id, handshake, pipe, message) { handshake = handshake_bootstrap(handshake); if (!handshake) return false; var valid = handshake_validate(id,handshake, message, mesh); if (!valid) return false; // get all from cache w/ matching at, by type var types = handshake_types(handshake, id); // bail unless we have a link if(!types.link) { log.debug('handshakes w/ no link yet',id,types); return false; } // build a from json container var from = handshake_from(handshake, pipe, types.link) // if we already linked this hashname, just update w/ the new info if(mesh.index[from.hashname]) { log.debug('refresh link handshake') from.sync = false; // tell .link to not auto-sync! return mesh.link(from); } else { } log.debug('untrusted hashname',from); from.received = {packet:types.link._message, pipe:pipe} // optimization hints as link args from.handshake = types; // include all handshakes if(mesh.accept) mesh.accept(from); return false; } function handshake_bootstrap(handshake){ // default an at for bare key handshakes if not given if(typeof handshake.json.at === 'undefined') handshake.json.at = Date.now(); // verify at if(typeof handshake.json.at != 'number' || handshake.json.at <= 0) { log.debug('invalid handshake at',handshake.json); return false; } // default the handshake type if(typeof handshake.json.type != 'string') handshake.json.type = 'link'; // upvert deprecated key to link type if(handshake.json.type == 'key') { // map only csid keys into attachment header var json = {}; hashname.ids(handshake.json).forEach(function(csid){ if(handshake.json[csid] === true) handshake.json.csid = csid; // cruft json[csid] = handshake.json[csid]; }); if(message) json[message.head.toString('hex')] = true; var attach = lob.encode(json, handshake.body); handshake.json.type = 'link'; handshake.body = attach; } return handshake } function handshake_validate(id,handshake, message, mesh){ if(handshake.json.type == 'link') { // if it came from an encrypted message if(message) { // make sure the link csid matches the message csid handshake.json.csid = message.head.toString('hex'); // stash inside the handshake, can be used later to create the exchange immediately handshake._message = message; } var attach = lob.decode(handshake.body); if(!attach) { log.debug('invalid link handshake attachment',handshake.body); return false; } // make sure key info is at least correct var keys = {}; keys[handshake.json.csid] = attach.body; var csid = hashname.match(mesh.keys, keys, null, attach.json); if(handshake.json.csid != csid) { log.debug('invalid key handshake, unsupported csid',attach.json, keys); return false; } handshake.json.hashname = hashname.fromKeys(keys, attach.json); if(!handshake.json.hashname) { log.debug('invalid key handshake, no hashname',attach.json, keys); return false; } // hashname is valid now, so stash key bytes in handshake handshake.body = attach.body; } // add it to the cache hcache[id] = (hcache[id] || [] ).concat([handshake]); return true; } function handshake_types (handshake, id){ var types = {} hcache[id].forEach(function(hs){ if(hs.json.at === handshake.json.at) types[hs.json.type] = hs; }); return types; } function handshake_from (handshake, pipe, link){ return { paths : (pipe.path) ? [pipe.path] : [], hashname : link.json.hashname, csid : link.json.csid, key : link.body }; }
'use strict'; /* https://github.com/angular/protractor/blob/master/docs/toc.md */ describe('my app', function() { browser.get('index.html'); it('should automatically redirect to /home when location hash/fragment is empty', function() { expect(browser.getLocationAbsUrl()).toMatch("/home"); }); describe('view1', function() { beforeEach(function() { browser.get('index.html#/home'); }); it('should render home when user navigates to /home', function() { expect(element.all(by.css('[ng-view] p')).first().getText()). toMatch(/partial for view 1/); }); }); describe('view2', function() { beforeEach(function() { browser.get('index.html#/view2'); }); it('should render view2 when user navigates to /view2', function() { expect(element.all(by.css('[ng-view] p')).first().getText()). toMatch(/partial for view 2/); }); }); });
datab = [{},{"Attribute":{"colspan":"1","rowspan":"1","text":"Modality"},"Tag":{"colspan":"1","rowspan":"1","text":"(0008,0060)"},"Value":{"colspan":"1","rowspan":"1","text":"CT"}},{"Attribute":{"colspan":"1","rowspan":"1","text":"Photometric Interpretation"},"Tag":{"colspan":"1","rowspan":"1","text":"(0028,0004)"},"Value":{"colspan":"1","rowspan":"1","text":"MONOCHROME2"}}];
function RenderPassManager(renderer) { // not implemented yet throw "Not implemented"; var mRenderPasses = []; return this; } RenderPassManager.prototype.addRenderPass = function(renderPass) { mRenderPasses.push(renderPass); }; RenderPassManager.prototype.render = function() { for(var renderPass in mRenderPasses) { renderPass.sort(); renderPass.render(renderer); renderPass.clear(); } };
#!/usr/bin/env node var path = require('path'); var fs = require('fs'); var optimist = require('optimist'); var prompt = require('prompt'); var efs = require('efs'); var encext = require('./index'); var defaultAlgorithm = 'aes-128-cbc'; var argv = optimist .usage('usage: encext [-r] [-a algorithm] [file ...]') .describe('r', 'recursively encrypt supported files') .boolean('r') .alias('r', 'recursive') .default('r', false) .describe('a', 'encryption algorithm') .string('a') .alias('a', 'algorithm') .default('a', defaultAlgorithm) .argv; if (argv.help) { optimist.showHelp(); } var pwdPrompt = { name: 'password', description: 'Please enter the encryption password', required: true, hidden: true }; prompt.message = 'encext'; prompt.colors = false; prompt.start(); prompt.get(pwdPrompt, function(err, result) { if (err) { console.error('[ERROR]', err); process.exit(1); } efs = efs.init(argv.algorithm, result.password); argv._.forEach(processPath); }); function processPath(fspath) { fs.stat(fspath, onStat); function onStat(err, stats) { if (err) { return exit(err) } if (stats.isDirectory() && argv.recursive) { fs.readdir(fspath, onReaddir); } else if (stats.isFile() && encext.isSupported(fspath)) { encrypt(fspath); } } function onReaddir(err, fspaths) { if (err) { return exit(err) } fspaths.forEach(function(p) { processPath(path.join(fspath, p)); }); } } function encrypt(fspath) { var encpath = fspath + '_enc'; var writeStream = efs.createWriteStream(encpath); writeStream.on('error', exit); var readStream = fs.createReadStream(fspath); readStream.on('error', exit); readStream.on('end', function() { console.info(fspath, 'encrypted and written to', encpath); }); readStream.pipe(writeStream); } function exit(err) { console.error(err); process.exit(1); }
export function wedgeYZ(a, b) { return a.y * b.z - a.z * b.y; } export function wedgeZX(a, b) { return a.z * b.x - a.x * b.z; } export function wedgeXY(a, b) { return a.x * b.y - a.y * b.x; }
var scroungejs = require('scroungejs'), startutils = require('./startutil'); startutils.createFileIfNotExist({ pathSrc : './test/indexSrc.html', pathFin : './test/index.html' }, function (err, res) { if (err) return console.log(err); scroungejs.build({ inputPath : [ './test/testbuildSrc', './node_modules', './bttnsys.js' ], outputPath : './test/testbuildFin', isRecursive : true, isSourcePathUnique : true, isCompressed : false, isConcatenated : false, basepage : './test/index.html' }, function (err, res) { return (err) ? console.log(err) : console.log('finished!'); }); });
var Struct = ( function() { return function ( members ) { var mode = "default"; var ctor = function( values ) { if ( mode === "new" ) { mode = "void"; return new Struct(); } if ( mode === "void" ) return; mode = "new"; var instance = Struct(); mode = "default"; extend( instance, members, values || {} ); return instance; }; var Struct = function() { return ctor.apply( undefined, arguments ); }; return Struct; }; function extend( instance, members, values ) { var pending = [{ src: values, tmpl: members, dest: instance }]; while ( pending.length ) { var task = pending.shift(); if ( task.array ) { var i = 0, len = task.array.length; for ( ; i < len; i++ ) { switch ( typeOf( task.array[ i ] ) ) { case "object": var template = task.array[ i ]; task.array[ i ] = {}; pending.push({ tmpl: template, dest: task.array[ i ] }); break; case "array": task.array[ i ] = task.array[ i ].slice( 0 ); pending.push({ array: task.array[ i ] }); break; } } } else { for ( var prop in task.tmpl ) { if ( task.src[ prop ] !== undefined ) task.dest[ prop ] = task.src[ prop ]; else { switch ( typeOf( task.tmpl[ prop ] ) ) { case "object": task.dest[ prop ] = {}; pending.push({ tmpl: task.tmpl[ prop ], dest: task.dest[ prop ] }); break; case "array": task.dest[ prop ] = task.tmpl[ prop ].slice( 0 ); pending.push({ array: task.dest[ prop ] }); break; default: task.dest[ prop ] = task.tmpl[ prop ]; break; } } } } } } } () );
var utils = require('./utils') , request = require('request') ; module.exports = { fetchGithubInfo: function(email, cb) { var githubProfile = {}; var api_call = "https://api.github.com/search/users?q="+email+"%20in:email"; var options = { url: api_call, headers: { 'User-Agent': 'Blogdown' } }; console.log("Calling "+api_call); request(options, function(err, res, body) { if(err) return cb(err); res = JSON.parse(body); if(res.total_count==1) githubProfile = res.items[0]; cb(null, githubProfile); }); }, fetchGravatarProfile: function(email, cb) { var gravatarProfile = {}; var hash = utils.getHash(email); var api_call = "http://en.gravatar.com/"+hash+".json"; console.log("Calling "+api_call); var options = { url: api_call, headers: { 'User-Agent': 'Blogdown' } }; request(options, function(err, res, body) { if(err) return cb(err); try { res = JSON.parse(body); } catch(e) { console.error("fetchGravatarProfile: Couldn't parse response JSON ", body, e); return cb(e); } if(res.entry && res.entry.length > 0) gravatarProfile = res.entry[0]; return cb(null, gravatarProfile); }); } };
module.exports = FormButtonsDirective; function FormButtonsDirective () { return { restrict: 'AE', replace: true, scope: { submitClick: '&submitClick', cancelClick: '&cancelClick' }, templateUrl: '/src/utils/views/formButtons.tmpl.html', link: function (scope, elem) { angular.element(elem[0].getElementsByClassName('form-button-submit')).on('click', function () { scope.submitClick(); }); angular.element(elem[0].getElementsByClassName('form-button-cancel')).on('click', function () { scope.cancelClick(); }); } }; }
$context.section('Простое связывание', 'Иерархическое связывание с данными с использованием простых и составных ключей'); //= require data-basic $context.section('Форматирование', 'Механизм одностороннего связывания (one-way-binding)'); //= require data-format $context.section('Настройка', 'Управление изменением виджета при обновлении данных'); //= require data-binding $context.section('Динамическое связывание', 'Управление коллекцией элементов виджета через источник данных'); //= require data-dynamic $context.section('Общие данные'); //= require data-share $context.section('"Грязные" данные', 'Уведомление родительских источников данных о том, что значение изменилось'); //= require data-dirty
import React from 'react'; import './skills.scss'; export default () => { return ( <section className="skills-section"> <svg className="bigTriangleColor separator-skills" width="100%" height="100" viewBox="0 0 100 102" preserveAspectRatio="none"> <path d="M0 0 L0 100 L70 0 L100 100 L100 0 Z" /> </svg> <h2 className="skills-header">Skills</h2> <p className="skills tlt"> Javascript/ES6 React Redux Node Express MongoDB GraphQL REST Next.js Mocha Jest JSS PostCSS SCSS LESS AWS nginx jQuery Webpack Rollup UI/Design </p> <button className="button button--wayra button--inverted skills-btn"> View My <i className="fa fa-github skills-github"></i><a className="skills-btn-a" href="https://www.github.com/musicbender" target="_blank"></a> </button> </section> ); }
import axios from 'axios'; export default axios.create({ baseURL: 'http://localhost:9000/v1/' });
/* * THIS FILE IS AUTO GENERATED FROM 'lib/lex/lexer.kep' * DO NOT EDIT */ define(["require", "exports", "bennu/parse", "bennu/lang", "nu-stream/stream", "ecma-ast/token", "ecma-ast/position", "./boolean_lexer", "./comment_lexer", "./identifier_lexer", "./line_terminator_lexer", "./null_lexer", "./number_lexer", "./punctuator_lexer", "./reserved_word_lexer", "./string_lexer", "./whitespace_lexer", "./regular_expression_lexer" ], (function(require, exports, parse, __o, __o0, lexToken, __o1, __o2, comment_lexer, __o3, line_terminator_lexer, __o4, __o5, __o6, __o7, __o8, whitespace_lexer, __o9) { "use strict"; var lexer, lexStream, lex, always = parse["always"], attempt = parse["attempt"], binds = parse["binds"], choice = parse["choice"], eof = parse["eof"], getPosition = parse["getPosition"], modifyState = parse["modifyState"], getState = parse["getState"], enumeration = parse["enumeration"], next = parse["next"], many = parse["many"], runState = parse["runState"], never = parse["never"], ParserState = parse["ParserState"], then = __o["then"], streamFrom = __o0["from"], SourceLocation = __o1["SourceLocation"], SourcePosition = __o1["SourcePosition"], booleanLiteral = __o2["booleanLiteral"], identifier = __o3["identifier"], nullLiteral = __o4["nullLiteral"], numericLiteral = __o5["numericLiteral"], punctuator = __o6["punctuator"], reservedWord = __o7["reservedWord"], stringLiteral = __o8["stringLiteral"], regularExpressionLiteral = __o9["regularExpressionLiteral"], type, type0, type1, type2, type3, p, type4, type5, type6, type7, p0, type8, p1, type9, p2, consume = ( function(tok, self) { switch (tok.type) { case "Comment": case "Whitespace": case "LineTerminator": return self; default: return tok; } }), isRegExpCtx = (function(prev) { if ((!prev)) return true; switch (prev.type) { case "Keyword": case "Punctuator": return true; } return false; }), enterRegExpCtx = getState.chain((function(prev) { return (isRegExpCtx(prev) ? always() : never()); })), literal = choice(((type = lexToken.StringToken.create), stringLiteral.map((function(x) { return [type, x]; }))), ((type0 = lexToken.BooleanToken.create), booleanLiteral.map((function(x) { return [type0, x]; }))), ((type1 = lexToken.NullToken.create), nullLiteral.map((function(x) { return [type1, x]; }))), ((type2 = lexToken.NumberToken.create), numericLiteral.map((function(x) { return [type2, x]; }))), ((type3 = lexToken.RegularExpressionToken.create), (p = next(enterRegExpCtx, regularExpressionLiteral)), p.map((function(x) { return [type3, x]; })))), token = choice(attempt(((type4 = lexToken.IdentifierToken), identifier.map((function(x) { return [type4, x]; })))), literal, ((type5 = lexToken.KeywordToken), reservedWord.map((function(x) { return [type5, x]; }))), ((type6 = lexToken.PunctuatorToken), punctuator.map((function(x) { return [type6, x]; })))), inputElement = choice(((type7 = lexToken.CommentToken), (p0 = comment_lexer.comment), p0.map((function( x) { return [type7, x]; }))), ((type8 = lexToken.WhitespaceToken), (p1 = whitespace_lexer.whitespace), p1.map((function(x) { return [type8, x]; }))), ((type9 = lexToken.LineTerminatorToken), (p2 = line_terminator_lexer.lineTerminator), p2.map( (function(x) { return [type9, x]; }))), token); (lexer = then(many(binds(enumeration(getPosition, inputElement, getPosition), (function(start, __o10, end) { var type10 = __o10[0], value = __o10[1]; return always(new(type10)(new(SourceLocation)(start, end, (start.file || end.file)), value)); })) .chain((function(tok) { return next(modifyState(consume.bind(null, tok)), always(tok)); }))), eof)); (lexStream = (function(s, file) { return runState(lexer, new(ParserState)(s, new(SourcePosition)(1, 0, file), null)); })); var y = lexStream; (lex = (function(z) { return y(streamFrom(z)); })); (exports["lexer"] = lexer); (exports["lexStream"] = lexStream); (exports["lex"] = lex); }));
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Deep close to: deepCloseTo = require( './utils/deepcloseto.js' ), // Module to be tested: log10 = require( './../lib/array.js' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'array log10', function tests() { it( 'should export a function', function test() { expect( log10 ).to.be.a( 'function' ); }); it( 'should compute the base-10 logarithm', function test() { var data, actual, expected; data = [ Math.pow( 10, 4 ), Math.pow( 10, 6 ), Math.pow( 10, 9 ), Math.pow( 10, 15 ), Math.pow( 10, 10 ), Math.pow( 10, 25 ) ]; actual = new Array( data.length ); actual = log10( actual, data ); expected = [ 4, 6, 9, 15, 10, 25 ]; assert.isTrue( deepCloseTo( actual, expected, 1e-7 ) ); }); it( 'should return an empty array if provided an empty array', function test() { assert.deepEqual( log10( [], [] ), [] ); }); it( 'should handle non-numeric values by setting the element to NaN', function test() { var data, actual, expected; data = [ true, null, [], {} ]; actual = new Array( data.length ); actual = log10( actual, data ); expected = [ NaN, NaN, NaN, NaN ]; assert.deepEqual( actual, expected ); }); });
match x: | it?(): true
import {Component} from 'react' export class Greeter { constructor (message) { this.greeting = message; } greetFrom (...names) { let suffix = names.reduce((s, n) => s + ", " + n.toUpperCase()); return "Hello, " + this.greeting + " from " + suffix; } greetNTimes ({name, times}) { let greeting = this.greetFrom(name); for (let i = 0; i < times; i++) { console.log(greeting) } } } new Greeter("foo").greetNTimes({name: "Webstorm", times: 3}) function foo (x, y, z) { var i = 0; var x = {0: "zero", 1: "one"}; var a = [0, 1, 2]; var foo = function () { } var asyncFoo = async (x, y, z) => { } var v = x.map(s => s.length); if (!i > 10) { for (var j = 0; j < 10; j++) { switch (j) { case 0: value = "zero"; break; case 1: value = "one"; break; } var c = j > 5 ? "GT 5" : "LE 5"; } } else { var j = 0; try { while (j < 10) { if (i == j || j > 5) { a[j] = i + j * 12; } i = (j << 2) & 4; j++; } do { j--; } while (j > 0) } catch (e) { alert("Failure: " + e.message); } finally { reset(a, i); } } }
var groove = require('groove'); var semver = require('semver'); var EventEmitter = require('events').EventEmitter; var util = require('util'); var mkdirp = require('mkdirp'); var fs = require('fs'); var uuid = require('./uuid'); var path = require('path'); var Pend = require('pend'); var DedupedQueue = require('./deduped_queue'); var findit = require('findit2'); var shuffle = require('mess'); var mv = require('mv'); var MusicLibraryIndex = require('music-library-index'); var keese = require('keese'); var safePath = require('./safe_path'); var PassThrough = require('stream').PassThrough; var url = require('url'); var dbIterate = require('./db_iterate'); var log = require('./log'); var importUrlFilters = require('./import_url_filters'); var youtubeSearch = require('./youtube_search'); var yauzl = require('yauzl'); var importFileFilters = [ { name: 'zip', fn: importFileAsZip, }, { name: 'song', fn: importFileAsSong, }, ]; module.exports = Player; ensureGrooveVersionIsOk(); var cpuCount = 1; var PLAYER_KEY_PREFIX = "Player."; var LIBRARY_KEY_PREFIX = "Library."; var LIBRARY_DIR_PREFIX = "LibraryDir."; var QUEUE_KEY_PREFIX = "Playlist."; var PLAYLIST_KEY_PREFIX = "StoredPlaylist."; var LABEL_KEY_PREFIX = "Label."; var PLAYLIST_META_KEY_PREFIX = "StoredPlaylistMeta."; // db: store in the DB var DB_PROPS = { key: { db: true, clientVisible: true, clientCanModify: false, type: 'string', }, name: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, artistName: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, albumArtistName: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, albumName: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, compilation: { db: true, clientVisible: true, clientCanModify: true, type: 'boolean', }, track: { db: true, clientVisible: true, clientCanModify: true, type: 'integer', }, trackCount: { db: true, clientVisible: true, clientCanModify: true, type: 'integer', }, disc: { db: true, clientVisible: true, clientCanModify: true, type: 'integer', }, discCount: { db: true, clientVisible: true, clientCanModify: true, type: 'integer', }, duration: { db: true, clientVisible: true, clientCanModify: false, type: 'float', }, year: { db: true, clientVisible: true, clientCanModify: true, type: 'integer', }, genre: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, file: { db: true, clientVisible: true, clientCanModify: false, type: 'string', }, mtime: { db: true, clientVisible: false, clientCanModify: false, type: 'integer', }, replayGainAlbumGain: { db: true, clientVisible: false, clientCanModify: false, type: 'float', }, replayGainAlbumPeak: { db: true, clientVisible: false, clientCanModify: false, type: 'float', }, replayGainTrackGain: { db: true, clientVisible: false, clientCanModify: false, type: 'float', }, replayGainTrackPeak: { db: true, clientVisible: false, clientCanModify: false, type: 'float', }, composerName: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, performerName: { db: true, clientVisible: true, clientCanModify: true, type: 'string', }, lastQueueDate: { db: true, clientVisible: false, clientCanModify: false, type: 'date', }, fingerprint: { db: true, clientVisible: false, clientCanModify: false, type: 'array_of_integer', }, playCount: { db: true, clientVisible: false, clientCanModify: false, type: 'integer', }, labels: { db: true, clientVisible: true, clientCanModify: false, type: 'set', }, }; var PROP_TYPE_PARSERS = { 'string': function(value) { return value ? String(value) : ""; }, 'date': function(value) { if (!value) return null; var date = new Date(value); if (isNaN(date.getTime())) return null; return date; }, 'integer': parseIntOrNull, 'float': parseFloatOrNull, 'boolean': function(value) { return value == null ? null : !!value; }, 'array_of_integer': function(value) { if (!Array.isArray(value)) return null; value = value.map(parseIntOrNull); for (var i = 0; i < value.length; i++) { if (value[i] == null) return null; } return value; }, 'set': function(value) { var result = {}; for (var key in value) { result[key] = 1; } return result; }, }; var labelColors = [ "#e11d21", "#eb6420", "#fbca04", "#009800", "#006b75", "#207de5", "#0052cc", "#5319e7", "#f7c6c7", "#fad8c7", "#fef2c0", "#bfe5bf", "#bfdadc", "#bfd4f2", "#c7def8", "#d4c5f9", ]; // how many GrooveFiles to keep open, ready to be decoded var OPEN_FILE_COUNT = 8; var PREV_FILE_COUNT = Math.floor(OPEN_FILE_COUNT / 2); var NEXT_FILE_COUNT = OPEN_FILE_COUNT - PREV_FILE_COUNT; var DB_SCALE = Math.log(10.0) * 0.05; var REPLAYGAIN_PREAMP = 0.75; var REPLAYGAIN_DEFAULT = 0.25; Player.REPEAT_OFF = 0; Player.REPEAT_ALL = 1; Player.REPEAT_ONE = 2; Player.trackWithoutIndex = trackWithoutIndex; Player.setGrooveLoggingLevel = setGrooveLoggingLevel; util.inherits(Player, EventEmitter); function Player(db, config) { EventEmitter.call(this); this.setMaxListeners(0); this.db = db; this.musicDirectory = config.musicDirectory; this.dbFilesByPath = {}; this.dbFilesByLabel = {}; this.libraryIndex = new MusicLibraryIndex({ searchFields: MusicLibraryIndex.defaultSearchFields.concat('file'), }); this.addQueue = new DedupedQueue({ processOne: this.addToLibrary.bind(this), // limit to 1 async operation because we're blocking on the hard drive, // it's faster to read one file at a time. maxAsync: 1, }); this.dirs = {}; this.dirScanQueue = new DedupedQueue({ processOne: this.refreshFilesIndex.bind(this), // only 1 dir scanning can happen at a time // we'll pass the dir to scan as the ID so that not more than 1 of the // same dir can queue up maxAsync: 1, }); this.dirScanQueue.on('error', function(err) { log.error("library scanning error:", err.stack); }); this.disableFsRefCount = 0; this.playlist = {}; this.playlists = {}; this.currentTrack = null; this.tracksInOrder = []; // another way to look at playlist this.grooveItems = {}; // maps groove item id to track this.seekRequestPos = -1; // set to >= 0 when we want to seek this.invalidPaths = {}; // files that could not be opened this.playlistItemDeleteQueue = []; this.dontBelieveTheEndOfPlaylistSentinelItsATrap = false; this.queueClearEncodedBuffers = false; this.repeat = Player.REPEAT_OFF; this.desiredPlayerHardwareState = null; // true: normal hardware playback. false: dummy this.pendingPlayerAttachDetach = null; this.isPlaying = false; this.trackStartDate = null; this.pausedTime = 0; this.autoDjOn = false; this.autoDjHistorySize = 10; this.autoDjFutureSize = 10; this.ongoingScans = {}; this.scanQueue = new DedupedQueue({ processOne: this.performScan.bind(this), maxAsync: cpuCount, }); this.headerBuffers = []; this.recentBuffers = []; this.newHeaderBuffers = []; this.openStreamers = []; this.expectHeaders = true; // when a streaming client connects we send them many buffers quickly // in order to get the stream started, then we slow down. this.encodeQueueDuration = config.encodeQueueDuration; this.groovePlaylist = groove.createPlaylist(); this.groovePlayer = null; this.grooveEncoder = groove.createEncoder(); this.grooveEncoder.encodedBufferSize = 128 * 1024; this.detachEncoderTimeout = null; this.pendingEncoderAttachDetach = false; this.desiredEncoderAttachState = false; this.flushEncodedInterval = null; this.groovePlaylist.pause(); this.volume = this.groovePlaylist.gain; this.grooveEncoder.formatShortName = "mp3"; this.grooveEncoder.codecShortName = "mp3"; this.grooveEncoder.bitRate = config.encodeBitRate * 1000; this.importProgress = {}; this.lastImportProgressEvent = new Date(); // tracking playCount this.previousIsPlaying = false; this.playingStart = new Date(); this.playingTime = 0; this.lastPlayingItem = null; this.googleApiKey = config.googleApiKey; this.ignoreExtensions = config.ignoreExtensions.map(makeLower); } Player.prototype.initialize = function(cb) { var self = this; var startupTrackInfo = null; initLibrary(function(err) { if (err) return cb(err); cacheTracksArray(self); self.requestUpdateDb(); cacheAllOptions(function(err) { if (err) return cb(err); setInterval(doPersistCurrentTrack, 10000); if (startupTrackInfo) { self.seek(startupTrackInfo.id, startupTrackInfo.pos); } else { playlistChanged(self); } lazyReplayGainScanPlaylist(self); cb(); }); }); function initLibrary(cb) { var pend = new Pend(); pend.go(cacheAllDb); pend.go(cacheAllDirs); pend.go(cacheAllQueue); pend.go(cacheAllPlaylists); pend.go(cacheAllLabels); pend.wait(cb); } function cacheAllPlaylists(cb) { cacheAllPlaylistMeta(function(err) { if (err) return cb(err); cacheAllPlaylistItems(cb); }); function cacheAllPlaylistMeta(cb) { dbIterate(self.db, PLAYLIST_META_KEY_PREFIX, processOne, cb); function processOne(key, value) { var playlist = deserializePlaylist(value); self.playlists[playlist.id] = playlist; } } function cacheAllPlaylistItems(cb) { dbIterate(self.db, PLAYLIST_KEY_PREFIX, processOne, cb); function processOne(key, value) { var playlistIdEnd = key.indexOf('.', PLAYLIST_KEY_PREFIX.length); var playlistId = key.substring(PLAYLIST_KEY_PREFIX.length, playlistIdEnd); var playlistItem = JSON.parse(value); self.playlists[playlistId].items[playlistItem.id] = playlistItem; } } } function cacheAllLabels(cb) { dbIterate(self.db, LABEL_KEY_PREFIX, processOne, cb); function processOne(key, value) { var labelId = key.substring(LABEL_KEY_PREFIX.length); var labelEntry = JSON.parse(value); self.libraryIndex.addLabel(labelEntry); } } function cacheAllQueue(cb) { dbIterate(self.db, QUEUE_KEY_PREFIX, processOne, cb); function processOne(key, value) { var plEntry = JSON.parse(value); self.playlist[plEntry.id] = plEntry; } } function cacheAllOptions(cb) { var options = { repeat: null, autoDjOn: null, autoDjHistorySize: null, autoDjFutureSize: null, hardwarePlayback: null, volume: null, currentTrackInfo: null, }; var pend = new Pend(); for (var name in options) { pend.go(makeGetFn(name)); } pend.wait(function(err) { if (err) return cb(err); if (options.repeat != null) { self.setRepeat(options.repeat); } if (options.autoDjOn != null) { self.setAutoDjOn(options.autoDjOn); } if (options.autoDjHistorySize != null) { self.setAutoDjHistorySize(options.autoDjHistorySize); } if (options.autoDjFutureSize != null) { self.setAutoDjFutureSize(options.autoDjFutureSize); } if (options.volume != null) { self.setVolume(options.volume); } startupTrackInfo = options.currentTrackInfo; var hardwarePlaybackValue = options.hardwarePlayback == null ? true : options.hardwarePlayback; // start the hardware player first // fall back to dummy self.setHardwarePlayback(hardwarePlaybackValue, function(err) { if (err) { log.error("Unable to attach hardware player, falling back to dummy.", err.stack); self.setHardwarePlayback(false); } cb(); }); }); function makeGetFn(name) { return function(cb) { self.db.get(PLAYER_KEY_PREFIX + name, function(err, value) { if (!err && value != null) { try { options[name] = JSON.parse(value); } catch (err) { cb(err); return; } } cb(); }); }; } } function cacheAllDirs(cb) { dbIterate(self.db, LIBRARY_DIR_PREFIX, processOne, cb); function processOne(key, value) { var dirEntry = JSON.parse(value); self.dirs[dirEntry.dirName] = dirEntry; } } function cacheAllDb(cb) { var scrubCmds = []; dbIterate(self.db, LIBRARY_KEY_PREFIX, processOne, scrubAndCb); function processOne(key, value) { var dbFile = deserializeFileData(value); // scrub duplicates if (self.dbFilesByPath[dbFile.file]) { scrubCmds.push({type: 'del', key: key}); } else { self.libraryIndex.addTrack(dbFile); self.dbFilesByPath[dbFile.file] = dbFile; for (var labelId in dbFile.labels) { var files = self.dbFilesByLabel[labelId]; if (files == null) files = self.dbFilesByLabel[labelId] = {}; files[dbFile.key] = dbFile; } } } function scrubAndCb() { if (scrubCmds.length === 0) return cb(); log.warn("Scrubbing " + scrubCmds.length + " duplicate db entries"); self.db.batch(scrubCmds, function(err) { if (err) log.error("Unable to scrub duplicate tracks from db:", err.stack); cb(); }); } } function doPersistCurrentTrack() { if (self.isPlaying) { self.persistCurrentTrack(); } } }; function startEncoderAttach(self, cb) { if (self.desiredEncoderAttachState) return; self.desiredEncoderAttachState = true; if (self.pendingEncoderAttachDetach) return; self.pendingEncoderAttachDetach = true; self.grooveEncoder.attach(self.groovePlaylist, function(err) { self.pendingEncoderAttachDetach = false; if (err) { self.desiredEncoderAttachState = false; cb(err); } else if (!self.desiredEncoderAttachState) { startEncoderDetach(self, cb); } }); } function startEncoderDetach(self, cb) { if (!self.desiredEncoderAttachState) return; self.desiredEncoderAttachState = false; if (self.pendingEncoderAttachDetach) return; self.pendingEncoderAttachDetach = true; self.grooveEncoder.detach(function(err) { self.pendingEncoderAttachDetach = false; if (err) { self.desiredEncoderAttachState = true; cb(err); } else if (self.desiredEncoderAttachState) { startEncoderAttach(self, cb); } }); } Player.prototype.getBufferedSeconds = function() { if (this.recentBuffers.length < 2) return 0; var firstPts = this.recentBuffers[0].pts; var lastPts = this.recentBuffers[this.recentBuffers.length - 1].pts; var frameCount = lastPts - firstPts; var sampleRate = this.grooveEncoder.actualAudioFormat.sampleRate; return frameCount / sampleRate; }; Player.prototype.attachEncoder = function(cb) { var self = this; cb = cb || logIfError; if (self.flushEncodedInterval) return cb(); log.debug("first streamer connected - attaching encoder"); self.flushEncodedInterval = setInterval(flushEncoded, 100); startEncoderAttach(self, cb); function flushEncoded() { if (!self.desiredEncoderAttachState || self.pendingEncoderAttachDetach) return; var playHead = self.groovePlayer.position(); if (!playHead.item) return; var plItems = self.groovePlaylist.items(); // get rid of old items var buf; while (buf = self.recentBuffers[0]) { /* log.debug(" buf.item " + buf.item.file.filename + "\n" + "playHead.item " + playHead.item.file.filename + "\n" + " playHead.pos " + playHead.pos + "\n" + " buf.pos " + buf.pos); */ if (isBufOld(buf)) { self.recentBuffers.shift(); } else { break; } } // poll the encoder for more buffers until either there are no buffers // available or we get enough buffered while (self.getBufferedSeconds() < self.encodeQueueDuration) { buf = self.grooveEncoder.getBuffer(); if (!buf) break; if (buf.buffer) { if (buf.item) { if (self.expectHeaders) { log.debug("encoder: got first non-header"); self.headerBuffers = self.newHeaderBuffers; self.newHeaderBuffers = []; self.expectHeaders = false; } self.recentBuffers.push(buf); for (var i = 0; i < self.openStreamers.length; i += 1) { self.openStreamers[i].write(buf.buffer); } } else if (self.expectHeaders) { // this is a header log.debug("encoder: got header"); self.newHeaderBuffers.push(buf.buffer); } else { // it's a footer, ignore the fuck out of it log.debug("ignoring encoded audio footer"); } } else { // end of playlist sentinel log.debug("encoder: end of playlist sentinel"); if (self.queueClearEncodedBuffers) { self.queueClearEncodedBuffers = false; self.clearEncodedBuffer(); self.emit('seek'); } self.expectHeaders = true; } } function isBufOld(buf) { // typical case if (buf.item.id === playHead.item.id) { return playHead.pos > buf.pos; } // edge case var playHeadIndex = -1; var bufItemIndex = -1; for (var i = 0; i < plItems.length; i += 1) { var plItem = plItems[i]; if (plItem.id === playHead.item.id) { playHeadIndex = i; } else if (plItem.id === buf.item.id) { bufItemIndex = i; } } return playHeadIndex > bufItemIndex; } } function logIfError(err) { if (err) { log.error("Unable to attach encoder:", err.stack); } } }; Player.prototype.detachEncoder = function(cb) { cb = cb || logIfError; this.clearEncodedBuffer(); this.queueClearEncodedBuffers = false; clearInterval(this.flushEncodedInterval); this.flushEncodedInterval = null; startEncoderDetach(this, cb); this.grooveEncoder.removeAllListeners(); function logIfError(err) { if (err) { log.error("Unable to detach encoder:", err.stack); } } }; Player.prototype.deleteDbMtimes = function(cb) { cb = cb || logIfDbError; var updateCmds = []; for (var key in this.libraryIndex.trackTable) { var dbFile = this.libraryIndex.trackTable[key]; delete dbFile.mtime; persistDbFile(dbFile, updateCmds); } this.db.batch(updateCmds, cb); }; Player.prototype.requestUpdateDb = function(dirName, cb) { var fullPath = path.resolve(this.musicDirectory, dirName || ""); this.dirScanQueue.add(fullPath, { dir: fullPath, }, cb); }; Player.prototype.refreshFilesIndex = function(args, cb) { var self = this; var dir = args.dir; var dirWithSlash = ensureSep(dir); var walker = findit(dirWithSlash, {followSymlinks: true}); var thisScanId = uuid(); var delCmds = []; walker.on('directory', function(fullDirPath, stat, stop, linkPath) { var usePath = linkPath || fullDirPath; var dirName = path.relative(self.musicDirectory, usePath); var baseName = path.basename(dirName); if (isFileIgnored(baseName)) { stop(); return; } var dirEntry = self.getOrCreateDir(dirName, stat); if (usePath === dirWithSlash) return; // ignore root search path var parentDirName = path.dirname(dirName); if (parentDirName === '.') parentDirName = ''; var parentDirEntry = self.getOrCreateDir(parentDirName); parentDirEntry.dirEntries[baseName] = thisScanId; }); walker.on('file', function(fullPath, stat, linkPath) { var usePath = linkPath || fullPath; var relPath = path.relative(self.musicDirectory, usePath); var dirName = path.dirname(relPath); if (dirName === '.') dirName = ''; var baseName = path.basename(relPath); if (isFileIgnored(baseName)) return; var extName = path.extname(relPath); if (isExtensionIgnored(self, extName)) return; var dirEntry = self.getOrCreateDir(dirName); dirEntry.entries[baseName] = thisScanId; var fileMtime = stat.mtime.getTime(); onAddOrChange(self, relPath, fileMtime); }); walker.on('error', function(err) { walker.stop(); cleanupAndCb(err); }); walker.on('end', function() { var dirName = path.relative(self.musicDirectory, dir); checkDirEntry(self.dirs[dirName]); cleanupAndCb(); function checkDirEntry(dirEntry) { if (!dirEntry) return; var id; var baseName; var i; var deletedFiles = []; var deletedDirs = []; for (baseName in dirEntry.entries) { id = dirEntry.entries[baseName]; if (id !== thisScanId) deletedFiles.push(baseName); } for (i = 0; i < deletedFiles.length; i += 1) { baseName = deletedFiles[i]; delete dirEntry.entries[baseName]; onFileMissing(dirEntry, baseName); } for (baseName in dirEntry.dirEntries) { id = dirEntry.dirEntries[baseName]; var childEntry = self.dirs[path.join(dirEntry.dirName, baseName)]; checkDirEntry(childEntry); if (id !== thisScanId) deletedDirs.push(baseName); } for (i = 0; i < deletedDirs.length; i += 1) { baseName = deletedDirs[i]; delete dirEntry.dirEntries[baseName]; onDirMissing(dirEntry, baseName); } self.persistDirEntry(dirEntry); } }); function cleanupAndCb(err) { if (delCmds.length > 0) { self.db.batch(delCmds, logIfDbError); self.emit('deleteDbTrack'); } cb(err); } function onDirMissing(parentDirEntry, baseName) { var dirName = path.join(parentDirEntry.dirName, baseName); log.debug("directory deleted:", dirName); var dirEntry = self.dirs[dirName]; var watcher = dirEntry.watcher; if (watcher) watcher.close(); delete self.dirs[dirName]; delete parentDirEntry.dirEntries[baseName]; } function onFileMissing(parentDirEntry, baseName) { var relPath = path.join(parentDirEntry.dirName, baseName); log.debug("file deleted:", relPath); delete parentDirEntry.entries[baseName]; var dbFile = self.dbFilesByPath[relPath]; if (dbFile) { // batch up some db delete commands to run after walking the file system delDbEntryCmds(self, dbFile, delCmds); } } }; Player.prototype.watchDirEntry = function(dirEntry) { var self = this; var changeTriggered = null; var fullDirPath = path.join(self.musicDirectory, dirEntry.dirName); var watcher; try { watcher = fs.watch(fullDirPath, onChange); watcher.on('error', onWatchError); } catch (err) { log.warn("Unable to fs.watch:", err.stack); watcher = null; } dirEntry.watcher = watcher; function onChange(eventName) { if (changeTriggered) clearTimeout(changeTriggered); changeTriggered = setTimeout(function() { changeTriggered = null; log.debug("dir updated:", dirEntry.dirName); self.dirScanQueue.add(fullDirPath, { dir: fullDirPath }); }, 100); } function onWatchError(err) { log.error("watch error:", err.stack); } }; Player.prototype.getOrCreateDir = function (dirName, stat) { var dirEntry = this.dirs[dirName]; if (!dirEntry) { dirEntry = this.dirs[dirName] = { dirName: dirName, entries: {}, dirEntries: {}, watcher: null, // will be set just below mtime: stat && stat.mtime, }; } else if (stat && dirEntry.mtime !== stat.mtime) { dirEntry.mtime = stat.mtime; } if (!dirEntry.watcher) this.watchDirEntry(dirEntry); return dirEntry; }; Player.prototype.getCurPos = function() { return this.isPlaying ? ((new Date() - this.trackStartDate) / 1000.0) : this.pausedTime; }; function startPlayerSwitchDevice(self, wantHardware, cb) { self.desiredPlayerHardwareState = wantHardware; if (self.pendingPlayerAttachDetach) return; self.pendingPlayerAttachDetach = true; if (self.groovePlayer) { self.groovePlayer.removeAllListeners(); self.groovePlayer.detach(onDetachComplete); } else { onDetachComplete(); } function onDetachComplete(err) { if (err) return cb(err); self.groovePlayer = groove.createPlayer(); self.groovePlayer.deviceIndex = wantHardware ? null : groove.DUMMY_DEVICE; self.groovePlayer.attach(self.groovePlaylist, function(err) { self.pendingPlayerAttachDetach = false; if (err) return cb(err); if (self.desiredPlayerHardwareState !== wantHardware) { startPlayerSwitchDevice(self, self.desiredPlayerHardwareState, cb); } else { cb(); } }); } } Player.prototype.setHardwarePlayback = function(value, cb) { var self = this; cb = cb || logIfError; value = !!value; if (value === self.desiredPlayerHardwareState) return cb(); startPlayerSwitchDevice(self, value, function(err) { if (err) return cb(err); self.clearEncodedBuffer(); self.emit('seek'); self.groovePlayer.on('nowplaying', onNowPlaying); self.persistOption('hardwarePlayback', self.desiredPlayerHardwareState); self.emit('hardwarePlayback', self.desiredPlayerHardwareState); cb(); }); function onNowPlaying() { var playHead = self.groovePlayer.position(); var decodeHead = self.groovePlaylist.position(); if (playHead.item) { var nowMs = (new Date()).getTime(); var posMs = playHead.pos * 1000; self.trackStartDate = new Date(nowMs - posMs); self.currentTrack = self.grooveItems[playHead.item.id]; playlistChanged(self); self.currentTrackChanged(); } else if (!decodeHead.item) { if (!self.dontBelieveTheEndOfPlaylistSentinelItsATrap) { // both play head and decode head are null. end of playlist. log.debug("end of playlist"); self.currentTrack = null; playlistChanged(self); self.currentTrackChanged(); } } } function logIfError(err) { if (err) { log.error("Unable to set hardware playback mode:", err.stack); } } }; Player.prototype.startStreaming = function(resp) { this.headerBuffers.forEach(function(headerBuffer) { resp.write(headerBuffer); }); this.recentBuffers.forEach(function(recentBuffer) { resp.write(recentBuffer.buffer); }); this.cancelDetachEncoderTimeout(); this.attachEncoder(); this.openStreamers.push(resp); this.emit('streamerConnect', resp.client); }; Player.prototype.stopStreaming = function(resp) { for (var i = 0; i < this.openStreamers.length; i += 1) { if (this.openStreamers[i] === resp) { this.openStreamers.splice(i, 1); this.emit('streamerDisconnect', resp.client); break; } } }; Player.prototype.lastStreamerDisconnected = function() { log.debug("last streamer disconnected"); this.startDetachEncoderTimeout(); if (!this.desiredPlayerHardwareState && this.isPlaying) { this.emit("autoPause"); this.pause(); } }; Player.prototype.cancelDetachEncoderTimeout = function() { if (this.detachEncoderTimeout) { clearTimeout(this.detachEncoderTimeout); this.detachEncoderTimeout = null; } }; Player.prototype.startDetachEncoderTimeout = function() { var self = this; self.cancelDetachEncoderTimeout(); // we use encodeQueueDuration for the encoder timeout so that we are // guaranteed to have audio available for the encoder in the case of // detaching and reattaching the encoder. self.detachEncoderTimeout = setTimeout(timeout, self.encodeQueueDuration * 1000); function timeout() { if (self.openStreamers.length === 0 && self.isPlaying) { log.debug("detaching encoder"); self.detachEncoder(); } } }; Player.prototype.deleteFiles = function(keys) { var self = this; var delCmds = []; for (var i = 0; i < keys.length; i += 1) { var key = keys[i]; var dbFile = self.libraryIndex.trackTable[key]; if (!dbFile) continue; var fullPath = path.join(self.musicDirectory, dbFile.file); delDbEntryCmds(self, dbFile, delCmds); fs.unlink(fullPath, logIfError); } if (delCmds.length > 0) { self.emit('deleteDbTrack'); self.db.batch(delCmds, logIfError); } function logIfError(err) { if (err) { log.error("Error deleting files:", err.stack); } } }; function delDbEntryCmds(self, dbFile, dbCmds) { // delete items from the queue that are being deleted from the library var deleteQueueItems = []; for (var queueId in self.playlist) { var queueItem = self.playlist[queueId]; if (queueItem.key === dbFile.key) { deleteQueueItems.push(queueId); } } self.removeQueueItems(deleteQueueItems); // delete items from playlists that are being deleted from the library var playlistRemovals = {}; for (var playlistId in self.playlists) { var playlist = self.playlists[playlistId]; var removals = []; playlistRemovals[playlistId] = removals; for (var playlistItemId in playlist.items) { var playlistItem = playlist.items[playlistItemId]; if (playlistItem.key === dbFile.key) { removals.push(playlistItemId); } } } self.playlistRemoveItems(playlistRemovals); self.libraryIndex.removeTrack(dbFile.key); delete self.dbFilesByPath[dbFile.file]; var baseName = path.basename(dbFile.file); var parentDirName = path.dirname(dbFile.file); if (parentDirName === '.') parentDirName = ''; var parentDirEntry = self.dirs[parentDirName]; if (parentDirEntry) delete parentDirEntry[baseName]; dbCmds.push({type: 'del', key: LIBRARY_KEY_PREFIX + dbFile.key}); } Player.prototype.setVolume = function(value) { value = Math.min(2.0, value); value = Math.max(0.0, value); this.volume = value; this.groovePlaylist.setGain(value); this.persistOption('volume', this.volume); this.emit("volumeUpdate"); }; Player.prototype.importUrl = function(urlString, cb) { var self = this; cb = cb || logIfError; var filterIndex = 0; tryImportFilter(); function tryImportFilter() { var importFilter = importUrlFilters[filterIndex]; if (!importFilter) return cb(); importFilter.fn(urlString, callNextFilter); function callNextFilter(err, dlStream, filenameHintWithoutPath, size) { if (err || !dlStream) { if (err) { log.error(importFilter.name + " import filter error, skipping:", err.stack); } filterIndex += 1; tryImportFilter(); return; } self.importStream(dlStream, filenameHintWithoutPath, size, cb); } } function logIfError(err) { if (err) { log.error("Unable to import by URL.", err.stack, "URL:", urlString); } } }; Player.prototype.importNames = function(names, cb) { var self = this; var pend = new Pend(); var allDbFiles = []; names.forEach(function(name) { pend.go(function(cb) { youtubeSearch(name, self.googleApiKey, function(err, videoUrl) { if (err) { log.error("YouTube search error, skipping " + name + ": " + err.stack); cb(); return; } self.importUrl(videoUrl, function(err, dbFiles) { if (err) { log.error("Unable to import from YouTube: " + err.stack); } else if (!dbFiles) { log.error("Unrecognized YouTube URL: " + videoUrl); } else if (dbFiles.length > 0) { allDbFiles = allDbFiles.concat(dbFiles); } cb(); }); }); }); }); pend.wait(function() { cb(null, allDbFiles); }); }; Player.prototype.importStream = function(readStream, filenameHintWithoutPath, size, cb) { var self = this; var ext = path.extname(filenameHintWithoutPath); var tmpDir = path.join(self.musicDirectory, '.tmp'); var id = uuid(); var destPath = path.join(tmpDir, id + ext); var calledCallback = false; var writeStream = null; var progressTimer = null; var importEvent = { id: id, filenameHintWithoutPath: filenameHintWithoutPath, bytesWritten: 0, size: size, date: new Date(), }; readStream.on('error', cleanAndCb); self.importProgress[importEvent.id] = importEvent; self.emit('importStart', importEvent); mkdirp(tmpDir, function(err) { if (calledCallback) return; if (err) return cleanAndCb(err); writeStream = fs.createWriteStream(destPath); readStream.pipe(writeStream); progressTimer = setInterval(checkProgress, 100); writeStream.on('close', onClose); writeStream.on('error', cleanAndCb); function checkProgress() { importEvent.bytesWritten = writeStream.bytesWritten; self.maybeEmitImportProgress(); } function onClose(){ if (calledCallback) return; checkProgress(); self.importFile(destPath, filenameHintWithoutPath, function(err, dbFiles) { if (calledCallback) return; if (err) { cleanAndCb(err); } else { calledCallback = true; cleanTimer(); delete self.importProgress[importEvent.id]; self.emit('importEnd', importEvent); cb(null, dbFiles); } }); } }); function cleanTimer() { if (progressTimer) { clearInterval(progressTimer); progressTimer = null; } } function cleanAndCb(err) { if (writeStream) { fs.unlink(destPath, onUnlinkDone); writeStream = null; } cleanTimer(); if (calledCallback) return; calledCallback = true; delete self.importProgress[importEvent.id]; self.emit('importAbort', importEvent); cb(err); function onUnlinkDone(err) { if (err) { log.warn("Unable to clean up temp file:", err.stack); } } } }; Player.prototype.importFile = function(srcFullPath, filenameHintWithoutPath, cb) { var self = this; cb = cb || logIfError; var filterIndex = 0; log.debug("importFile open file:", srcFullPath); disableFsListenRef(self, tryImportFilter); function tryImportFilter() { var importFilter = importFileFilters[filterIndex]; if (!importFilter) return cleanAndCb(); importFilter.fn(self, srcFullPath, filenameHintWithoutPath, callNextFilter); function callNextFilter(err, dbFiles) { if (err || !dbFiles) { if (err) { log.debug(importFilter.name + " import filter error, skipping:", err.message); } filterIndex += 1; tryImportFilter(); return; } cleanAndCb(null, dbFiles); } } function cleanAndCb(err, dbFiles) { if (!dbFiles) { fs.unlink(srcFullPath, logIfUnlinkError); } disableFsListenUnref(self); cb(err, dbFiles); } function logIfUnlinkError(err) { if (err) { log.error("unable to unlink file:", err.stack); } } function logIfError(err) { if (err) { log.error("unable to import file:", err.stack); } } }; Player.prototype.maybeEmitImportProgress = function() { var now = new Date(); var passedTime = now - this.lastImportProgressEvent; if (passedTime > 500) { this.lastImportProgressEvent = now; this.emit("importProgress"); } }; Player.prototype.persistDirEntry = function(dirEntry, cb) { cb = cb || logIfError; this.db.put(LIBRARY_DIR_PREFIX + dirEntry.dirName, serializeDirEntry(dirEntry), cb); function logIfError(err) { if (err) { log.error("unable to persist db entry:", dirEntry, err.stack); } } }; Player.prototype.persistDbFile = function(dbFile, updateCmds) { this.libraryIndex.addTrack(dbFile); this.dbFilesByPath[dbFile.file] = dbFile; persistDbFile(dbFile, updateCmds); }; Player.prototype.persistOneDbFile = function(dbFile, cb) { cb = cb || logIfDbError; var updateCmds = []; this.persistDbFile(dbFile, updateCmds); this.db.batch(updateCmds, cb); }; Player.prototype.persistOption = function(name, value, cb) { this.db.put(PLAYER_KEY_PREFIX + name, JSON.stringify(value), cb || logIfError); function logIfError(err) { if (err) { log.error("unable to persist player option:", err.stack); } } }; Player.prototype.addToLibrary = function(args, cb) { var self = this; var relPath = args.relPath; var mtime = args.mtime; var fullPath = path.join(self.musicDirectory, relPath); log.debug("addToLibrary open file:", fullPath); groove.open(fullPath, function(err, file) { if (err) { self.invalidPaths[relPath] = err.message; cb(); return; } var dbFile = self.dbFilesByPath[relPath]; var filenameHintWithoutPath = path.basename(relPath); var newDbFile = grooveFileToDbFile(file, filenameHintWithoutPath, dbFile); newDbFile.file = relPath; newDbFile.mtime = mtime; var pend = new Pend(); pend.go(function(cb) { log.debug("addToLibrary close file:", file.filename); file.close(cb); }); pend.go(function(cb) { self.persistOneDbFile(newDbFile, function(err) { if (err) log.error("Error saving", relPath, "to db:", err.stack); cb(); }); }); self.emit('updateDb'); pend.wait(cb); }); }; Player.prototype.updateTags = function(obj) { var updateCmds = []; for (var key in obj) { var dbFile = this.libraryIndex.trackTable[key]; if (!dbFile) continue; var props = obj[key]; for (var propName in DB_PROPS) { var prop = DB_PROPS[propName]; if (! prop.clientCanModify) continue; if (! (propName in props)) continue; var parser = PROP_TYPE_PARSERS[prop.type]; dbFile[propName] = parser(props[propName]); } this.persistDbFile(dbFile, updateCmds); } if (updateCmds.length > 0) { this.db.batch(updateCmds, logIfDbError); this.emit('updateDb'); } }; Player.prototype.insertTracks = function(index, keys, tagAsRandom) { if (keys.length === 0) return []; if (index < 0) index = 0; if (index > this.tracksInOrder.length) index = this.tracksInOrder.length; var trackBeforeIndex = this.tracksInOrder[index - 1]; var trackAtIndex = this.tracksInOrder[index]; var prevSortKey = trackBeforeIndex ? trackBeforeIndex.sortKey : null; var nextSortKey = trackAtIndex ? trackAtIndex.sortKey : null; var items = {}; var ids = []; var sortKeys = keese(prevSortKey, nextSortKey, keys.length); keys.forEach(function(key, i) { var id = uuid(); var sortKey = sortKeys[i]; items[id] = { key: key, sortKey: sortKey, }; ids.push(id); }); this.addItems(items, tagAsRandom); return ids; }; Player.prototype.appendTracks = function(keys, tagAsRandom) { return this.insertTracks(this.tracksInOrder.length, keys, tagAsRandom); }; // items looks like {id: {key, sortKey}} Player.prototype.addItems = function(items, tagAsRandom) { var self = this; tagAsRandom = !!tagAsRandom; var updateCmds = []; for (var id in items) { var item = items[id]; var dbFile = self.libraryIndex.trackTable[item.key]; if (!dbFile) continue; dbFile.lastQueueDate = new Date(); self.persistDbFile(dbFile, updateCmds); var queueItem = { id: id, key: item.key, sortKey: item.sortKey, isRandom: tagAsRandom, grooveFile: null, pendingGrooveFile: false, deleted: false, }; self.playlist[id] = queueItem; persistQueueItem(queueItem, updateCmds); } if (updateCmds.length > 0) { self.db.batch(updateCmds, logIfDbError); playlistChanged(self); lazyReplayGainScanPlaylist(self); } }; Player.prototype.playlistCreate = function(id, name) { if (this.playlists[id]) { log.warn("tried to create playlist with same id as existing"); return; } var playlist = { id: id, name: name, mtime: new Date().getTime(), items: {}, }; this.playlists[playlist.id] = playlist; this.persistPlaylist(playlist); this.emit('playlistCreate', playlist); return playlist; }; Player.prototype.playlistRename = function(playlistId, newName) { var playlist = this.playlists[playlistId]; if (!playlist) return; playlist.name = newName; playlist.mtime = new Date().getTime(); this.persistPlaylist(playlist); this.emit('playlistUpdate', playlist); }; Player.prototype.playlistDelete = function(playlistIds) { var delCmds = []; for (var i = 0; i < playlistIds.length; i += 1) { var playlistId = playlistIds[i]; var playlist = this.playlists[playlistId]; if (!playlist) continue; for (var id in playlist.items) { var item = playlist.items[id]; if (!item) continue; delCmds.push({type: 'del', key: playlistItemKey(playlist, item)}); delete playlist.items[id]; } delCmds.push({type: 'del', key: playlistKey(playlist)}); delete this.playlists[playlistId]; } if (delCmds.length > 0) { this.db.batch(delCmds, logIfDbError); this.emit('playlistDelete'); } }; Player.prototype.playlistAddItems = function(playlistId, items) { var playlist = this.playlists[playlistId]; if (!playlist) return; var updateCmds = []; for (var id in items) { var item = items[id]; var dbFile = this.libraryIndex.trackTable[item.key]; if (!dbFile) continue; var playlistItem = { id: id, key: item.key, sortKey: item.sortKey, }; playlist.items[id] = playlistItem; updateCmds.push({ type: 'put', key: playlistItemKey(playlist, playlistItem), value: serializePlaylistItem(playlistItem), }); } if (updateCmds.length > 0) { playlist.mtime = new Date().getTime(); updateCmds.push({ type: 'put', key: playlistKey(playlist), value: serializePlaylist(playlist), }); this.db.batch(updateCmds, logIfDbError); this.emit('playlistUpdate', playlist); } }; Player.prototype.playlistRemoveItems = function(removals) { var updateCmds = []; for (var playlistId in removals) { var playlist = this.playlists[playlistId]; if (!playlist) continue; var ids = removals[playlistId]; var dirty = false; for (var i = 0; i < ids.length; i += 1) { var id = ids[i]; var item = playlist.items[id]; if (!item) continue; dirty = true; updateCmds.push({type: 'del', key: playlistItemKey(playlist, item)}); delete playlist.items[id]; } if (dirty) { playlist.mtime = new Date().getTime(); updateCmds.push({ type: 'put', key: playlistKey(playlist), value: serializePlaylist(playlist), }); } } if (updateCmds.length > 0) { this.db.batch(updateCmds, logIfDbError); this.emit('playlistUpdate'); } }; // items looks like {playlistId: {id: {sortKey}}} Player.prototype.playlistMoveItems = function(updates) { var updateCmds = []; for (var playlistId in updates) { var playlist = this.playlists[playlistId]; if (!playlist) continue; var playlistDirty = false; var update = updates[playlistId]; for (var id in update) { var playlistItem = playlist.items[id]; if (!playlistItem) continue; var updateItem = update[id]; playlistItem.sortKey = updateItem.sortKey; playlistDirty = true; updateCmds.push({ type: 'put', key: playlistItemKey(playlist, playlistItem), value: serializePlaylistItem(playlistItem), }); } if (playlistDirty) { playlist.mtime = new Date().getTime(); updateCmds.push({ type: 'put', key: playlistKey(playlist), value: serializePlaylist(playlist), }); } } if (updateCmds.length > 0) { this.db.batch(updateCmds, logIfDbError); this.emit('playlistUpdate'); } }; Player.prototype.persistPlaylist = function(playlist, cb) { cb = cb || logIfDbError; var key = playlistKey(playlist); var payload = serializePlaylist(playlist); this.db.put(key, payload, cb); }; Player.prototype.labelCreate = function(id, name) { if (id in this.libraryIndex.labelTable) { log.warn("tried to create label that already exists"); return; } var color = labelColors[Math.floor(Math.random() * labelColors.length)]; var labelEntry = {id: id, name: name, color: color}; this.libraryIndex.addLabel(labelEntry); var key = LABEL_KEY_PREFIX + id; this.db.put(key, JSON.stringify(labelEntry), logIfDbError); this.emit('labelCreate'); }; Player.prototype.labelRename = function(id, name) { var labelEntry = this.libraryIndex.labelTable[id]; if (!labelEntry) return; labelEntry.name = name; this.libraryIndex.addLabel(labelEntry); var key = LABEL_KEY_PREFIX + id; this.db.put(key, JSON.stringify(labelEntry), logIfDbError); this.emit('labelRename'); }; Player.prototype.labelColorUpdate = function(id, color) { var labelEntry = this.libraryIndex.labelTable[id]; if (!labelEntry) return; labelEntry.color = color; this.libraryIndex.addLabel(labelEntry); var key = LABEL_KEY_PREFIX + id; this.db.put(key, JSON.stringify(labelEntry), logIfDbError); this.emit('labelColorUpdate'); }; Player.prototype.labelDelete = function(ids) { var updateCmds = []; var libraryChanged = false; for (var i = 0; i < ids.length; i++) { var labelId = ids[i]; if (!(labelId in this.libraryIndex.labelTable)) continue; this.libraryIndex.removeLabel(labelId); var key = LABEL_KEY_PREFIX + labelId; updateCmds.push({type: 'del', key: key}); // clean out references from the library var files = this.dbFilesByLabel[labelId]; for (var fileId in files) { var dbFile = files[fileId]; delete dbFile.labels[labelId]; persistDbFile(dbFile, updateCmds); libraryChanged = true; } delete this.dbFilesByLabel[labelId]; } if (updateCmds.length === 0) return; this.db.batch(updateCmds, logIfDbError); if (libraryChanged) { this.emit('updateDb'); } this.emit('labelDelete'); }; Player.prototype.labelAdd = function(additions) { this.changeLabels(additions, true); }; Player.prototype.labelRemove = function(removals) { this.changeLabels(removals, false); }; Player.prototype.changeLabels = function(changes, isAdd) { var self = this; var updateCmds = []; for (var id in changes) { var labelIds = changes[id]; var dbFile = this.libraryIndex.trackTable[id]; if (!dbFile) continue; if (labelIds.length === 0) continue; var changedTrack = false; for (var i = 0; i < labelIds.length; i++) { var labelId = labelIds[i]; var filesByThisLabel = self.dbFilesByLabel[labelId]; if (isAdd) { if (labelId in dbFile.labels) continue; // already got it dbFile.labels[labelId] = 1; if (filesByThisLabel == null) filesByThisLabel = self.dbFilesByLabel[labelId] = {}; filesByThisLabel[dbFile.key] = dbFile; } else { if (!(labelId in dbFile.labels)) continue; // already gone delete dbFile.labels[labelId]; delete filesByThisLabel[dbFile.key]; } changedTrack = true; } if (changedTrack) { this.persistDbFile(dbFile, updateCmds); } } if (updateCmds.length === 0) return; this.db.batch(updateCmds, logIfDbError); this.emit('updateDb'); }; Player.prototype.clearQueue = function() { this.removeQueueItems(Object.keys(this.playlist)); }; Player.prototype.removeAllRandomQueueItems = function() { var idsToRemove = []; for (var i = 0; i < this.tracksInOrder.length; i += 1) { var track = this.tracksInOrder[i]; if (track.isRandom && track !== this.currentTrack) { idsToRemove.push(track.id); } } return this.removeQueueItems(idsToRemove); }; Player.prototype.shufflePlaylist = function() { if (this.tracksInOrder.length === 0) return; if (this.autoDjOn) return this.removeAllRandomQueueItems(); var sortKeys = this.tracksInOrder.map(function(track) { return track.sortKey; }); shuffle(sortKeys); // fix sortKey and index properties var updateCmds = []; for (var i = 0; i < this.tracksInOrder.length; i += 1) { var track = this.tracksInOrder[i]; track.index = i; track.sortKey = sortKeys[i]; persistQueueItem(track, updateCmds); } this.db.batch(updateCmds, logIfDbError); playlistChanged(this); }; Player.prototype.removeQueueItems = function(ids) { if (ids.length === 0) return; var delCmds = []; var currentTrackChanged = false; for (var i = 0; i < ids.length; i += 1) { var id = ids[i]; var item = this.playlist[id]; if (!item) continue; delCmds.push({type: 'del', key: QUEUE_KEY_PREFIX + id}); if (item.grooveFile) this.playlistItemDeleteQueue.push(item); if (item === this.currentTrack) { var nextPos = this.currentTrack.index + 1; for (;;) { var nextTrack = this.tracksInOrder[nextPos]; var nextTrackId = nextTrack && nextTrack.id; this.currentTrack = nextTrackId && this.playlist[nextTrack.id]; if (!this.currentTrack && nextPos < this.tracksInOrder.length) { nextPos += 1; continue; } break; } if (this.currentTrack) { this.seekRequestPos = 0; } currentTrackChanged = true; } delete this.playlist[id]; } if (delCmds.length > 0) this.db.batch(delCmds, logIfDbError); playlistChanged(this); if (currentTrackChanged) { this.currentTrackChanged(); } }; // items looks like {id: {sortKey}} Player.prototype.moveQueueItems = function(items) { var updateCmds = []; for (var id in items) { var track = this.playlist[id]; if (!track) continue; // race conditions, etc. track.sortKey = items[id].sortKey; persistQueueItem(track, updateCmds); } if (updateCmds.length > 0) { this.db.batch(updateCmds, logIfDbError); playlistChanged(this); } }; Player.prototype.moveRangeToPos = function(startPos, endPos, toPos) { var ids = []; for (var i = startPos; i < endPos; i += 1) { var track = this.tracksInOrder[i]; if (!track) continue; ids.push(track.id); } this.moveIdsToPos(ids, toPos); }; Player.prototype.moveIdsToPos = function(ids, toPos) { var trackBeforeIndex = this.tracksInOrder[toPos - 1]; var trackAtIndex = this.tracksInOrder[toPos]; var prevSortKey = trackBeforeIndex ? trackBeforeIndex.sortKey : null; var nextSortKey = trackAtIndex ? trackAtIndex.sortKey : null; var sortKeys = keese(prevSortKey, nextSortKey, ids.length); var updateCmds = []; for (var i = 0; i < ids.length; i += 1) { var id = ids[i]; var queueItem = this.playlist[id]; if (!queueItem) continue; queueItem.sortKey = sortKeys[i]; persistQueueItem(queueItem, updateCmds); } if (updateCmds.length > 0) { this.db.batch(updateCmds, logIfDbError); playlistChanged(this); } }; Player.prototype.pause = function() { if (!this.isPlaying) return; this.isPlaying = false; this.pausedTime = (new Date() - this.trackStartDate) / 1000; this.groovePlaylist.pause(); this.cancelDetachEncoderTimeout(); playlistChanged(this); this.currentTrackChanged(); }; Player.prototype.play = function() { if (!this.currentTrack) { this.currentTrack = this.tracksInOrder[0]; } else if (!this.isPlaying) { this.trackStartDate = new Date(new Date() - this.pausedTime * 1000); } this.groovePlaylist.play(); this.startDetachEncoderTimeout(); this.isPlaying = true; playlistChanged(this); this.currentTrackChanged(); }; // This function should be avoided in favor of seek. Note that it is called by // some MPD protocol commands, because the MPD protocol is stupid. Player.prototype.seekToIndex = function(index, pos) { var track = this.tracksInOrder[index]; if (!track) return null; this.currentTrack = track; this.seekRequestPos = pos; playlistChanged(this); this.currentTrackChanged(); return track; }; Player.prototype.seek = function(id, pos) { var track = this.playlist[id]; if (!track) return null; this.currentTrack = this.playlist[id]; this.seekRequestPos = pos; playlistChanged(this); this.currentTrackChanged(); return track; }; Player.prototype.next = function() { return this.skipBy(1); }; Player.prototype.prev = function() { return this.skipBy(-1); }; Player.prototype.skipBy = function(amt) { var defaultIndex = amt > 0 ? -1 : this.tracksInOrder.length; var currentIndex = this.currentTrack ? this.currentTrack.index : defaultIndex; var newIndex = currentIndex + amt; return this.seekToIndex(newIndex, 0); }; Player.prototype.setRepeat = function(value) { value = Math.floor(value); if (value !== Player.REPEAT_ONE && value !== Player.REPEAT_ALL && value !== Player.REPEAT_OFF) { return; } if (value === this.repeat) return; this.repeat = value; this.persistOption('repeat', this.repeat); playlistChanged(this); this.emit('repeatUpdate'); }; Player.prototype.setAutoDjOn = function(value) { value = !!value; if (value === this.autoDjOn) return; this.autoDjOn = value; this.persistOption('autoDjOn', this.autoDjOn); this.emit('autoDjOn'); this.checkAutoDj(); }; Player.prototype.setAutoDjHistorySize = function(value) { value = Math.floor(value); if (value === this.autoDjHistorySize) return; this.autoDjHistorySize = value; this.persistOption('autoDjHistorySize', this.autoDjHistorySize); this.emit('autoDjHistorySize'); this.checkAutoDj(); }; Player.prototype.setAutoDjFutureSize = function(value) { value = Math.floor(value); if (value === this.autoDjFutureSize) return; this.autoDjFutureSize = value; this.persistOption('autoDjFutureSize', this.autoDjFutureSize); this.emit('autoDjFutureSize'); this.checkAutoDj(); }; Player.prototype.stop = function() { this.isPlaying = false; this.cancelDetachEncoderTimeout(); this.groovePlaylist.pause(); this.seekRequestPos = 0; this.pausedTime = 0; playlistChanged(this); }; Player.prototype.clearEncodedBuffer = function() { while (this.recentBuffers.length > 0) { this.recentBuffers.shift(); } }; Player.prototype.getSuggestedPath = function(track, filenameHint) { var p = ""; if (track.albumArtistName) { p = path.join(p, safePath(track.albumArtistName)); } else if (track.compilation) { p = path.join(p, safePath(this.libraryIndex.variousArtistsName)); } else if (track.artistName) { p = path.join(p, safePath(track.artistName)); } if (track.albumName) { p = path.join(p, safePath(track.albumName)); } var t = ""; if (track.track != null) { t += safePath(zfill(track.track, 2)) + " "; } t += safePath(track.name + path.extname(filenameHint)); return path.join(p, t); }; Player.prototype.queueScan = function(dbFile) { var self = this; var scanKey, scanType; if (dbFile.albumName) { scanType = 'album'; scanKey = self.libraryIndex.getAlbumKey(dbFile); } else { scanType = 'track'; scanKey = dbFile.key; } if (self.scanQueue.idInQueue(scanKey)) { return; } self.scanQueue.add(scanKey, { type: scanType, key: scanKey, }); }; Player.prototype.performScan = function(args, cb) { var self = this; var scanType = args.type; var scanKey = args.key; // build list of files we want to open var dbFilesToOpen; if (scanType === 'album') { var albumKey = scanKey; self.libraryIndex.rebuildTracks(); var album = self.libraryIndex.albumTable[albumKey]; if (!album) { log.warn("wanted to scan album with key", JSON.stringify(albumKey), "but no longer exists."); cb(); return; } log.debug("Scanning album for loudness:", JSON.stringify(albumKey)); dbFilesToOpen = album.trackList; } else if (scanType === 'track') { var trackKey = scanKey; var dbFile = self.libraryIndex.trackTable[trackKey]; if (!dbFile) { log.warn("wanted to scan track with key", JSON.stringify(trackKey), "but no longer exists."); cb(); return; } log.debug("Scanning track for loudness:", JSON.stringify(trackKey)); dbFilesToOpen = [dbFile]; } else { throw new Error("unexpected scan type: " + scanType); } // open all the files in the list var pend = new Pend(); // we're already doing multiple parallel scans. within each scan let's // read one thing at a time to avoid slamming the system. pend.max = 1; var grooveFileList = []; var files = {}; dbFilesToOpen.forEach(function(dbFile) { pend.go(function(cb) { var fullPath = path.join(self.musicDirectory, dbFile.file); log.debug("performScan open file:", fullPath); groove.open(fullPath, function(err, file) { if (err) { log.error("Error opening", fullPath, "in order to scan:", err.stack); } else { var fileInfo; files[file.id] = fileInfo = { dbFile: dbFile, loudnessDone: false, fingerprintDone: false, }; self.ongoingScans[dbFile.key] = fileInfo; grooveFileList.push(file); } cb(); }); }); }); var scanPlaylist; var endOfPlaylistPend = new Pend(); var scanDetector; var scanDetectorAttached = false; var endOfDetectorCb; var scanFingerprinter; var scanFingerprinterAttached = false; var endOfFingerprinterCb; pend.wait(function() { // emit this because we updated ongoingScans self.emit('scanProgress'); scanPlaylist = groove.createPlaylist(); scanPlaylist.setFillMode(groove.ANY_SINK_FULL); scanDetector = groove.createLoudnessDetector(); scanFingerprinter = groove.createFingerprinter(); scanDetector.on('info', onLoudnessInfo); scanFingerprinter.on('info', onFingerprinterInfo); var pend = new Pend(); pend.go(attachLoudnessDetector); pend.go(attachFingerprinter); pend.wait(onEverythingAttached); }); function onEverythingAttached(err) { if (err) { log.error("Error attaching:", err.stack); cleanupAndCb(); return; } grooveFileList.forEach(function(file) { scanPlaylist.insert(file); }); endOfPlaylistPend.wait(function() { for (var fileId in files) { var fileInfo = files[fileId]; var dbFile = fileInfo.dbFile; self.persistOneDbFile(dbFile); self.emit('scanComplete', dbFile); } cleanupAndCb(); }); } function attachLoudnessDetector(cb) { scanDetector.attach(scanPlaylist, function(err) { if (err) return cb(err); scanDetectorAttached = true; endOfPlaylistPend.go(function(cb) { endOfDetectorCb = cb; }); cb(); }); } function attachFingerprinter(cb) { scanFingerprinter.attach(scanPlaylist, function(err) { if (err) return cb(err); scanFingerprinterAttached = true; endOfPlaylistPend.go(function(cb) { endOfFingerprinterCb = cb; }); cb(); }); } function onLoudnessInfo() { var info; while (info = scanDetector.getInfo()) { var gain = groove.loudnessToReplayGain(info.loudness); var dbFile; var fileInfo; if (info.item) { fileInfo = files[info.item.file.id]; fileInfo.loudnessDone = true; dbFile = fileInfo.dbFile; log.info("loudness scan file complete:", dbFile.name, "gain", gain, "duration", info.duration); dbFile.replayGainTrackGain = gain; dbFile.replayGainTrackPeak = info.peak; dbFile.duration = info.duration; checkUpdateGroovePlaylist(self); self.emit('scanProgress'); } else { log.debug("loudness scan complete:", JSON.stringify(scanKey), "gain", gain); for (var fileId in files) { fileInfo = files[fileId]; dbFile = fileInfo.dbFile; dbFile.replayGainAlbumGain = gain; dbFile.replayGainAlbumPeak = info.peak; } checkUpdateGroovePlaylist(self); if (endOfDetectorCb) { endOfDetectorCb(); endOfDetectorCb = null; } return; } } } function onFingerprinterInfo() { var info; while (info = scanFingerprinter.getInfo()) { if (info.item) { var fileInfo = files[info.item.file.id]; fileInfo.fingerprintDone = true; var dbFile = fileInfo.dbFile; log.info("fingerprint scan file complete:", dbFile.name); dbFile.fingerprint = info.fingerprint; self.emit('scanProgress'); } else { log.debug("fingerprint scan complete:", JSON.stringify(scanKey)); if (endOfFingerprinterCb) { endOfFingerprinterCb(); endOfFingerprinterCb = null; } return; } } } function cleanupAndCb() { grooveFileList.forEach(function(file) { pend.go(function(cb) { var fileInfo = files[file.id]; var dbFile = fileInfo.dbFile; delete self.ongoingScans[dbFile.key]; log.debug("performScan close file:", file.filename); file.close(cb); }); }); if (scanDetectorAttached) pend.go(detachLoudnessScanner); if (scanFingerprinterAttached) pend.go(detachFingerprinter); pend.wait(function(err) { // emit this because we changed ongoingScans above self.emit('scanProgress'); cb(err); }); } function detachLoudnessScanner(cb) { scanDetector.detach(cb); } function detachFingerprinter(cb) { scanFingerprinter.detach(cb); } }; Player.prototype.checkAutoDj = function() { var self = this; if (!self.autoDjOn) return; // if no track is playing, assume the first track is about to be var currentIndex = self.currentTrack ? self.currentTrack.index : 0; var deleteCount = Math.max(currentIndex - self.autoDjHistorySize, 0); if (self.autoDjHistorySize < 0) deleteCount = 0; var addCount = Math.max(self.autoDjFutureSize + 1 - (self.tracksInOrder.length - currentIndex), 0); var idsToDelete = []; for (var i = 0; i < deleteCount; i += 1) { idsToDelete.push(self.tracksInOrder[i].id); } var keys = getRandomSongKeys(addCount); self.removeQueueItems(idsToDelete); self.appendTracks(keys, true); function getRandomSongKeys(count) { if (count === 0) return []; var neverQueued = []; var sometimesQueued = []; for (var key in self.libraryIndex.trackTable) { var dbFile = self.libraryIndex.trackTable[key]; if (dbFile.lastQueueDate == null) { neverQueued.push(dbFile); } else { sometimesQueued.push(dbFile); } } // backwards by time sometimesQueued.sort(function(a, b) { return b.lastQueueDate - a.lastQueueDate; }); // distribution is a triangle for ever queued, and a rectangle for never queued // ___ // /| | // / | | // /__|_| var maxWeight = sometimesQueued.length; var triangleArea = Math.floor(maxWeight * maxWeight / 2); if (maxWeight === 0) maxWeight = 1; var rectangleArea = maxWeight * neverQueued.length; var totalSize = triangleArea + rectangleArea; if (totalSize === 0) return []; // decode indexes through the distribution shape var keys = []; for (var i = 0; i < count; i += 1) { var index = Math.random() * totalSize; if (index < triangleArea) { // triangle keys.push(sometimesQueued[Math.floor(Math.sqrt(index))].key); } else { keys.push(neverQueued[Math.floor((index - triangleArea) / maxWeight)].key); } } return keys; } }; Player.prototype.currentTrackChanged = function() { this.persistCurrentTrack(); this.emit('currentTrack'); }; Player.prototype.persistCurrentTrack = function(cb) { // save the current track and time to db var currentTrackInfo = { id: this.currentTrack && this.currentTrack.id, pos: this.getCurPos(), }; this.persistOption('currentTrackInfo', currentTrackInfo, cb); }; Player.prototype.sortAndQueueTracks = function(tracks) { // given an array of tracks, sort them according to the library sorting // and then queue them in the best place if (!tracks.length) return; var sortedTracks = sortTracks(tracks); this.queueTracks(sortedTracks); }; Player.prototype.sortAndQueueTracksInPlaylist = function(playlist, tracks, previousKey, nextKey) { if (!tracks.length) return; var sortedTracks = sortTracks(tracks); var items = {}; var sortKeys = keese(previousKey, nextKey, tracks.length); for (var i = 0; i < tracks.length; i += 1) { var track = tracks[i]; var sortKey = sortKeys[i]; var id = uuid(); items[id] = { key: track.key, sortKey: sortKey, }; } this.playlistAddItems(playlist.id, items); }; Player.prototype.queueTrackKeys = function(trackKeys, previousKey, nextKey) { if (!trackKeys.length) return; if (previousKey == null && nextKey == null) { var defaultPos = this.getDefaultQueuePosition(); previousKey = defaultPos.previousKey; nextKey = defaultPos.nextKey; } var items = {}; var sortKeys = keese(previousKey, nextKey, trackKeys.length); for (var i = 0; i < trackKeys.length; i += 1) { var trackKey = trackKeys[i]; var sortKey = sortKeys[i]; var id = uuid(); items[id] = { key: trackKey, sortKey: sortKey, }; } this.addItems(items, false); }; Player.prototype.queueTracks = function(tracks, previousKey, nextKey) { // given an array of tracks, and a previous sort key and a next sort key, // call addItems correctly var trackKeys = tracks.map(function(track) { return track.key; }).filter(function(key) { return !!key; }); return this.queueTrackKeys(trackKeys, previousKey, nextKey); }; Player.prototype.getDefaultQueuePosition = function() { var previousKey = this.currentTrack && this.currentTrack.sortKey; var nextKey = null; var startPos = this.currentTrack ? this.currentTrack.index + 1 : 0; for (var i = startPos; i < this.tracksInOrder.length; i += 1) { var track = this.tracksInOrder[i]; var sortKey = track.sortKey; if (track.isRandom) { nextKey = sortKey; break; } previousKey = sortKey; } return { previousKey: previousKey, nextKey: nextKey }; }; function persistDbFile(dbFile, updateCmds) { updateCmds.push({ type: 'put', key: LIBRARY_KEY_PREFIX + dbFile.key, value: serializeFileData(dbFile), }); } function persistQueueItem(item, updateCmds) { updateCmds.push({ type: 'put', key: QUEUE_KEY_PREFIX + item.id, value: serializeQueueItem(item), }); } function onAddOrChange(self, relPath, fileMtime, cb) { cb = cb || logIfError; // check the mtime against the mtime of the same file in the db var dbFile = self.dbFilesByPath[relPath]; if (dbFile) { var dbMtime = dbFile.mtime; if (dbMtime >= fileMtime) { // the info we have in our db for this file is fresh cb(null, dbFile); return; } } self.addQueue.add(relPath, { relPath: relPath, mtime: fileMtime, }); self.addQueue.waitForId(relPath, function(err) { var dbFile = self.dbFilesByPath[relPath]; cb(err, dbFile); }); function logIfError(err) { if (err) { log.error("Unable to add to queue:", err.stack); } } } function checkPlayCount(self) { if (self.isPlaying && !self.previousIsPlaying) { self.playingStart = new Date(new Date() - self.playingTime); self.previousIsPlaying = true; } self.playingTime = new Date() - self.playingStart; if (self.currentTrack === self.lastPlayingItem) return; if (self.lastPlayingItem) { var dbFile = self.libraryIndex.trackTable[self.lastPlayingItem.key]; if (dbFile) { var minAmt = 15 * 1000; var maxAmt = 4 * 60 * 1000; var halfAmt = dbFile.duration / 2 * 1000; if (self.playingTime >= minAmt && (self.playingTime >= maxAmt || self.playingTime >= halfAmt)) { dbFile.playCount += 1; self.persistOneDbFile(dbFile); self.emit('play', self.lastPlayingItem, dbFile, self.playingStart); self.emit('updateDb'); } } } self.lastPlayingItem = self.currentTrack; self.previousIsPlaying = self.isPlaying; self.playingStart = new Date(); self.playingTime = 0; } function disableFsListenRef(self, fn) { self.disableFsRefCount += 1; if (self.disableFsRefCount === 1) { log.debug("pause dirScanQueue"); self.dirScanQueue.setPause(true); self.dirScanQueue.waitForProcessing(fn); } else { fn(); } } function disableFsListenUnref(self) { self.disableFsRefCount -= 1; if (self.disableFsRefCount === 0) { log.debug("unpause dirScanQueue"); self.dirScanQueue.setPause(false); } else if (self.disableFsRefCount < 0) { throw new Error("disableFsListenUnref called too many times"); } } function operatorCompare(a, b) { return a < b ? -1 : a > b ? 1 : 0; } function disambiguateSortKeys(self) { var previousUniqueKey = null; var previousKey = null; self.tracksInOrder.forEach(function(track, i) { if (track.sortKey === previousKey) { // move the repeat back track.sortKey = keese(previousUniqueKey, track.sortKey); previousUniqueKey = track.sortKey; } else { previousUniqueKey = previousKey; previousKey = track.sortKey; } }); } // generate self.tracksInOrder from self.playlist function cacheTracksArray(self) { self.tracksInOrder = Object.keys(self.playlist).map(trackById); self.tracksInOrder.sort(asc); self.tracksInOrder.forEach(function(track, index) { track.index = index; }); function asc(a, b) { return operatorCompare(a.sortKey, b.sortKey); } function trackById(id) { return self.playlist[id]; } } function lazyReplayGainScanPlaylist(self) { // clear the queue since we're going to completely rebuild it anyway // this allows the following priority code to work. self.scanQueue.clear(); // prioritize the currently playing track, followed by the next tracks, // followed by the previous tracks var albumGain = {}; var start1 = self.currentTrack ? self.currentTrack.index : 0; var i; for (i = start1; i < self.tracksInOrder.length; i += 1) { checkScan(self.tracksInOrder[i]); } for (i = 0; i < start1; i += 1) { checkScan(self.tracksInOrder[i]); } function checkScan(track) { var dbFile = self.libraryIndex.trackTable[track.key]; if (!dbFile) return; var albumKey = self.libraryIndex.getAlbumKey(dbFile); var needScan = dbFile.fingerprint == null || dbFile.replayGainAlbumGain == null || dbFile.replayGainTrackGain == null || (dbFile.albumName && albumGain[albumKey] && albumGain[albumKey] !== dbFile.replayGainAlbumGain); if (needScan) { self.queueScan(dbFile); } else { albumGain[albumKey] = dbFile.replayGainAlbumGain; } } } function playlistChanged(self) { cacheTracksArray(self); disambiguateSortKeys(self); if (self.currentTrack) { self.tracksInOrder.forEach(function(track, index) { var prevDiff = self.currentTrack.index - index; var nextDiff = index - self.currentTrack.index; var withinPrev = prevDiff <= PREV_FILE_COUNT && prevDiff >= 0; var withinNext = nextDiff <= NEXT_FILE_COUNT && nextDiff >= 0; var shouldHaveGrooveFile = withinPrev || withinNext; var hasGrooveFile = track.grooveFile != null || track.pendingGrooveFile; if (hasGrooveFile && !shouldHaveGrooveFile) { self.playlistItemDeleteQueue.push(track); } else if (!hasGrooveFile && shouldHaveGrooveFile) { preloadFile(self, track); } }); } else { self.isPlaying = false; self.cancelDetachEncoderTimeout(); self.trackStartDate = null; self.pausedTime = 0; } checkUpdateGroovePlaylist(self); performGrooveFileDeletes(self); self.checkAutoDj(); checkPlayCount(self); self.emit('queueUpdate'); } function performGrooveFileDeletes(self) { while (self.playlistItemDeleteQueue.length) { var item = self.playlistItemDeleteQueue.shift(); // we set this so that any callbacks that return which were trying to // set the grooveItem can check if the item got deleted item.deleted = true; if (!item.grooveFile) continue; log.debug("performGrooveFileDeletes close file:", item.grooveFile.filename); var grooveFile = item.grooveFile; item.grooveFile = null; closeFile(grooveFile); } } function preloadFile(self, track) { var relPath = self.libraryIndex.trackTable[track.key].file; var fullPath = path.join(self.musicDirectory, relPath); track.pendingGrooveFile = true; log.debug("preloadFile open file:", fullPath); // set this so that we know we want the file preloaded track.deleted = false; groove.open(fullPath, function(err, file) { track.pendingGrooveFile = false; if (err) { log.error("Error opening", relPath, err.stack); return; } if (track.deleted) { log.debug("preloadFile close file (already deleted):", file.filename); closeFile(file); return; } track.grooveFile = file; checkUpdateGroovePlaylist(self); }); } function checkUpdateGroovePlaylist(self) { if (!self.currentTrack) { self.groovePlaylist.clear(); self.grooveItems = {}; return; } var groovePlaylist = self.groovePlaylist.items(); var playHead = self.groovePlayer.position(); var playHeadItemId = playHead.item && playHead.item.id; var groovePlIndex = 0; var grooveItem; if (playHeadItemId) { while (groovePlIndex < groovePlaylist.length) { grooveItem = groovePlaylist[groovePlIndex]; if (grooveItem.id === playHeadItemId) break; // this groove playlist item is before the current playhead. delete it! self.groovePlaylist.remove(grooveItem); delete self.grooveItems[grooveItem.id]; groovePlIndex += 1; } } var plItemIndex = self.currentTrack.index; var plTrack; var currentGrooveItem = null; // might be different than playHead.item var groovePlItemCount = 0; var gainAndPeak; while (groovePlIndex < groovePlaylist.length) { grooveItem = groovePlaylist[groovePlIndex]; var grooveTrack = self.grooveItems[grooveItem.id]; // now we have deleted all items before the current track. we are now // comparing the libgroove playlist and the groovebasin playlist // side by side. plTrack = self.tracksInOrder[plItemIndex]; if (grooveTrack === plTrack) { // if they're the same, we advance // but we might have to correct the gain gainAndPeak = calcGainAndPeak(plTrack); self.groovePlaylist.setItemGain(grooveItem, gainAndPeak.gain); self.groovePlaylist.setItemPeak(grooveItem, gainAndPeak.peak); currentGrooveItem = currentGrooveItem || grooveItem; groovePlIndex += 1; incrementPlIndex(); continue; } // this groove track is wrong. delete it. self.groovePlaylist.remove(grooveItem); delete self.grooveItems[grooveItem.id]; groovePlIndex += 1; } // we still need to add more libgroove playlist items, but this one has // not yet finished loading from disk. We must take note of this so that // if we receive the end of playlist sentinel, we start playback again // once this track has finished loading. self.dontBelieveTheEndOfPlaylistSentinelItsATrap = true; while (groovePlItemCount < NEXT_FILE_COUNT) { plTrack = self.tracksInOrder[plItemIndex]; if (!plTrack) { // we hit the end of the groove basin playlist. we're done adding tracks // to the libgroove playlist. self.dontBelieveTheEndOfPlaylistSentinelItsATrap = false; break; } if (!plTrack.grooveFile) { break; } // compute the gain adjustment gainAndPeak = calcGainAndPeak(plTrack); grooveItem = self.groovePlaylist.insert(plTrack.grooveFile, gainAndPeak.gain, gainAndPeak.peak); self.grooveItems[grooveItem.id] = plTrack; currentGrooveItem = currentGrooveItem || grooveItem; incrementPlIndex(); } if (currentGrooveItem && self.seekRequestPos >= 0) { var seekPos = self.seekRequestPos; // we want to clear encoded buffers after the seek completes, e.g. after // we get the end of playlist sentinel self.clearEncodedBuffer(); self.queueClearEncodedBuffers = true; self.groovePlaylist.seek(currentGrooveItem, seekPos); self.seekRequestPos = -1; if (self.isPlaying) { var nowMs = (new Date()).getTime(); var posMs = seekPos * 1000; self.trackStartDate = new Date(nowMs - posMs); } else { self.pausedTime = seekPos; } self.currentTrackChanged(); } function calcGainAndPeak(plTrack) { // if the previous item is the previous item from the album, or the // next item is the next item from the album, use album replaygain. // else, use track replaygain. var dbFile = self.libraryIndex.trackTable[plTrack.key]; var albumMode = albumInfoMatch(-1) || albumInfoMatch(1); var gain = REPLAYGAIN_PREAMP; var peak; if (dbFile.replayGainAlbumGain != null && albumMode) { gain *= dBToFloat(dbFile.replayGainAlbumGain); peak = dbFile.replayGainAlbumPeak || 1.0; } else if (dbFile.replayGainTrackGain != null) { gain *= dBToFloat(dbFile.replayGainTrackGain); peak = dbFile.replayGainTrackPeak || 1.0; } else { gain *= REPLAYGAIN_DEFAULT; peak = 1.0; } return {gain: gain, peak: peak}; function albumInfoMatch(dir) { var otherPlTrack = self.tracksInOrder[plTrack.index + dir]; if (!otherPlTrack) return false; var otherDbFile = self.libraryIndex.trackTable[otherPlTrack.key]; if (!otherDbFile) return false; var albumMatch = self.libraryIndex.getAlbumKey(dbFile) === self.libraryIndex.getAlbumKey(otherDbFile); if (!albumMatch) return false; // if there are no track numbers then it's hardly an album, is it? if (dbFile.track == null || otherDbFile.track == null) { return false; } var trackMatch = dbFile.track + dir === otherDbFile.track; if (!trackMatch) return false; return true; } } function incrementPlIndex() { groovePlItemCount += 1; if (self.repeat !== Player.REPEAT_ONE) { plItemIndex += 1; if (self.repeat === Player.REPEAT_ALL && plItemIndex >= self.tracksInOrder.length) { plItemIndex = 0; } } } } function isFileIgnored(basename) { return (/^\./).test(basename) || (/~$/).test(basename); } function isExtensionIgnored(self, extName) { var extNameLower = extName.toLowerCase(); for (var i = 0; i < self.ignoreExtensions.length; i += 1) { if (self.ignoreExtensions[i] === extNameLower) { return true; } } return false; } function deserializeFileData(dataStr) { var dbFile = JSON.parse(dataStr); for (var propName in DB_PROPS) { var propInfo = DB_PROPS[propName]; if (!propInfo) continue; var parser = PROP_TYPE_PARSERS[propInfo.type]; dbFile[propName] = parser(dbFile[propName]); } return dbFile; } function serializeQueueItem(item) { return JSON.stringify({ id: item.id, key: item.key, sortKey: item.sortKey, isRandom: item.isRandom, }); } function serializePlaylistItem(item) { return JSON.stringify({ id: item.id, key: item.key, sortKey: item.sortKey, }); } function trackWithoutIndex(category, dbFile) { var out = {}; for (var propName in DB_PROPS) { var prop = DB_PROPS[propName]; if (!prop[category]) continue; // save space by leaving out null and undefined values var value = dbFile[propName]; if (value == null) continue; if (prop.type === 'set') { out[propName] = copySet(value); } else { out[propName] = value; } } return out; } function serializeFileData(dbFile) { return JSON.stringify(trackWithoutIndex('db', dbFile)); } function serializeDirEntry(dirEntry) { return JSON.stringify({ dirName: dirEntry.dirName, entries: dirEntry.entries, dirEntries: dirEntry.dirEntries, mtime: dirEntry.mtime, }); } function filenameWithoutExt(filename) { var ext = path.extname(filename); return filename.substring(0, filename.length - ext.length); } function closeFile(file) { file.close(function(err) { if (err) { log.error("Error closing", file, err.stack); } }); } function parseTrackString(trackStr) { if (!trackStr) return {}; var parts = trackStr.split('/'); if (parts.length > 1) { return { value: parseIntOrNull(parts[0]), total: parseIntOrNull(parts[1]), }; } return { value: parseIntOrNull(parts[0]), }; } function parseIntOrNull(n) { n = parseInt(n, 10); if (isNaN(n)) return null; return n; } function parseFloatOrNull(n) { n = parseFloat(n); if (isNaN(n)) return null; return n; } function grooveFileToDbFile(file, filenameHintWithoutPath, object) { object = object || {key: uuid()}; var parsedTrack = parseTrackString(file.getMetadata("track")); var parsedDisc = parseTrackString( file.getMetadata("disc") || file.getMetadata("TPA") || file.getMetadata("TPOS")); object.name = (file.getMetadata("title") || filenameWithoutExt(filenameHintWithoutPath) || "").trim(); object.artistName = (file.getMetadata("artist") || "").trim(); object.composerName = (file.getMetadata("composer") || file.getMetadata("TCM") || "").trim(); object.performerName = (file.getMetadata("performer") || "").trim(); object.albumArtistName = (file.getMetadata("album_artist") || "").trim(); object.albumName = (file.getMetadata("album") || "").trim(); object.compilation = !!(parseInt(file.getMetadata("TCP"), 10) || parseInt(file.getMetadata("TCMP"), 10) || file.getMetadata("COMPILATION") || file.getMetadata("Compilation") || file.getMetadata("cpil") || file.getMetadata("WM/IsCompilation")); object.track = parsedTrack.value; object.trackCount = parsedTrack.total; object.disc = parsedDisc.value; object.discCount = parsedDisc.total; object.duration = file.duration(); object.year = parseIntOrNull(file.getMetadata("date")); object.genre = file.getMetadata("genre"); object.replayGainTrackGain = parseFloatOrNull(file.getMetadata("REPLAYGAIN_TRACK_GAIN")); object.replayGainTrackPeak = parseFloatOrNull(file.getMetadata("REPLAYGAIN_TRACK_PEAK")); object.replayGainAlbumGain = parseFloatOrNull(file.getMetadata("REPLAYGAIN_ALBUM_GAIN")); object.replayGainAlbumPeak = parseFloatOrNull(file.getMetadata("REPLAYGAIN_ALBUM_PEAK")); object.labels = {}; return object; } function uniqueFilename(filename) { // break into parts var dirname = path.dirname(filename); var basename = path.basename(filename); var extname = path.extname(filename); var withoutExt = basename.substring(0, basename.length - extname.length); var match = withoutExt.match(/_(\d+)$/); var withoutMatch; var number; if (match) { number = parseInt(match[1], 10); if (!number) number = 0; withoutMatch = withoutExt.substring(0, match.index); } else { number = 0; withoutMatch = withoutExt; } number += 1; // put it back together var newBasename = withoutMatch + "_" + number + extname; return path.join(dirname, newBasename); } function dBToFloat(dB) { return Math.exp(dB * DB_SCALE); } function ensureSep(dir) { return (dir[dir.length - 1] === path.sep) ? dir : (dir + path.sep); } function ensureGrooveVersionIsOk() { var ver = groove.getVersion(); var verStr = ver.major + '.' + ver.minor + '.' + ver.patch; var reqVer = '>=4.1.1'; if (semver.satisfies(verStr, reqVer)) return; log.fatal("Found libgroove", verStr, "need", reqVer); process.exit(1); } function playlistItemKey(playlist, item) { return PLAYLIST_KEY_PREFIX + playlist.id + '.' + item.id; } function playlistKey(playlist) { return PLAYLIST_META_KEY_PREFIX + playlist.id; } function serializePlaylist(playlist) { return JSON.stringify({ id: playlist.id, name: playlist.name, mtime: playlist.mtime, }); } function deserializePlaylist(str) { var playlist = JSON.parse(str); playlist.items = {}; return playlist; } function zfill(number, size) { number = String(number); while (number.length < size) number = "0" + number; return number; } function setGrooveLoggingLevel() { switch (log.level) { case log.levels.Fatal: case log.levels.Error: case log.levels.Info: case log.levels.Warn: groove.setLogging(groove.LOG_QUIET); break; case log.levels.Debug: groove.setLogging(groove.LOG_INFO); break; } } function importFileAsSong(self, srcFullPath, filenameHintWithoutPath, cb) { groove.open(srcFullPath, function(err, file) { if (err) return cb(err); var newDbFile = grooveFileToDbFile(file, filenameHintWithoutPath); var suggestedPath = self.getSuggestedPath(newDbFile, filenameHintWithoutPath); var pend = new Pend(); pend.go(function(cb) { log.debug("importFileAsSong close file:", file.filename); file.close(cb); }); pend.go(function(cb) { tryMv(suggestedPath, cb); }); pend.wait(function(err) { if (err) return cb(err); cb(null, [newDbFile]); }); function tryMv(destRelPath, cb) { var destFullPath = path.join(self.musicDirectory, destRelPath); // before importFileAsSong is called, file system watching is disabled. // So we can safely move files into the library without triggering an // update db. mv(srcFullPath, destFullPath, {mkdirp: true, clobber: false}, function(err) { if (err) { if (err.code === 'EEXIST') { tryMv(uniqueFilename(destRelPath), cb); } else { cb(err); } return; } onAddOrChange(self, destRelPath, (new Date()).getTime(), function(err, dbFile) { if (err) return cb(err); newDbFile = dbFile; cb(); }); }); } }); } function importFileAsZip(self, srcFullPath, filenameHintWithoutPath, cb) { yauzl.open(srcFullPath, function(err, zipfile) { if (err) return cb(err); var allDbFiles = []; var pend = new Pend(); zipfile.on('error', handleError); zipfile.on('entry', onEntry); zipfile.on('end', onEnd); function onEntry(entry) { if (/\/$/.test(entry.fileName)) { // ignore directories return; } pend.go(function(cb) { zipfile.openReadStream(entry, function(err, readStream) { if (err) { log.warn("Error reading zip file:", err.stack); cb(); return; } var entryBaseName = path.basename(entry.fileName); self.importStream(readStream, entryBaseName, entry.uncompressedSize, function(err, dbFiles) { if (err) { log.warn("unable to import entry from zip file:", err.stack); } else if (dbFiles) { allDbFiles = allDbFiles.concat(dbFiles); } cb(); }); }); }); } function onEnd() { pend.wait(function() { unlinkZipFile(); cb(null, allDbFiles); }); } function handleError(err) { unlinkZipFile(); cb(err); } function unlinkZipFile() { fs.unlink(srcFullPath, function(err) { if (err) { log.error("Unable to remove zip file after importing:", err.stack); } }); } }); } // sort keys according to how they appear in the library function sortTracks(tracks) { var lib = new MusicLibraryIndex(); tracks.forEach(function(track) { lib.addTrack(track); }); lib.rebuildTracks(); var results = []; lib.artistList.forEach(function(artist) { artist.albumList.forEach(function(album) { album.trackList.forEach(function(track) { results.push(track); }); }); }); return results; } function logIfDbError(err) { if (err) { log.error("Unable to update DB:", err.stack); } } function makeLower(str) { return str.toLowerCase(); } function copySet(set) { var out = {}; for (var key in set) { out[key] = 1; } return out; }
import { stringify } from 'qs' import _request from '@/utils/request' import mini from '@/utils/mini' import env from '@/config/env' // import { modelApis, commonParams } from './model' // import { version } from '../package.json' let apiBaseUrl apiBaseUrl = `${env.apiBaseUrl}` const regHttp = /^https?/i const isMock = true; // const regMock = /^mock?/i function compact(obj) { for (const key in obj) { if (!obj[key]) { delete obj[key] } } return obj } function request(url, options, success, fail) { const originUrl = regHttp.test(url) ? url : `${apiBaseUrl}${url}` return _request(originUrl, compact(options), success, fail) } /** * API 命名规则 * - 使用 camelCase 命名格式(小驼峰命名) * - 命名尽量对应 RESTful 风格,`${动作}${资源}` * - 假数据增加 fake 前缀 * - 便捷易用大于规则,程序是给人看的 */ // api 列表 const modelApis = { // 初始化配置 test: 'https://easy-mock.com/mock/5aa79bf26701e17a67bde1d7/', getConfig: '/common/initconfig', getWxSign: '/common/getwxsign', // 积分兑换 getPointIndex: '/point/index', getPointList: '/point/skulist', getPointDetail: '/point/iteminfo', getPointDetaiMore: '/product/productdetail', getRList: '/point/recommenditems', // 专题 getPointTopicInfo: '/point/topicinfo', getPointTopicList: '/point/topicbuskulist', // 主站专题 getTopicInfo: '/product/topicskusinfo', getTopicList: '/product/topicskulist', // 个人中心 getProfile: '/user/usercenter', // 拼团相关 getCoupleList: '/product/coupleskulist', getCoupleDetail: '/product/coupleskudetail', getMerchantList: '/merchant/coupleskulist', coupleOrderInit: 'POST /order/coupleorderinit', coupleOrderList: '/user/usercouplelist', coupleOrderDetail: '/user/usercoupleorderdetail', coupleUserList: '/market/pinactivitiesuserlist', // 分享页拼团头像列表 coupleShareDetail: '/user/coupleactivitiedetail', // 分享详情 // 首页 getIndex: '/common/index', getIndexNew: '/common/index_v1', getHotSearch: '/common/hotsearchsug', // 主流程 orderInit: 'POST /order/orderinit', orderSubmit: 'POST /order/submitorder', orderPay: 'POST /order/orderpay', orderPayConfirm: '/order/orderpayconfirm', // 确认支付状态 getUserOrders: '/order/getuserorders', // 订单列表 getNeedCommentOrders: '/order/waitcommentlist', // 待评论 getUserRefundorders: '/order/userrefundorder', // 退款 getUserServiceOrders: '/order/userserviceorders', // 售后 orderCancel: 'POST /order/cancelorder', // 取消订单 orderDetail: '/order/orderdetail', confirmReceived: 'POST /order/userorderconfirm', // 确认收货 orderComplaint: 'POST /refund/complaint', // 订单申诉 // 积分订单相关 pointOrderInit: 'POST /tradecenter/pointorderpreview', pointOrderSubmit: 'POST /tradecenter/pointordersubmit', pointOrderCancel: 'POST /tradecenter/ordercancel', pointOrderList: '/tradecenter/orderlist', pointOrderDetail: '/tradecenter/orderinfo', pointOrderSuccess: '/tradecenter/ordersuccess', // 退款相关 refundInit: '/refund/init', refundDetail: '/refund/detail', refundApply: 'POST /refund/apply', // 登录注销 login: 'POST /user/login', logout: 'POST /user/logout', // 地址管理 addressList: '/user/addresslist', addAddress: 'POST /user/addaddress', updateAddress: 'POST /user/updateaddress', setDefaultAddress: 'POST /user/setdefaultaddress', deleteAddress: 'POST /user/deleteaddress', provinceList: '/nation/provincelist', cityList: '/nation/citylist', districtList: '/nation/districtlist', // 查看物流 getDelivery: '/order/deliverymessage', // 获取七牛 token getQiniuToken: '/common/qiniutoken', } // 仅限本地调试支持 // if (__DEV__ && env.mock) { if (__DEV__ && isMock) { apiBaseUrl = `${env.apiMockUrl}` // Object.assign(modelApis, require('../mock')) } // 线上代理 if (__DEV__ && env.proxy) { const proxyUrl = '/proxy' apiBaseUrl = `${env.origin}${proxyUrl}` } const { width, height, } = window.screen // 公共参数 const commonParams = { uuid: '', // 用户唯一标志 udid: '', // 设备唯一标志 device: '', // 设备 net: '', // 网络 uid: '', token: '', timestamp: '', // 时间 channel: 'h5', // 渠道 spm: 'h5', v: env.version, // 系统版本 terminal: env.terminal, // 终端 swidth: width, // 屏幕宽度 分辨率 sheight: height, // 屏幕高度 location: '', // 地理位置 zoneId: 857, // 必须 } // console.log(Object.keys(modelApis)) const apiList = Object.keys(modelApis).reduce((api, key) => { const val = modelApis[key] const [url, methodType = 'GET'] = val.split(/\s+/).reverse() const method = methodType.toUpperCase() // let originUrl = regHttp.test(url) ? url : `${env.apiBaseUrl}${url}`; // NOTE: headers 在此处设置? // if (__DEV__ && regLocalMock.test(url)) { // api[key] = function postRequest(params, success, fail) { // const res = require(`../${url}.json`) // mini.hideLoading() // res.errno === 0 ? success(res) : fail(res) // } // return api // } switch (method) { case 'POST': // originUrl = `${originUrl}`; api[key] = function postRequest(params, success, fail) { return request(url, { headers: { // Accept: 'application/json', // 我们的 post 请求,使用的这个,不是 application/json // 'Content-Type': 'application/x-www-form-urlencoded', }, method, data: compact(Object.assign({}, getCommonParams(), params)), }, success, fail) } break case 'GET': default: api[key] = function getRequest(params, success, fail) { params = compact(Object.assign({}, getCommonParams(), params)) let query = stringify(params) if (query) query = `?${query}` return request(`${url}${query}`, {}, success, fail) } break } return api }, {}) function setCommonParams(params) { return Object.assign(commonParams, params) } function getCommonParams(key) { return key ? commonParams[key] : { // ...commonParams, } } apiList.getCommonParams = getCommonParams apiList.setCommonParams = setCommonParams // console.log(apiList) export default apiList
import m from 'mithril'; import _ from 'underscore'; import postgrest from 'mithril-postgrest'; import models from '../models'; import h from '../h'; import projectDashboardMenu from '../c/project-dashboard-menu'; import projectContributionReportHeader from '../c/project-contribution-report-header'; import projectContributionReportContent from '../c/project-contribution-report-content'; import projectsContributionReportVM from '../vms/projects-contribution-report-vm'; import FilterMain from '../c/filter-main'; import FilterDropdown from '../c/filter-dropdown'; import InfoProjectContributionLegend from '../c/info-project-contribution-legend'; import ProjectContributionStateLegendModal from '../c/project-contribution-state-legend-modal'; import ProjectContributionDeliveryLegendModal from '../c/project-contribution-delivery-legend-modal'; const projectContributionReport = { controller(args) { const listVM = postgrest.paginationVM(models.projectContribution, 'id.desc', { Prefer: 'count=exact' }), filterVM = projectsContributionReportVM, project = m.prop([{}]), rewards = m.prop([]), contributionStateOptions = m.prop([]), reloadSelectOptions = (projectState) => { let opts = [{ value: '', option: 'Todos' }]; const optionsMap = { online: [{ value: 'paid', option: 'Confirmado' }, { value: 'pending', option: 'Iniciado' }, { value: 'refunded,chargeback,deleted,pending_refund', option: 'Contestado' }, ], waiting_funds: [{ value: 'paid', option: 'Confirmado' }, { value: 'pending', option: 'Iniciado' }, { value: 'refunded,chargeback,deleted,pending_refund', option: 'Contestado' }, ], failed: [{ value: 'pending_refund', option: 'Reembolso em andamento' }, { value: 'refunded', option: 'Reembolsado' }, { value: 'paid', option: 'Reembolso não iniciado' }, ], successful: [{ value: 'paid', option: 'Confirmado' }, { value: 'refunded,chargeback,deleted,pending_refund', option: 'Contestado' }, ] }; opts = opts.concat(optionsMap[projectState] || []); contributionStateOptions(opts); }, submit = () => { if (filterVM.reward_id() === 'null') { listVM.firstPage(filterVM.withNullParameters()).then(null); } else { listVM.firstPage(filterVM.parameters()).then(null); } return false; }, filterBuilder = [{ component: FilterMain, data: { inputWrapperClass: '.w-input.text-field', btnClass: '.btn.btn-medium', vm: filterVM.full_text_index, placeholder: 'Busque por nome ou email do apoiador' } }, { label: 'reward_filter', component: FilterDropdown, data: { label: 'Recompensa selecionada', onchange: submit, name: 'reward_id', vm: filterVM.reward_id, wrapper_class: '.w-sub-col.w-col.w-col-4', options: [] } }, { label: 'delivery_filter', component: FilterDropdown, data: { custom_label: [InfoProjectContributionLegend, { content: [ProjectContributionDeliveryLegendModal], text: 'Status da entrega' }], onchange: submit, name: 'delivery_status', vm: filterVM.delivery_status, wrapper_class: '.w-col.w-col-4', options: [{ value: '', option: 'Todos' }, { value: 'undelivered', option: 'Não enviada' }, { value: 'delivered', option: 'Enviada' }, { value: 'error', option: 'Erro no envio' }, { value: 'received', option: 'Recebida' } ] } }, { label: 'payment_state', component: FilterDropdown, data: { custom_label: [InfoProjectContributionLegend, { text: 'Status do apoio', content: [ProjectContributionStateLegendModal, { project }] }], name: 'state', onchange: submit, vm: filterVM.state, wrapper_class: '.w-sub-col.w-col.w-col-4', options: contributionStateOptions } } ]; filterVM.project_id(args.root.getAttribute('data-id')); const lReward = postgrest.loaderWithToken(models.rewardDetail.getPageOptions({ project_id: `eq.${filterVM.project_id()}` })); const lProject = postgrest.loaderWithToken(models.projectDetail.getPageOptions({ project_id: `eq.${filterVM.project_id()}` })); lReward.load().then(rewards); lProject.load().then((data) => { project(data); reloadSelectOptions(_.first(data).state); }); const mapRewardsToOptions = () => { let options = []; if (!lReward()) { options = _.map(rewards(), r => ({ value: r.id, option: `R$ ${h.formatNumber(r.minimum_value, 2, 3)} - ${r.description.substring(0, 20)}` })); } options.unshift({ value: null, option: 'Sem recompensa' }); options.unshift({ value: '', option: 'Todas' }); return options; }; if (!listVM.collection().length) { listVM.firstPage(filterVM.parameters()); } return { listVM, filterVM, filterBuilder, submit, lReward, lProject, rewards, project, mapRewardsToOptions }; }, view(ctrl) { const list = ctrl.listVM; if (!ctrl.lProject()) { return [ m.component(projectDashboardMenu, { project: m.prop(_.first(ctrl.project())) }), m.component(projectContributionReportHeader, { submit: ctrl.submit, filterBuilder: ctrl.filterBuilder, form: ctrl.filterVM.formDescriber, mapRewardsToOptions: ctrl.mapRewardsToOptions, filterVM: ctrl.filterVM }), m('.divider.u-margintop-30'), m.component(projectContributionReportContent, { submit: ctrl.submit, list, filterVM: ctrl.filterVM, project: m.prop(_.first(ctrl.project())) }) ]; } return h.loader(); } }; export default projectContributionReport;
version https://git-lfs.github.com/spec/v1 oid sha256:f5c198d5eef0ca0f41f87746ef8fefe819a727fcd59a6477c76b94b55d27128d size 1730
import React from 'react'; import { TypeChooser } from 'react-stockcharts/lib/helper' import Chart from './Chart' import { getData } from './util'; class ChartComponent extends React.Component { componentDidMount () { getData().then(data => { this.setState({ data}) }) } render () { if (this.state == null) { return <div> Loading... </div> } return ( <Chart type='hybrid' data={this.state.data} /> ) } } export default ChartComponent;
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{107:function(n,o,c){},108:function(n,o,c){},109:function(n,o,c){},110:function(n,o,c){},150:function(n,o,c){},151:function(n,o,c){}}]); //# sourceMappingURL=styles-fa6c583b3cd626e54a0e.js.map
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ var div = document.getElementById('content'); var div1 = document.getElementById('leftbox'); div.style.height = document.body.clientHeight + 'px'; div1.style.height = div.style.height; var contentToRemove = document.querySelectorAll(".collapsed-navbox"); $(contentToRemove).hide(); var oritop = -100; $(window).scroll(function() { var scrollt = window.scrollY; var elm = $("#leftbox"); if(oritop < 0) { oritop= elm.offset().top; } if(scrollt >= oritop) { elm.css({"position": "fixed", "top": 0, "left": 0}); } else { elm.css("position", "static"); } }); /*$(window).resize(function() { var wi = $(window).width(); $("p.testp").text('Screen width is currently: ' + wi + 'px.'); }); $(window).resize(function() { var wi = $(window).width(); if (wi <= 767){ var contentToRemove = document.querySelectorAll(".fullscreen-navbox"); $(contentToRemove).hide(); var contentToRemove = document.querySelectorAll(".collapsed-navbox"); $(contentToRemove).show(); $("#leftbox").css("width","30px"); $("#content").css("width","90%"); }else if (wi > 800){ var contentToRemove = document.querySelectorAll(".fullscreen-navbox"); $(contentToRemove).show(); var contentToRemove = document.querySelectorAll(".collapsed-navbox"); $(contentToRemove).hide(); $("#leftbox").css("width","15%"); $("#content").css("width","85%"); } });*/ });
var monsterArray = { "name": "岩龙", "other": [ "0", "0", "0", "0", "0", "0", "0", "0", "0", "" ], "weakness": [ { "data": [ "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" ] } ] };
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ dbm.registerClass("dbm.thirdparty.facebook.constants.EventTypes", null, function(objectFunctions, staticFunctions, ClassReference) { //console.log("dbm.thirdparty.facebook.constants.EventTypes"); //REFERENCE: http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ var EventTypes = dbm.importClass("dbm.thirdparty.facebook.constants.EventTypes"); staticFunctions.AUTH_LOGIN = "auth.login"; staticFunctions.AUTH_RESPONSE_CHANGE = "auth.authResponseChange"; staticFunctions.AUTH_STATUS_CHANGE = "auth.statusChange"; staticFunctions.AUTH_LOGOUT = "auth.logout"; staticFunctions.AUTH_PROMPT = "auth.prompt"; staticFunctions.XFBML_RENDER = "xfbml.render"; staticFunctions.EDGE_CREATE = "edge.create"; staticFunctions.EDGE_REMOVE = "edge.remove"; staticFunctions.COMMENT_CREATE = "comment.create"; staticFunctions.COMMENT_REMOVE = "comment.remove"; staticFunctions.MESSAGE_SEND = "message.send"; });
'use strict'; // This is the webpack config used for JS unit tests const Encore = require('@symfony/webpack-encore'); const encoreConfigure = require('./webpack.base.config'); const webpackCustomize = require('./webpack.customize'); // Initialize Encore before requiring the .config file Encore.configureRuntimeEnvironment('dev-server'); encoreConfigure(Encore); const webpack = require('webpack'); const merge = require('webpack-merge'); const ManifestPlugin = require('@symfony/webpack-encore/lib/webpack/webpack-manifest-plugin'); const baseWebpackConfig = Encore.getWebpackConfig(); webpackCustomize(baseWebpackConfig); const webpackConfig = merge(baseWebpackConfig, { // use inline sourcemap for karma-sourcemap-loader devtool: '#inline-source-map', resolveLoader: { alias: { // necessary to to make lang="scss" work in test when using vue-loader's ?inject option // see discussion at https://github.com/vuejs/vue-loader/issues/724 'scss-loader': 'sass-loader' } }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"testing"' } }) ] }); // no need for app entry during tests delete webpackConfig.entry; // Set writeToFileEmit option of the ManifestPlugin to false for (const plugin of webpackConfig.plugins) { if ((plugin instanceof ManifestPlugin) && plugin.opts) { plugin.opts.writeToFileEmit = false; } } module.exports = webpackConfig;
// Release 1: User Stories // As a user, I want to be able to create a new grocery list. After that, I need to be able to add an item with a quantity to the list, remove an item, and update the quantities if they change. I need a way to print out the list in a format that is very readable. // Release 2: Pseudocode // input: string of items separated by spaces // output: object // create a new object as new variable // convert string to array (split) // take each item in array and add to object as a property with a default quantity/value of 1 // // Release 3: Initial Solution // function to create list // var foodList = ("salmon iceCream macAndCheese") // var groceryList = {}; // var createList = function(foodList) { // var foodArray = foodList.split(" "); // for (var i = 0; i < foodArray.length; i++){ // groceryList[(foodArray[i])] = 1; // } // console.log(groceryList); // } // createList(foodList) // // function to add item to list // var addItem = function(newItem) { // groceryList[newItem] = 1; // console.log(groceryList); // } // addItem("peas") // // function to remove item from list // var removeItem = function(itemToLose) { // delete groceryList[itemToLose]; // console.log(groceryList); // } // removeItem("peas") // // function to update quantity // var updateList = function(updateItem, newQuantity) { // groceryList[updateItem] = newQuantity; // console.log(groceryList); // } // updateList("macAndCheese", 5) // // function to display list // var displayList = function(groceryList) { // for (food in groceryList) { // console.log(food + ": " + groceryList[food]); // } // } // displayList(groceryList) // Release 4: Refactor // function to create list var groceryList = {}; var displayList = function(groceryList) { console.log("Your Grocery List:") for (food in groceryList) { console.log(food + ": " + groceryList[food]); } console.log("----------") } var createList = function(foodList) { var foodArray = foodList.split(" "); for (var i = 0; i < foodArray.length; i++){ groceryList[(foodArray[i])] = 1; } displayList(groceryList); } var addItem = function(newItem) { groceryList[newItem] = 1; displayList(groceryList); } var removeItem = function(itemToLose) { delete groceryList[itemToLose]; displayList(groceryList); } var updateList = function(updateItem, newQuantity) { groceryList[updateItem] = newQuantity; displayList(groceryList); } var foodList = ("funfettiMix bananas chocolateCoveredAlmonds") createList(foodList) addItem("peaches") updateList("peaches", 20) removeItem("bananas") // Release 5: Reflect // What concepts did you solidify in working on this challenge? (reviewing the passing of information, objects, constructors, etc.) // I solidified accessing different properties in an object. I was able to add strings from an array into an empty object and set their default value. To change those values I knew I needed to access the property using bracket notation, and change the value it was = to. // What was the most difficult part of this challenge? // I forgot I needed to convert the string to an array, but once I did that with the .split(" ") method, all of the strings were easily accessible to add to the new object. // Did an array or object make more sense to use and why? // This was weirdly WAY easier with JavaScript than it was initially with Ruby (probably because we were on our second week of Ruby at this point!). It was so easy to add each string from an array into the object as a property and set it's default. Accessing these properties to update or delete was made easier by using bracket notation. Instead of complicated hash methods and having to convert strings to arrays to hashes, all I had to do was split the string and add each string to the object with a default value.
Dagaz.Controller.persistense = "setup"; Dagaz.Model.WIDTH = 8; Dagaz.Model.HEIGHT = 8; ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_POS_FLAG: 8, ATTR: 9, SET_ATTR: 10, PROMOTE: 11, MODE: 12, ON_BOARD_DIR: 13, ON_BOARD_POS: 14, PARAM: 15, LITERAL: 16, VERIFY: 20 }; Dagaz.Model.BuildDesign = function(design) { design.checkVersion("z2j", "2"); design.checkVersion("animate-captures", "false"); design.checkVersion("smart-moves", "false"); design.checkVersion("show-blink", "false"); design.checkVersion("show-hints", "false"); design.addDirection("w"); // 0 design.addDirection("e"); // 1 design.addDirection("s"); // 2 design.addDirection("ne"); // 3 design.addDirection("n"); // 4 design.addDirection("se"); // 5 design.addDirection("sw"); // 6 design.addDirection("nw"); // 7 design.addPlayer("White", [1, 0, 4, 6, 2, 7, 3, 5]); design.addPlayer("Black", [0, 1, 4, 5, 2, 3, 7, 6]); design.addPosition("a8", [0, 1, 8, 0, 0, 9, 0, 0]); design.addPosition("b8", [-1, 1, 8, 0, 0, 9, 7, 0]); design.addPosition("c8", [-1, 1, 8, 0, 0, 9, 7, 0]); design.addPosition("d8", [-1, 1, 8, 0, 0, 9, 7, 0]); design.addPosition("e8", [-1, 1, 8, 0, 0, 9, 7, 0]); design.addPosition("f8", [-1, 1, 8, 0, 0, 9, 7, 0]); design.addPosition("g8", [-1, 1, 8, 0, 0, 9, 7, 0]); design.addPosition("h8", [-1, 0, 8, 0, 0, 0, 7, 0]); design.addPosition("a7", [0, 1, 8, -7, -8, 9, 0, 0]); design.addPosition("b7", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("c7", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("d7", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("e7", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("f7", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("g7", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("h7", [-1, 0, 8, 0, -8, 0, 7, -9]); design.addPosition("a6", [0, 1, 8, -7, -8, 9, 0, 0]); design.addPosition("b6", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("c6", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("d6", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("e6", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("f6", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("g6", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("h6", [-1, 0, 8, 0, -8, 0, 7, -9]); design.addPosition("a5", [0, 1, 8, -7, -8, 9, 0, 0]); design.addPosition("b5", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("c5", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("d5", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("e5", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("f5", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("g5", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("h5", [-1, 0, 8, 0, -8, 0, 7, -9]); design.addPosition("a4", [0, 1, 8, -7, -8, 9, 0, 0]); design.addPosition("b4", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("c4", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("d4", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("e4", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("f4", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("g4", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("h4", [-1, 0, 8, 0, -8, 0, 7, -9]); design.addPosition("a3", [0, 1, 8, -7, -8, 9, 0, 0]); design.addPosition("b3", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("c3", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("d3", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("e3", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("f3", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("g3", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("h3", [-1, 0, 8, 0, -8, 0, 7, -9]); design.addPosition("a2", [0, 1, 8, -7, -8, 9, 0, 0]); design.addPosition("b2", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("c2", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("d2", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("e2", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("f2", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("g2", [-1, 1, 8, -7, -8, 9, 7, -9]); design.addPosition("h2", [-1, 0, 8, 0, -8, 0, 7, -9]); design.addPosition("a1", [0, 1, 0, -7, -8, 0, 0, 0]); design.addPosition("b1", [-1, 1, 0, -7, -8, 0, 0, -9]); design.addPosition("c1", [-1, 1, 0, -7, -8, 0, 0, -9]); design.addPosition("d1", [-1, 1, 0, -7, -8, 0, 0, -9]); design.addPosition("e1", [-1, 1, 0, -7, -8, 0, 0, -9]); design.addPosition("f1", [-1, 1, 0, -7, -8, 0, 0, -9]); design.addPosition("g1", [-1, 1, 0, -7, -8, 0, 0, -9]); design.addPosition("h1", [-1, 0, 0, 0, -8, 0, 0, -9]); design.addPosition("X1", [0, 0, 0, 0, 0, 0, 0, 0]); design.addPosition("X2", [0, 0, 0, 0, 0, 0, 0, 0]); design.addPosition("X3", [0, 0, 0, 0, 0, 0, 0, 0]); design.addPosition("X4", [0, 0, 0, 0, 0, 0, 0, 0]); design.addZone("last-rank", 1, [0, 1, 2, 3, 4, 5, 6, 7]); design.addZone("last-rank", 2, [56, 57, 58, 59, 60, 61, 62, 63]); design.addZone("third-rank", 1, [40, 41, 42, 43, 44, 45, 46, 47]); design.addZone("third-rank", 2, [16, 17, 18, 19, 20, 21, 22, 23]); design.addZone("black", 1, [56, 58, 60, 62, 49, 51, 53, 55, 40, 42, 44, 46, 33, 35, 37, 39, 24, 26, 28, 30, 17, 19, 21, 23, 8, 10, 12, 14, 1, 3, 5, 7]); design.addZone("black", 2, [56, 58, 60, 62, 49, 51, 53, 55, 40, 42, 44, 46, 33, 35, 37, 39, 24, 26, 28, 30, 17, 19, 21, 23, 8, 10, 12, 14, 1, 3, 5, 7]); design.addZone("home", 1, [56, 57, 58, 59, 60, 61, 62, 63, 48, 49, 50, 51, 52, 53, 54, 55]); design.addZone("home", 2, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); design.addCommand(0, ZRF.FUNCTION, 24); // from design.addCommand(0, ZRF.PARAM, 0); // $1 design.addCommand(0, ZRF.FUNCTION, 22); // navigate design.addCommand(0, ZRF.FUNCTION, 1); // empty? design.addCommand(0, ZRF.FUNCTION, 20); // verify design.addCommand(0, ZRF.IN_ZONE, 0); // last-rank design.addCommand(0, ZRF.FUNCTION, 0); // not design.addCommand(0, ZRF.IF, 4); design.addCommand(0, ZRF.PROMOTE, 4); // Queen design.addCommand(0, ZRF.FUNCTION, 25); // to design.addCommand(0, ZRF.JUMP, 2); design.addCommand(0, ZRF.FUNCTION, 25); // to design.addCommand(0, ZRF.FUNCTION, 28); // end design.addCommand(1, ZRF.FUNCTION, 24); // from design.addCommand(1, ZRF.PARAM, 0); // $1 design.addCommand(1, ZRF.FUNCTION, 22); // navigate design.addCommand(1, ZRF.FUNCTION, 1); // empty? design.addCommand(1, ZRF.FUNCTION, 20); // verify design.addCommand(1, ZRF.IN_ZONE, 1); // third-rank design.addCommand(1, ZRF.FUNCTION, 20); // verify design.addCommand(1, ZRF.PARAM, 1); // $2 design.addCommand(1, ZRF.FUNCTION, 22); // navigate design.addCommand(1, ZRF.FUNCTION, 1); // empty? design.addCommand(1, ZRF.FUNCTION, 20); // verify design.addCommand(1, ZRF.FUNCTION, 25); // to design.addCommand(1, ZRF.FUNCTION, 28); // end design.addCommand(2, ZRF.FUNCTION, 24); // from design.addCommand(2, ZRF.PARAM, 0); // $1 design.addCommand(2, ZRF.FUNCTION, 22); // navigate design.addCommand(2, ZRF.FUNCTION, 2); // enemy? design.addCommand(2, ZRF.FUNCTION, 20); // verify design.addCommand(2, ZRF.IN_ZONE, 0); // last-rank design.addCommand(2, ZRF.FUNCTION, 0); // not design.addCommand(2, ZRF.IF, 4); design.addCommand(2, ZRF.PROMOTE, 4); // Queen design.addCommand(2, ZRF.FUNCTION, 25); // to design.addCommand(2, ZRF.JUMP, 2); design.addCommand(2, ZRF.FUNCTION, 25); // to design.addCommand(2, ZRF.FUNCTION, 28); // end design.addCommand(3, ZRF.FUNCTION, 24); // from design.addCommand(3, ZRF.PARAM, 0); // $1 design.addCommand(3, ZRF.FUNCTION, 22); // navigate design.addCommand(3, ZRF.FUNCTION, 2); // enemy? design.addCommand(3, ZRF.FUNCTION, 20); // verify design.addCommand(3, ZRF.FUNCTION, 5); // last-to? design.addCommand(3, ZRF.FUNCTION, 20); // verify design.addCommand(3, ZRF.LITERAL, 0); // Pawn design.addCommand(3, ZRF.FUNCTION, 10); // piece? design.addCommand(3, ZRF.FUNCTION, 20); // verify design.addCommand(3, ZRF.FUNCTION, 26); // capture design.addCommand(3, ZRF.PARAM, 1); // $2 design.addCommand(3, ZRF.FUNCTION, 22); // navigate design.addCommand(3, ZRF.FUNCTION, 6); // mark design.addCommand(3, ZRF.PARAM, 2); // $3 design.addCommand(3, ZRF.FUNCTION, 22); // navigate design.addCommand(3, ZRF.FUNCTION, 4); // last-from? design.addCommand(3, ZRF.FUNCTION, 20); // verify design.addCommand(3, ZRF.FUNCTION, 7); // back design.addCommand(3, ZRF.FUNCTION, 25); // to design.addCommand(3, ZRF.FUNCTION, 28); // end design.addCommand(4, ZRF.FUNCTION, 24); // from design.addCommand(4, ZRF.PARAM, 0); // $1 design.addCommand(4, ZRF.FUNCTION, 22); // navigate design.addCommand(4, ZRF.FUNCTION, 1); // empty? design.addCommand(4, ZRF.FUNCTION, 0); // not design.addCommand(4, ZRF.IF, 7); design.addCommand(4, ZRF.FORK, 3); design.addCommand(4, ZRF.FUNCTION, 25); // to design.addCommand(4, ZRF.FUNCTION, 28); // end design.addCommand(4, ZRF.PARAM, 1); // $2 design.addCommand(4, ZRF.FUNCTION, 22); // navigate design.addCommand(4, ZRF.JUMP, -8); design.addCommand(4, ZRF.FUNCTION, 3); // friend? design.addCommand(4, ZRF.FUNCTION, 0); // not design.addCommand(4, ZRF.FUNCTION, 20); // verify design.addCommand(4, ZRF.FUNCTION, 25); // to design.addCommand(4, ZRF.FUNCTION, 28); // end design.addCommand(5, ZRF.FUNCTION, 24); // from design.addCommand(5, ZRF.PARAM, 0); // $1 design.addCommand(5, ZRF.FUNCTION, 22); // navigate design.addCommand(5, ZRF.PARAM, 1); // $2 design.addCommand(5, ZRF.FUNCTION, 22); // navigate design.addCommand(5, ZRF.FUNCTION, 3); // friend? design.addCommand(5, ZRF.FUNCTION, 0); // not design.addCommand(5, ZRF.FUNCTION, 20); // verify design.addCommand(5, ZRF.FUNCTION, 25); // to design.addCommand(5, ZRF.FUNCTION, 28); // end design.addCommand(6, ZRF.FUNCTION, 24); // from design.addCommand(6, ZRF.PARAM, 0); // $1 design.addCommand(6, ZRF.FUNCTION, 22); // navigate design.addCommand(6, ZRF.FUNCTION, 3); // friend? design.addCommand(6, ZRF.FUNCTION, 0); // not design.addCommand(6, ZRF.FUNCTION, 20); // verify design.addCommand(6, ZRF.FUNCTION, 25); // to design.addCommand(6, ZRF.FUNCTION, 28); // end design.addCommand(7, ZRF.IN_ZONE, 3); // home design.addCommand(7, ZRF.FUNCTION, 20); // verify design.addCommand(7, ZRF.FUNCTION, 1); // empty? design.addCommand(7, ZRF.FUNCTION, 20); // verify design.addCommand(7, ZRF.FUNCTION, 25); // to design.addCommand(7, ZRF.FUNCTION, 28); // end design.addPriority(0); // drop-type design.addPriority(1); // normal-type design.addPiece("Pawn", 0, 800); design.addMove(0, 0, [4], 1); design.addMove(0, 1, [4, 4], 1); design.addMove(0, 2, [7], 1); design.addMove(0, 2, [3], 1); design.addMove(0, 3, [1, 4, 4], 1); design.addMove(0, 3, [0, 4, 4], 1); design.addPiece("Rook", 1, 5000); design.addMove(1, 4, [4, 4], 1); design.addMove(1, 4, [2, 2], 1); design.addMove(1, 4, [0, 0], 1); design.addMove(1, 4, [1, 1], 1); design.addDrop(1, 7, [], 0); design.addPiece("Knight", 2, 3350); design.addMove(2, 5, [4, 7], 1); design.addMove(2, 5, [4, 3], 1); design.addMove(2, 5, [2, 6], 1); design.addMove(2, 5, [2, 5], 1); design.addMove(2, 5, [0, 7], 1); design.addMove(2, 5, [0, 6], 1); design.addMove(2, 5, [1, 3], 1); design.addMove(2, 5, [1, 5], 1); design.addDrop(2, 7, [], 0); design.addPiece("Bishop", 3, 3450); design.addMove(3, 4, [7, 7], 1); design.addMove(3, 4, [6, 6], 1); design.addMove(3, 4, [3, 3], 1); design.addMove(3, 4, [5, 5], 1); design.addDrop(3, 7, [], 0); design.addPiece("Queen", 4, 9750); design.addMove(4, 4, [4, 4], 1); design.addMove(4, 4, [2, 2], 1); design.addMove(4, 4, [0, 0], 1); design.addMove(4, 4, [1, 1], 1); design.addMove(4, 4, [7, 7], 1); design.addMove(4, 4, [6, 6], 1); design.addMove(4, 4, [3, 3], 1); design.addMove(4, 4, [5, 5], 1); design.addDrop(4, 7, [], 0); design.addPiece("King", 5, 600000); design.addMove(5, 6, [4], 1); design.addMove(5, 6, [2], 1); design.addMove(5, 6, [0], 1); design.addMove(5, 6, [1], 1); design.addMove(5, 6, [7], 1); design.addMove(5, 6, [6], 1); design.addMove(5, 6, [3], 1); design.addMove(5, 6, [5], 1); design.addDrop(5, 7, [], 0); design.setup("White", "Pawn", 48); design.setup("White", "Pawn", 49); design.setup("White", "Pawn", 50); design.setup("White", "Pawn", 51); design.setup("White", "Pawn", 52); design.setup("White", "Pawn", 53); design.setup("White", "Pawn", 54); design.setup("White", "Pawn", 55); design.reserve("White", "Pawn", 0); design.reserve("White", "Knight", 2); design.reserve("White", "Bishop", 2); design.reserve("White", "Rook", 2); design.reserve("White", "Queen", 1); design.reserve("White", "King", 1); design.setup("Black", "Pawn", 8); design.setup("Black", "Pawn", 9); design.setup("Black", "Pawn", 10); design.setup("Black", "Pawn", 11); design.setup("Black", "Pawn", 12); design.setup("Black", "Pawn", 13); design.setup("Black", "Pawn", 14); design.setup("Black", "Pawn", 15); design.reserve("Black", "Pawn", 0); design.reserve("Black", "Knight", 2); design.reserve("Black", "Bishop", 2); design.reserve("Black", "Rook", 2); design.reserve("Black", "Queen", 1); design.reserve("Black", "King", 1); } Dagaz.View.configure = function(view) { view.defBoard("Board"); view.defPiece("WhitePawn", "White Pawn"); view.defPiece("BlackPawn", "Black Pawn"); view.defPiece("WhiteRook", "White Rook"); view.defPiece("BlackRook", "Black Rook"); view.defPiece("WhiteKnight", "White Knight"); view.defPiece("BlackKnight", "Black Knight"); view.defPiece("WhiteBishop", "White Bishop"); view.defPiece("BlackBishop", "Black Bishop"); view.defPiece("WhiteQueen", "White Queen"); view.defPiece("BlackQueen", "Black Queen"); view.defPiece("WhiteKing", "White King"); view.defPiece("BlackKing", "Black King"); view.defPiece("Ko", "Ko"); view.defPosition("a8", 2, 2, 68, 68); view.defPosition("b8", 70, 2, 68, 68); view.defPosition("c8", 138, 2, 68, 68); view.defPosition("d8", 206, 2, 68, 68); view.defPosition("e8", 274, 2, 68, 68); view.defPosition("f8", 342, 2, 68, 68); view.defPosition("g8", 410, 2, 68, 68); view.defPosition("h8", 478, 2, 68, 68); view.defPosition("a7", 2, 70, 68, 68); view.defPosition("b7", 70, 70, 68, 68); view.defPosition("c7", 138, 70, 68, 68); view.defPosition("d7", 206, 70, 68, 68); view.defPosition("e7", 274, 70, 68, 68); view.defPosition("f7", 342, 70, 68, 68); view.defPosition("g7", 410, 70, 68, 68); view.defPosition("h7", 478, 70, 68, 68); view.defPosition("a6", 2, 138, 68, 68); view.defPosition("b6", 70, 138, 68, 68); view.defPosition("c6", 138, 138, 68, 68); view.defPosition("d6", 206, 138, 68, 68); view.defPosition("e6", 274, 138, 68, 68); view.defPosition("f6", 342, 138, 68, 68); view.defPosition("g6", 410, 138, 68, 68); view.defPosition("h6", 478, 138, 68, 68); view.defPosition("a5", 2, 206, 68, 68); view.defPosition("b5", 70, 206, 68, 68); view.defPosition("c5", 138, 206, 68, 68); view.defPosition("d5", 206, 206, 68, 68); view.defPosition("e5", 274, 206, 68, 68); view.defPosition("f5", 342, 206, 68, 68); view.defPosition("g5", 410, 206, 68, 68); view.defPosition("h5", 478, 206, 68, 68); view.defPosition("a4", 2, 274, 68, 68); view.defPosition("b4", 70, 274, 68, 68); view.defPosition("c4", 138, 274, 68, 68); view.defPosition("d4", 206, 274, 68, 68); view.defPosition("e4", 274, 274, 68, 68); view.defPosition("f4", 342, 274, 68, 68); view.defPosition("g4", 410, 274, 68, 68); view.defPosition("h4", 478, 274, 68, 68); view.defPosition("a3", 2, 342, 68, 68); view.defPosition("b3", 70, 342, 68, 68); view.defPosition("c3", 138, 342, 68, 68); view.defPosition("d3", 206, 342, 68, 68); view.defPosition("e3", 274, 342, 68, 68); view.defPosition("f3", 342, 342, 68, 68); view.defPosition("g3", 410, 342, 68, 68); view.defPosition("h3", 478, 342, 68, 68); view.defPosition("a2", 2, 410, 68, 68); view.defPosition("b2", 70, 410, 68, 68); view.defPosition("c2", 138, 410, 68, 68); view.defPosition("d2", 206, 410, 68, 68); view.defPosition("e2", 274, 410, 68, 68); view.defPosition("f2", 342, 410, 68, 68); view.defPosition("g2", 410, 410, 68, 68); view.defPosition("h2", 478, 410, 68, 68); view.defPosition("a1", 2, 478, 68, 68); view.defPosition("b1", 70, 478, 68, 68); view.defPosition("c1", 138, 478, 68, 68); view.defPosition("d1", 206, 478, 68, 68); view.defPosition("e1", 274, 478, 68, 68); view.defPosition("f1", 342, 478, 68, 68); view.defPosition("g1", 410, 478, 68, 68); view.defPosition("h1", 478, 478, 68, 68); view.defPopup("Promote", 127, 100); view.defPopupPosition("X1", 10, 7, 68, 68); view.defPopupPosition("X2", 80, 7, 68, 68); view.defPopupPosition("X3", 150, 7, 68, 68); view.defPopupPosition("X4", 220, 7, 68, 68); }
module.exports = { //"@context": { type: String, default: "http://schema.org" }, //"@type": { type: String, default: "Article" }, //>>Properties from NewsArticle //dateline: String,//The location where the NewsArticle was produced. //printColumn: String,//The number of the column in which the NewsArticle appears in the print edition. //printEdition: String,//The edition of the print product in which the NewsArticle appears. //printPage: String,//If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18). //printSection: String,//If this NewsArticle appears in print, this field indicates the print section in which the article appeared. //>>Properties from Article articleBody: String ,//The actual body of the article. //articleSection: String ,//Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc. //pageEnd: String or Number ,//The page on which the work ends; for example "138" or "xvi". //pageStart: String or Number ,//The page on which the work starts; for example "135" or "xiii". //pagination: String ,//Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". wordCount: Number ,//The number of words in the text of the Article. //>>Properties from CreativeWork //about: Thing ,//The subject matter of the content. //accessibilityAPI: String ,//Indicates that the resource is compatible with the referenced accessibility API (WebSchemas wiki lists possible values). //accessibilityControl: String ,//Identifies input methods that are sufficient to fully control the described resource (WebSchemas wiki lists possible values). //accessibilityFeature: String ,//Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility (WebSchemas wiki lists possible values). //accessibilityHazard: String ,//A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3 (WebSchemas wiki lists possible values). //accountablePerson: Person ,//Specifies the Person that is legally accountable for the CreativeWork. //aggregateRating: AggregateRating ,//The overall rating, based on a collection of reviews or ratings, of the item. //alternativeHeadline: String ,//A secondary title of the CreativeWork. //associatedMedia: MediaObject ,//A media object that encodes this CreativeWork. This property is a synonym for encoding. //audience: Audience ,//The intended audience of the item, i.e. the group for whom the item was created. //audio: AudioObject ,//An embedded audio object. //author: Organization or Person ,//The author of this content. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. //award: String ,//An award won by this person or for this creative work. Supersedes awards. //character: Person ,//Fictional person connected with a creative work. //citation: String or CreativeWork ,//A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. //comment: UserComments or Comment ,//Comments, typically from users, on this CreativeWork. //commentCount: Number ,//The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. //contentLocation: Place ,//The location of the content. //contentRating: String ,//Official rating of a piece of content—for example,'MPAA PG-13'. //contributor: Organization or Person ,//A secondary contributor to the CreativeWork. //copyrightHolder: Organization or Person ,//The party holding the legal copyright to the CreativeWork. copyrightYear: Number ,//The year during which the claimed copyright for the CreativeWork was first asserted. //creator: Organization or Person ,//The creator/author of this CreativeWork or UserComments. This is the same as the Author property for CreativeWork. dateCreated: { type: Date,//The date on which the CreativeWork was created. default: Date.now }, dateModified: Date ,//The date on which the CreativeWork was most recently modified. datePublished: Date ,//Date of first broadcast/publication. //discussionUrl: URL ,//A link to the page containing the comments of the CreativeWork. //editor: Person ,//Specifies the Person who edited the CreativeWork. //educationalAlignment: AlignmentObject ,//An alignment to an established educational framework. //educationalUse: String ,//The purpose of a work in the context of education; for example, 'assignment', 'group work'. //encoding: MediaObject ,//A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. Supersedes encodings. //exampleOfWork: CreativeWork ,//A creative work that this work is an example/instance/realization/derivation of. Inverse property: workExample. //genre: String ,//Genre of the creative work or group. //hasPart: CreativeWork ,//Indicates a CreativeWork that is (in some sense) a part of this CreativeWork. Inverse property: isPartOf. headline: String ,//Headline of the article. //inLanguage: String ,//The language of the content. please use one of the language codes from the IETF BCP 47 standard. //interactionCount: String ,//A count of a specific user interactions with this item—for example, 20 UserLikes, 5 UserComments, or 300 UserDownloads. The user interaction type should be one of the sub types of UserInteraction. //interactivityType: String ,//The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. //isBasedOnUrl: URL ,//A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. //isFamilyFriendly: Boolean ,//Indicates whether this content is family friendly. //isPartOf: CreativeWork ,//Indicates a CreativeWork that this CreativeWork is (in some sense) part of. Inverse property: hasPart. //keywords: String ,//Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas. //learningResourceType: String ,//The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. //license: URL or CreativeWork ,//A license document that applies to this content, typically indicated by URL. //mentions: Thing ,//Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. //offers: Offer ,//An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, or give away tickets to an event. //position: String or Number ,//The position of an item in a series or sequence of items. //producer: Organization or Person ,//The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.). //provider: Organization or Person ,//The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. Supersedes carrier. //publisher: Organization ,//The publisher of the creative work. //publishingPrinciples: URL ,//Link to page describing the editorial principles of the organization primarily responsible for the creation of the CreativeWork. //recordedAt: Event ,//The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. Inverse property: recordedIn. //releasedEvent: PublicationEvent ,//The place and time the release was issued, expressed as a PublicationEvent. //review: Review ,//A review of the item. Supersedes reviews. //sourceOrganization: Organization ,//The Organization on whose behalf the creator was working. //text: String ,//The textual content of this CreativeWork. //thumbnailUrl: URL ,//A thumbnail image relevant to the Thing. //timeRequired: Duration ,//Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'P30M', 'P1H25M'. //translator: Organization or Person ,//Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market. //typicalAgeRange: String ,//The typical expected age range, e.g. '7-9', '11-'. //version: Number ,//The version of the CreativeWork embodied by a specified resource. //video: VideoObject ,//An embedded video object. //workExample: CreativeWork ,//Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook. Inverse property: exampleOfWork. //>>Properties from Thing //additionalType: URL ,//An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally. //alternateName: String ,//An alias for the item. //description: String ,//A short description of the item. image: require('./image-object'),//An image of the item. This can be a URL or a fully described ImageObject. //name: String ,//The name of the item. //potentialAction: Action ,//Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. //sameAs: URL ,//URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website. //url: URL,//URL of the item. };
var fs = require('fs') var d3 = require('d3') var request = require('request') var cheerio = require('cheerio') var queue = require('queue-async') var _ = require('underscore') var glob = require("glob") var games = [] glob.sync(__dirname + "/raw-series/*").forEach(scrape) function scrape(dir, i){ var series = dir.split('/raw-series/')[1] process.stdout.write("parsing " + i + " " + series + "\r") var html = fs.readFileSync(dir, 'utf-8') var $ = cheerio.load(html) $('a').each(function(i){ var str = $(this).text() var href = $(this).attr('href') if (str == 'box scores' || !~href.indexOf('/boxscores/') || i % 2) return games.push({series: series, boxLink: $(this).attr('href').replace('/boxscores/', '')}) }) } fs.writeFileSync(__dirname + '/playoffGames.csv', d3.csv.format(games)) var q = queue(1) var downloaded = glob.sync(__dirname + '/raw-box/*.html').map(d => d.split('/raw-box/')[1]) games .map(d => d.boxLink) .filter(d => !_.contains(downloaded, d)) .forEach(d => q.defer(downloadBox, d)) function downloadBox(d, cb){ process.stdout.write("downloading " + d + "\r"); var url = 'http://www.basketball-reference.com/boxscores/' + d // console.log(url) setTimeout(cb, 1000) request(url, function(error, response, html){ var path = __dirname + '/raw-box/' + d fs.writeFileSync(path, html) }) }
version https://git-lfs.github.com/spec/v1 oid sha256:2e4cfe75feb71c39771595f8dea4f59e216650e0454f3f56a2a5b38a062b94cf size 1360
/* * @param parseObject [ParseObject] * @return [Object] * */ export const convertBrand = (parseObject) => { const ret = {}; const object = parseObject.toJSON(); ret.id = object.objectId; ret.name = object.name; ret.description = object.description; ret.images = (object.images || []).map(image => ({ id: image.objectId, url: image.file.url })); return ret; }; /* * @param parseObject [ParseObject] * @return [Object] * */ export const convertProduct = (parseObject) => { const ret = {}; const object = parseObject.toJSON(); ret.id = object.objectId; ret.brand_id = object.brand.objectId; ret.name = object.name; ret.description = object.description; ret.images = object.images.map(image => ({ id: image.objectId, url: image.file.url })); ret.size = object.size; ret.color = object.color; ret.cost = object.cost; ret.price = object.price; ret.quantity = object.quantity; return ret; };
/* */ "format cjs"; /*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-342ee53 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.toast * @description * Toast */ MdToastDirective['$inject'] = ["$mdToast"]; MdToastProvider['$inject'] = ["$$interimElementProvider"]; angular.module('material.components.toast', [ 'material.core', 'material.components.button' ]) .directive('mdToast', MdToastDirective) .provider('$mdToast', MdToastProvider); /* ngInject */ function MdToastDirective($mdToast) { return { restrict: 'E', link: function postLink(scope, element) { element.addClass('_md'); // private md component indicator for styling // When navigation force destroys an interimElement, then // listen and $destroy() that interim instance... scope.$on('$destroy', function() { $mdToast.destroy(); }); } }; } /** * @ngdoc service * @name $mdToast * @module material.components.toast * * @description * `$mdToast` is a service to build a toast notification on any position * on the screen with an optional duration, and provides a simple promise API. * * The toast will be always positioned at the `bottom`, when the screen size is * between `600px` and `959px` (`sm` breakpoint) * * ## Restrictions on custom toasts * - The toast's template must have an outer `<md-toast>` element. * - For a toast action, use element with class `md-action`. * - Add the class `md-capsule` for curved corners. * * ### Custom Presets * Developers are also able to create their own preset, which can be easily used without repeating * their options each time. * * <hljs lang="js"> * $mdToastProvider.addPreset('testPreset', { * options: function() { * return { * template: * '<md-toast>' + * '<div class="md-toast-content">' + * 'This is a custom preset' + * '</div>' + * '</md-toast>', * controllerAs: 'toast', * bindToController: true * }; * } * }); * </hljs> * * After you created your preset at config phase, you can easily access it. * * <hljs lang="js"> * $mdToast.show( * $mdToast.testPreset() * ); * </hljs> * * ## Parent container notes * * The toast is positioned using absolute positioning relative to its first non-static parent * container. Thus, if the requested parent container uses static positioning, we will temporarily * set its positioning to `relative` while the toast is visible and reset it when the toast is * hidden. * * Because of this, it is usually best to ensure that the parent container has a fixed height and * prevents scrolling by setting the `overflow: hidden;` style. Since the position is based off of * the parent's height, the toast may be mispositioned if you allow the parent to scroll. * * You can, however, have a scrollable element inside of the container; just make sure the * container itself does not scroll. * * <hljs lang="html"> * <div layout-fill id="toast-container"> * <md-content> * I can have lots of content and scroll! * </md-content> * </div> * </hljs> * * @usage * <hljs lang="html"> * <div ng-controller="MyController"> * <md-button ng-click="openToast()"> * Open a Toast! * </md-button> * </div> * </hljs> * * <hljs lang="js"> * var app = angular.module('app', ['ngMaterial']); * app.controller('MyController', function($scope, $mdToast) { * $scope.openToast = function($event) { * $mdToast.show($mdToast.simple().textContent('Hello!')); * // Could also do $mdToast.showSimple('Hello'); * }; * }); * </hljs> */ /** * @ngdoc method * @name $mdToast#showSimple * * @param {string} message The message to display inside the toast * @description * Convenience method which builds and shows a simple toast. * * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or * rejected with `$mdToast.cancel()`. * */ /** * @ngdoc method * @name $mdToast#simple * * @description * Builds a preconfigured toast. * * @returns {obj} a `$mdToastPreset` with the following chainable configuration methods. * * _**Note:** These configuration methods are provided in addition to the methods provided by * the `build()` and `show()` methods below._ * * <table class="md-api-table methods"> * <thead> * <tr> * <th>Method</th> * <th>Description</th> * </tr> * </thead> * <tbody> * <tr> * <td>`.textContent(string)`</td> * <td>Sets the toast content to the specified string</td> * </tr> * <tr> * <td>`.action(string)`</td> * <td> * Adds an action button. <br/> * If clicked, the promise (returned from `show()`) * will resolve with the value `'ok'`; otherwise, it is resolved with `true` after a `hideDelay` * timeout * </td> * </tr> * <tr> * <td>`.highlightAction(boolean)`</td> * <td> * Whether or not the action button will have an additional highlight class.<br/> * By default the `accent` color will be applied to the action button. * </td> * </tr> * <tr> * <td>`.highlightClass(string)`</td> * <td> * If set, the given class will be applied to the highlighted action button.<br/> * This allows you to specify the highlight color easily. Highlight classes are `md-primary`, `md-warn` * and `md-accent` * </td> * </tr> * <tr> * <td>`.capsule(boolean)`</td> * <td>Whether or not to add the `md-capsule` class to the toast to provide rounded corners</td> * </tr> * <tr> * <td>`.theme(string)`</td> * <td>Sets the theme on the toast to the requested theme. Default is `$mdThemingProvider`'s default.</td> * </tr> * <tr> * <td>`.toastClass(string)`</td> * <td>Sets a class on the toast element</td> * </tr> * </tbody> * </table> * */ /** * @ngdoc method * @name $mdToast#updateTextContent * * @description * Updates the content of an existing toast. Useful for updating things like counts, etc. * */ /** * @ngdoc method * @name $mdToast#build * * @description * Creates a custom `$mdToastPreset` that you can configure. * * @returns {obj} a `$mdToastPreset` with the chainable configuration methods for shows' options (see below). */ /** * @ngdoc method * @name $mdToast#show * * @description Shows the toast. * * @param {object} optionsOrPreset Either provide an `$mdToastPreset` returned from `simple()` * and `build()`, or an options object with the following properties: * * - `templateUrl` - `{string=}`: The url of an html template file that will * be used as the content of the toast. Restrictions: the template must * have an outer `md-toast` element. * - `template` - `{string=}`: Same as templateUrl, except this is an actual * template string. * - `autoWrap` - `{boolean=}`: Whether or not to automatically wrap the template content with a * `<div class="md-toast-content">` if one is not provided. Defaults to true. Can be disabled if you provide a * custom toast directive. * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope. * This scope will be destroyed when the toast is removed unless `preserveScope` is set to true. * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false * - `hideDelay` - `{number=}`: How many milliseconds the toast should stay * active before automatically closing. Set to 0 or false to have the toast stay open until * closed manually. Default: 3000. * - `position` - `{string=}`: Sets the position of the toast. <br/> * Available: any combination of `'bottom'`, `'left'`, `'top'`, `'right'`, `'end'` and `'start'`. * The properties `'end'` and `'start'` are dynamic and can be used for RTL support.<br/> * Default combination: `'bottom left'`. * - `toastClass` - `{string=}`: A class to set on the toast element. * - `controller` - `{string=}`: The controller to associate with this toast. * The controller will be injected the local `$mdToast.hide( )`, which is a function * used to hide the toast. * - `locals` - `{string=}`: An object containing key/value pairs. The keys will * be used as names of values to inject into the controller. For example, * `locals: {three: 3}` would inject `three` into the controller with the value * of 3. * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in. * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values * and the toast will not open until the promises resolve. * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope. * - `parent` - `{element=}`: The element to append the toast to. Defaults to appending * to the root element of the application. * * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or * rejected with `$mdToast.cancel()`. `$mdToast.hide()` will resolve either with a Boolean * value == 'true' or the value passed as an argument to `$mdToast.hide()`. * And `$mdToast.cancel()` will resolve the promise with a Boolean value == 'false' */ /** * @ngdoc method * @name $mdToast#hide * * @description * Hide an existing toast and resolve the promise returned from `$mdToast.show()`. * * @param {*=} response An argument for the resolved promise. * * @returns {promise} a promise that is called when the existing element is removed from the DOM. * The promise is resolved with either a Boolean value == 'true' or the value passed as the * argument to `.hide()`. * */ /** * @ngdoc method * @name $mdToast#cancel * * @description * `DEPRECATED` - The promise returned from opening a toast is used only to notify about the closing of the toast. * As such, there isn't any reason to also allow that promise to be rejected, * since it's not clear what the difference between resolve and reject would be. * * Hide the existing toast and reject the promise returned from * `$mdToast.show()`. * * @param {*=} response An argument for the rejected promise. * * @returns {promise} a promise that is called when the existing element is removed from the DOM * The promise is resolved with a Boolean value == 'false'. * */ function MdToastProvider($$interimElementProvider) { // Differentiate promise resolves: hide timeout (value == true) and hide action clicks (value == ok). toastDefaultOptions['$inject'] = ["$animate", "$mdToast", "$mdUtil", "$mdMedia"]; var ACTION_RESOLVE = 'ok'; var activeToastContent; var $mdToast = $$interimElementProvider('$mdToast') .setDefaults({ methods: ['position', 'hideDelay', 'capsule', 'parent', 'position', 'toastClass'], options: toastDefaultOptions }) .addPreset('simple', { argOption: 'textContent', methods: ['textContent', 'content', 'action', 'highlightAction', 'highlightClass', 'theme', 'parent' ], options: /* ngInject */ ["$mdToast", "$mdTheming", function($mdToast, $mdTheming) { return { template: '<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">' + ' <div class="md-toast-content">' + ' <span class="md-toast-text" role="alert" aria-relevant="all" aria-atomic="true">' + ' {{ toast.content }}' + ' </span>' + ' <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ' + ' ng-class="highlightClasses">' + ' {{ toast.action }}' + ' </md-button>' + ' </div>' + '</md-toast>', controller: /* ngInject */ ["$scope", function mdToastCtrl($scope) { var self = this; if (self.highlightAction) { $scope.highlightClasses = [ 'md-highlight', self.highlightClass ] } $scope.$watch(function() { return activeToastContent; }, function() { self.content = activeToastContent; }); this.resolve = function() { $mdToast.hide( ACTION_RESOLVE ); }; }], theme: $mdTheming.defaultTheme(), controllerAs: 'toast', bindToController: true }; }] }) .addMethod('updateTextContent', updateTextContent) .addMethod('updateContent', updateTextContent); function updateTextContent(newContent) { activeToastContent = newContent; } return $mdToast; /* ngInject */ function toastDefaultOptions($animate, $mdToast, $mdUtil, $mdMedia) { var SWIPE_EVENTS = '$md.swipeleft $md.swiperight $md.swipeup $md.swipedown'; return { onShow: onShow, onRemove: onRemove, toastClass: '', position: 'bottom left', themable: true, hideDelay: 3000, autoWrap: true, transformTemplate: function(template, options) { var shouldAddWrapper = options.autoWrap && template && !/md-toast-content/g.test(template); if (shouldAddWrapper) { // Root element of template will be <md-toast>. We need to wrap all of its content inside of // of <div class="md-toast-content">. All templates provided here should be static, developer-controlled // content (meaning we're not attempting to guard against XSS). var templateRoot = document.createElement('md-template'); templateRoot.innerHTML = template; // Iterate through all root children, to detect possible md-toast directives. for (var i = 0; i < templateRoot.children.length; i++) { if (templateRoot.children[i].nodeName === 'MD-TOAST') { var wrapper = angular.element('<div class="md-toast-content">'); // Wrap the children of the `md-toast` directive in jqLite, to be able to append multiple // nodes with the same execution. wrapper.append(angular.element(templateRoot.children[i].childNodes)); // Append the new wrapped element to the `md-toast` directive. templateRoot.children[i].appendChild(wrapper[0]); } } // We have to return the innerHTMl, because we do not want to have the `md-template` element to be // the root element of our interimElement. return templateRoot.innerHTML; } return template || ''; } }; function onShow(scope, element, options) { activeToastContent = options.textContent || options.content; // support deprecated #content method var isSmScreen = !$mdMedia('gt-sm'); element = $mdUtil.extractElementByName(element, 'md-toast', true); options.element = element; options.onSwipe = function(ev, gesture) { //Add the relevant swipe class to the element so it can animate correctly var swipe = ev.type.replace('$md.',''); var direction = swipe.replace('swipe', ''); // If the swipe direction is down/up but the toast came from top/bottom don't fade away // Unless the screen is small, then the toast always on bottom if ((direction === 'down' && options.position.indexOf('top') != -1 && !isSmScreen) || (direction === 'up' && (options.position.indexOf('bottom') != -1 || isSmScreen))) { return; } if ((direction === 'left' || direction === 'right') && isSmScreen) { return; } element.addClass('md-' + swipe); $mdUtil.nextTick($mdToast.cancel); }; options.openClass = toastOpenClass(options.position); element.addClass(options.toastClass); // 'top left' -> 'md-top md-left' options.parent.addClass(options.openClass); // static is the default position if ($mdUtil.hasComputedStyle(options.parent, 'position', 'static')) { options.parent.css('position', 'relative'); } element.on(SWIPE_EVENTS, options.onSwipe); element.addClass(isSmScreen ? 'md-bottom' : options.position.split(' ').map(function(pos) { return 'md-' + pos; }).join(' ')); if (options.parent) options.parent.addClass('md-toast-animating'); return $animate.enter(element, options.parent).then(function() { if (options.parent) options.parent.removeClass('md-toast-animating'); }); } function onRemove(scope, element, options) { element.off(SWIPE_EVENTS, options.onSwipe); if (options.parent) options.parent.addClass('md-toast-animating'); if (options.openClass) options.parent.removeClass(options.openClass); return ((options.$destroy == true) ? element.remove() : $animate.leave(element)) .then(function () { if (options.parent) options.parent.removeClass('md-toast-animating'); if ($mdUtil.hasComputedStyle(options.parent, 'position', 'static')) { options.parent.css('position', ''); } }); } function toastOpenClass(position) { // For mobile, always open full-width on bottom if (!$mdMedia('gt-xs')) { return 'md-toast-open-bottom'; } return 'md-toast-open-' + (position.indexOf('top') > -1 ? 'top' : 'bottom'); } } } })(window, window.angular);
import test from 'ava'; import { spawn } from 'child_process'; test.cb('app should boot without exiting', (t) => { const cli = spawn('node', [ './cli' ]); cli.stderr.on('data', (param) => { console.log(param.toString()); }); cli.on('close', (code) => { t.fail(`app failed to boot ${code}`); }); setTimeout(() => { t.pass(); t.end(); cli.kill(); }, 500); });
import { expect } from 'chai'; import buildUriTemplate from '../src/uri-template'; describe('URI Template Handler', () => { context('when there are path object parameters', () => { context('when the path object parameters are not query parameters', () => { const basePath = '/api'; const href = '/pet/findByTags'; const pathObjectParams = [ { in: 'path', description: 'Path parameter from path object', name: 'fromPath', required: true, type: 'string', }, ]; const queryParams = [ { in: 'query', description: 'Tags to filter by', name: 'tags', required: true, type: 'string', }, { in: 'query', description: 'For tests. Unknown type of query parameter.', name: 'unknown', required: true, type: 'unknown', }, ]; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/findByTags{?tags,unknown}'); }); }); context('when there are no query parameters but have one path object parameter', () => { const basePath = '/api'; const href = '/pet/{id}'; const pathObjectParams = [ { in: 'path', description: 'Pet\'s identifier', name: 'id', required: true, type: 'number', }, ]; const queryParams = []; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/{id}'); }); }); context('when there are query parameters defined', () => { const basePath = '/api'; const href = '/pet/findByTags'; const pathObjectParams = [ { in: 'query', description: 'Query parameter from path object', name: 'fromPath', required: true, type: 'string', }, ]; const queryParams = [ { in: 'query', description: 'Tags to filter by', name: 'tags', required: true, type: 'string', }, { in: 'query', description: 'For tests. Unknown type of query parameter.', name: 'unknown', required: true, type: 'unknown', }, ]; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/findByTags{?fromPath,tags,unknown}'); }); }); context('when there are parameters with reserved characters', () => { const basePath = '/my-api'; const href = '/pet/{unique%2did}'; const queryParams = [ { in: 'query', description: 'Tags to filter by', name: 'tag-names[]', required: true, type: 'string', }, ]; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, [], queryParams); expect(hrefForResource).to.equal('/my-api/pet/{unique%2did}{?tag%2dnames%5B%5D}'); }); }); context('when there is a conflict in parameter names', () => { const basePath = '/api'; const href = '/pet/findByTags'; const pathObjectParams = [ { in: 'query', description: 'Tags to filter by', name: 'tags', required: true, type: 'string', }, ]; const queryParams = [ { in: 'query', description: 'Tags to filter by', name: 'tags', required: true, type: 'string', }, ]; it('only adds one to the query parameters', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/findByTags{?tags}'); }); }); context('when there are no query parameters defined', () => { const basePath = '/api'; const href = '/pet/findByTags'; const pathObjectParams = [ { in: 'query', description: 'Query parameter from path object', name: 'fromPath', required: true, type: 'string', }, ]; const queryParams = []; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/findByTags{?fromPath}'); }); }); }); context('when there are query parameters but no path object parameters', () => { const basePath = '/api'; const href = '/pet/findByTags'; const pathObjectParams = []; const queryParams = [ { in: 'query', description: 'Tags to filter by', name: 'tags', required: true, type: 'string', }, { in: 'query', description: 'For tests. Unknown type of query parameter.', name: 'unknown', required: true, type: 'unknown', }, ]; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/findByTags{?tags,unknown}'); }); }); context('when there are no query or path object parameters', () => { const basePath = '/api'; const href = '/pet/findByTags'; const pathObjectParams = []; const queryParams = []; it('returns the correct URI', () => { const hrefForResource = buildUriTemplate(basePath, href, pathObjectParams, queryParams); expect(hrefForResource).to.equal('/api/pet/findByTags'); }); }); describe('array parameters with collectionFormat', () => { it('returns a template with default format', () => { const parameter = { in: 'query', name: 'tags', type: 'array', }; const hrefForResource = buildUriTemplate('', '/example', [parameter]); expect(hrefForResource).to.equal('/example{?tags}'); }); it('returns a template with csv format', () => { const parameter = { in: 'query', name: 'tags', type: 'array', collectionFormat: 'csv', }; const hrefForResource = buildUriTemplate('', '/example', [parameter]); expect(hrefForResource).to.equal('/example{?tags}'); }); it('returns an exploded template with multi format', () => { const parameter = { in: 'query', name: 'tags', type: 'array', collectionFormat: 'multi', }; const hrefForResource = buildUriTemplate('', '/example', [parameter]); expect(hrefForResource).to.equal('/example{?tags*}'); }); }); });
let Demo1 = require('./components/demo1.js'); document.body.appendChild(Demo1());
var Handler, MiniEventEmitter; Handler = require("./handler"); MiniEventEmitter = (function() { function MiniEventEmitter(obj) { var handler; handler = new Handler(this, obj); this.on = handler.on; this.off = handler.off; this.emit = handler.emit; this.emitIf = handler.emitIf; this.trigger = handler.emit; this.triggerIf = handler.emitIf; } MiniEventEmitter.prototype.listen = function(type, event, args) {}; return MiniEventEmitter; })(); module.exports = MiniEventEmitter;
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import {connect} from 'react-redux'; import StringList from './StringList/StringList' import TwitterSelector from './DomainSelector/TwitterSelector' import TweetFilter from './TweetFilter/TweetFilter' class Search extends React.Component { constructor(props) { super(props); this.state = { includedWords: [] }; this.getWords = this.getWords.bind(this); } getWords(words) { this.setState({ includedWords: words }); } render() { const styles = { fontFamily: 'Helvetica Neue', fontSize: 14, lineHeight: '10px', color: 'white', display: 'flex', alignItems: 'center', justifyContent: 'center', } return ( <div> <TweetFilter /> </div> ); } } export default Search;
import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import Ember from "ember-metal/core"; // Ember.assert import EmberError from "ember-metal/error"; import { Descriptor, defineProperty } from "ember-metal/properties"; import { ComputedProperty } from "ember-metal/computed"; import create from "ember-metal/platform/create"; import { meta, inspect } from "ember-metal/utils"; import { addDependentKeys, removeDependentKeys } from "ember-metal/dependent_keys"; export default function alias(altKey) { return new AliasedProperty(altKey); } export function AliasedProperty(altKey) { this.altKey = altKey; this._dependentKeys = [altKey]; } AliasedProperty.prototype = create(Descriptor.prototype); AliasedProperty.prototype.get = function AliasedProperty_get(obj, keyName) { return get(obj, this.altKey); }; AliasedProperty.prototype.set = function AliasedProperty_set(obj, keyName, value) { return set(obj, this.altKey, value); }; AliasedProperty.prototype.willWatch = function(obj, keyName) { addDependentKeys(this, obj, keyName, meta(obj)); }; AliasedProperty.prototype.didUnwatch = function(obj, keyName) { removeDependentKeys(this, obj, keyName, meta(obj)); }; AliasedProperty.prototype.setup = function(obj, keyName) { Ember.assert("Setting alias '" + keyName + "' on self", this.altKey !== keyName); var m = meta(obj); if (m.watching[keyName]) { addDependentKeys(this, obj, keyName, m); } }; AliasedProperty.prototype.teardown = function(obj, keyName) { var m = meta(obj); if (m.watching[keyName]) { removeDependentKeys(this, obj, keyName, m); } }; AliasedProperty.prototype.readOnly = function() { this.set = AliasedProperty_readOnlySet; return this; }; function AliasedProperty_readOnlySet(obj, keyName, value) { throw new EmberError('Cannot set read-only property "' + keyName + '" on object: ' + inspect(obj)); } AliasedProperty.prototype.oneWay = function() { this.set = AliasedProperty_oneWaySet; return this; }; function AliasedProperty_oneWaySet(obj, keyName, value) { defineProperty(obj, keyName, null); return set(obj, keyName, value); } // Backwards compatibility with Ember Data AliasedProperty.prototype._meta = undefined; AliasedProperty.prototype.meta = ComputedProperty.prototype.meta;
/* * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of this source code package. * * author: emicklei */ V8D.receiveCallback = function(msg) { var obj = JSON.parse(msg); var context = this; if (obj.receiver != "this") { var namespaces = obj.receiver.split("."); for (var i = 0; i < namespaces.length; i++) { context = context[namespaces[i]]; } } var func = context[obj.selector]; if (func != null) { return JSON.stringify(func.apply(context, obj.args)); } else { // try reporting the error if (console != null) { console.log("[JS] unable to perform", msg); } // TODO return error? return "null"; } } // This callback is set for handling function calls from Go transferred as JSON. // It is called from Go using "worker.Send(...)". // Throws a SyntaxError exception if the string to parse is not valid JSON. // $recv(V8D.receiveCallback); // This callback is set for handling function calls from Go transferred as JSON that expect a return value. // It is called from Go using "worker.SendSync(...)". // Throws a SyntaxError exception if the string to parse is not valid JSON. // Returns the JSON representation of the return value of the handling function. // $recvSync(V8D.receiveCallback); // callDispatch is used from Go to call a callback function that was registered. // V8D.callDispatch = function(functionRef /*, arguments */ ) { var jsonArgs = [].slice.call(arguments).splice(1); var callback = V8D.function_registry.take(functionRef) if (V8D.function_registry.none == callback) { $print("[JS] no function for reference:" + functionRef); return; } callback.apply(this, jsonArgs.map(function(each){ return JSON.parse(each); })); } // MessageSend is a constructor. // V8D.MessageSend = function MessageSend(receiver, selector, onReturn) { this.data = { "receiver": receiver, "selector": selector, "callback": onReturn, "args": [].slice.call(arguments).splice(3) }; } // MessageSend toJSON returns the JSON representation. // V8D.MessageSend.prototype = { toJSON: function() { return JSON.stringify(this.data); } } // callReturn performs a MessageSend in Go and returns the value from that result // V8D.callReturn = function(receiver, selector /*, arguments */ ) { var msg = { "receiver": receiver, "selector": selector, "args": [].slice.call(arguments).splice(2) }; return JSON.parse($sendSync(JSON.stringify(msg))); } // call performs a MessageSend in Go and does NOT return a value. // V8D.call = function(receiver, selector /*, arguments */ ) { var msg = { "receiver": receiver, "selector": selector, "args": [].slice.call(arguments).splice(2) }; $send(JSON.stringify(msg)); } // callThen performs a MessageSend in Go which can call the onReturn function. // It does not return the value of the perform. // V8D.callThen = function(receiver, selector, onReturnFunction /*, arguments */ ) { var msg = { "receiver": receiver, "selector": selector, "callback": V8D.function_registry.put(onReturnFunction), "args": [].slice.call(arguments).splice(3) }; $send(JSON.stringify(msg)); } // set adds/replaces the value for a variable in the global scope. // V8D.set = function(variableName,itsValue) { V8D.outerThis[variableName] = itsValue; } // get returns the value for a variable in the global scope. // V8D.get = function(variableName) { return V8D.outerThis[variableName]; }
/** * * Modelo de Login usando MCV * Desenvolvido por Ricardo Hirashiki * Publicado em: http://www.sitedoricardo.com.br * Data: Ago/2011 * * Baseado na extensao criada por Wemerson Januario * http://code.google.com/p/login-window/ * */ Ext.define('Siccad.view.authentication.CapsWarningTooltip', { extend : 'Ext.tip.QuickTip', alias : 'widget.capswarningtooltip', target : 'authentication-login', id : 'toolcaps', anchor : 'left', anchorOffset : 60, width : 305, dismissDelay : 0, autoHide : false, disabled : false, title : '<b>Caps Lock est&aacute; ativada</b>', html : '<div>Se Caps lock estiver ativado, isso pode fazer com que voc&ecirc;</div>' + '<div>digite a senha incorretamente.</div><br/>' + '<div>Voc&ecirc; deve pressionar a tecla Caps lock para desativ&aacute;-la</div>' + '<div>antes de digitar a senha.</div>' });
// generates an interface file given an eni file // you can generate an eni file using the aws-cli // example: // aws ec2 describe-network-interfaces --network-interface-ids eni-2492676c > eni-7290653a.json var ENI_FILE = "json/eni-651e2c2c.json"; // the interface you want to configure var INTERFACE = "eth1"; // port you want squid proxy to start at; doesn't matter if you're not using squid var PORT = 3188; // get the gateway ip by running `route -n` var GATEWAYIP = "172.31.16.1"; // number to start with in RT TABLES var RT_TABLES = 2; fs = require('fs'); fs.readFile(ENI_FILE, function (err, data) { if (!err) { var eni = JSON.parse(data).NetworkInterfaces[0]; var netConfig = "auto " + INTERFACE + "\niface " + INTERFACE + " inet dhcp\n\n"; var squidConfig = ""; var rtTables = ""; for (var i = 0; i < eni.PrivateIpAddresses.length; i++) { var addressObject = eni.PrivateIpAddresses[i]; // construct string // current subinterface var subinterface = INTERFACE + ":" + i; netConfig += "auto " + subinterface + "\n"; netConfig += "iface "+ subinterface + " inet static\n"; netConfig += "address " + addressObject.PrivateIpAddress + "\n"; // this IP is the gateway IP netConfig += "up ip route add default via " + GATEWAYIP + " dev " + subinterface + " table " + subinterface + "\n" netConfig += "up ip rule add from " + addressObject.PrivateIpAddress + " lookup " + subinterface + "\n\n"; squidConfig += "http_port localhost:" + PORT + " name="+ PORT + "\nacl a" + PORT + " myportname " + PORT + " src localhost\nhttp_access allow a" + PORT + "\ntcp_outgoing_address " + addressObject.PrivateIpAddress + " a" + PORT + "\n\n"; rtTables += RT_TABLES + " " + subinterface + "\n"; PORT++; RT_TABLES++; }; // trim newlines netConfig = netConfig.replace(/^\s+|\s+$/g, ''); squidConfig = squidConfig.replace(/^\s+|\s+$/g, ''); rtTables = rtTables.replace(/^\s+|\s+$/g, ''); fs.writeFile("./cfg/" + INTERFACE + ".cfg", netConfig, function(err) { if(err) { console.log(err); } else { console.log("Generated networking config and saved it to " + INTERFACE + ".cfg."); } }); fs.writeFile("./cfg/" + INTERFACE + "-squid.cfg", squidConfig, function(err) { if(err) { console.log(err); } else { console.log("Generated squid config and saved it to " + INTERFACE + ".cfg."); } }); fs.writeFile("./cfg/" + INTERFACE + "-rt_tables.cfg", rtTables, function(err) { if(err) { console.log(err); } else { console.log("Generated rt_tables and saved it to " + INTERFACE + ".cfg."); } }); } if (err) { console.log("Error! Make sure you're running this in the config-utils directory and that the JSON file + the cfg directory are both there."); } });
var width = window.innerWidth, height = window.innerHeight, boids = [], destination, canvas, context; const MAX_NUMBER = 100; const MAX_SPEED = 1; const radius = 5; init(); animation(); function init(){ canvas = document.getElementById('canvas'), context = canvas.getContext( "2d" ); canvas.width = width; canvas.height = height; destination = { x:Math.random()*width, y:Math.random()*height }; for (var i = 0; i <MAX_NUMBER; i++) { boids[i] = new Boid(); }; } var _animation; function animation(){ _animation = requestAnimationFrame(animation); context.clearRect(0,0,width,height); for (var i = 0; i < boids.length; i++) { boids[i].rule1(); boids[i].rule2(); boids[i].rule3(); boids[i].rule4(); boids[i].rule5(); boids[i].rule6(); var nowSpeed = Math.sqrt(boids[i].vx * boids[i].vx + boids[i].vy * boids[i].vy ); if(nowSpeed > MAX_SPEED){ boids[i].vx *= MAX_SPEED / nowSpeed; boids[i].vy *= MAX_SPEED / nowSpeed; } boids[i].x += boids[i].vx; boids[i].y += boids[i].vy; drawCircle(boids[i].x,boids[i].y); drawVector(boids[i].x,boids[i].y,boids[i].vx,boids[i].vy); }; } /* //mouseEvent document.onmousemove = function (event){ destination ={ x:event.screenX, y:event.screenY } }; */ function Boid(){ this.x = Math.random()*width; this.y = Math.random()*height; this.vx = 0.0; this.vy = 0.0; this.dx = Math.random()*width; this.dy = Math.random()*height; //群れの中心に向かう this.rule1 = function(){ var centerx = 0, centery = 0; for (var i = 0; i < boids.length; i++) { if (boids[i] != this) { centerx += boids[i].x; centery += boids[i].y; }; }; centerx /= MAX_NUMBER-1; centery /= MAX_NUMBER-1; this.vx += (centerx-this.x)/1000; this.vy += (centery-this.y)/1000; } //他の個体と離れるように動く this.rule2 = function(){ var _vx = 0, _vy = 0; for (var i = 0; i < boids.length; i++) { if(this != boids[i]){ var distance = distanceTo(this.x,boids[i].x,this.y,boids[i].y); if(distance<25){ distance += 0.001; _vx -= (boids[i].x - this.x)/distance; _vy -= (boids[i].y - this.y)/distance; //this.dx = -boids[i].x; //this.dy = -boids[i].y; } } }; this.vx += _vx; this.vy += _vy; } //他の個体と同じ速度で動こうとする this.rule3 = function(){ var _pvx = 0, _pvy = 0; for (var i = 0; i < boids.length; i++) { if (boids[i] != this) { _pvx += boids[i].vx; _pvy += boids[i].vy; } }; _pvx /= MAX_NUMBER-1; _pvy /= MAX_NUMBER-1; this.vx += (_pvx - this.vx)/10; this.vy += (_pvy - this.vy)/10; }; //壁側の時の振る舞い this.rule4 = function(){ if(this.x < 10 && this.vx < 0)this.vx += 10/(Math.abs( this.x ) + 1 ); if(this.x > width && this.vx > 0)this.vx -= 10/(Math.abs( width - this.x ) + 1 ); if (this.y < 10 && this.vy < 0)this.vy += 10/(Math.abs( this.y ) + 1 ); if(this.y > height && this.vy > 0)this.vy -= 10/(Math.abs( height - this.y ) + 1 ); }; //目的地に行く this.rule5 = function(){ var _dx = this.dx - this.x, _dy = this.dy - this.y; this.vx += (this.dx - this.x)/500; this.vy += (this.dy - this.y)/500; } //捕食する this.rule6 = function(){ var _vx = Math.random()-0.5, _vy = Math.random()-0.5; for (var i = 0; i < boids.length; i++) { if(this != boids[i] && this.dx != boids[i].dx && this.dy != boids[i].dy){ var distance = distanceTo(this.x,boids[i].x,this.y,boids[i].y); if(distance<20 && distance>15){ console.log(distance); distance += 0.001; _vx += (boids[i].x - this.x)/distance; _vy += (boids[i].y - this.y)/distance; drawLine(this.x,this.y,boids[i].x,boids[i].y); this.dx = boids[i].dx; this.dy = boids[i].dy; } } }; this.vx += _vx; this.vy += _vy; } } function distanceTo(x1,x2,y1,y2){ var dx = x2-x1, dy = y2-y1; return Math.sqrt(dx*dx+dy*dy); } function drawCircle(x,y){ context.beginPath(); context.strokeStyle = "#fff"; context.arc(x,y,radius,0,Math.PI*2,false); context.stroke(); } const VectorLong = 10; function drawVector(x,y,vx,vy){ context.beginPath(); var pointx = x+vx*VectorLong; var pointy = y+vy*VectorLong; context.moveTo(x,y); context.lineTo(pointx,pointy); context.stroke(); } function drawLine(x1,y1,x2,y2){ context.beginPath(); context.moveTo(x1,y1); context.lineTo(x2,y2); context.stroke(); }
describe("Dragable Row Directive ", function () { var scope, container, element, html, compiled, compile; beforeEach(module("app", function ($provide) { $provide.value("authService", {}) })); beforeEach(inject(function ($compile, $rootScope) { html = '<div id="element-id" data-draggable-row=""' + ' data-draggable-elem-selector=".draggable"' + ' data-drop-area-selector=".drop-area">' + '<div class="draggable"></div>' + '<div class="drop-area" style="display: none;"></div>' + '</div>'; scope = $rootScope.$new(); compile = $compile; })); function prepareDirective(s) { container = angular.element(html); compiled = compile(container); element = compiled(s); s.$digest(); } /***********************************************************************************************************************/ it('should add draggable attribute to draggable element, when initialise', function () { prepareDirective(scope); expect(element.find('.draggable').attr('draggable')).toBe('true'); }); it('should prevent default, when dragging over allowed element', function () { prepareDirective(scope); var event = $.Event('dragover'); event.preventDefault = window.jasmine.createSpy('preventDefault'); event.originalEvent = { dataTransfer: { types: {}, getData: window.jasmine.createSpy('getData').and.returnValue("element-id") } }; element.trigger(event); expect(event.preventDefault).toHaveBeenCalled(); }); it('should show drop area, when drag enter allowed element', function () { prepareDirective(scope); var event = $.Event('dragenter'); event.originalEvent = { dataTransfer: { types: {}, getData: window.jasmine.createSpy('getData').and.returnValue("element-id") } }; element.trigger(event); expect(element.find('.drop-area').css('display')).not.toEqual('none'); expect(event.originalEvent.dataTransfer.getData).toHaveBeenCalledWith('draggedRow'); }); it('should call scope onDragEnd, when dragging ends', function () { prepareDirective(scope); var event = $.Event('dragend'); var isolateScope = element.isolateScope(); spyOn(isolateScope, 'onDragEnd'); element.trigger(event); expect(isolateScope.onDragEnd).toHaveBeenCalled(); }); it('should set drag data and call scope onDrag, when drag starts', function () { prepareDirective(scope); var event = $.Event('dragstart'); event.originalEvent = { dataTransfer: { setData: window.jasmine.createSpy('setData') } }; var isolateScope = element.isolateScope(); spyOn(isolateScope, 'onDrag'); element.find('.draggable').trigger(event); expect(isolateScope.onDrag).toHaveBeenCalled(); expect(event.originalEvent.dataTransfer.setData).toHaveBeenCalledWith('draggedRow', 'element-id'); }); it('should prevent default, when dragging over allowed drop area', function () { prepareDirective(scope); var event = $.Event('dragover'); event.preventDefault = window.jasmine.createSpy('preventDefault'); event.originalEvent = { dataTransfer: { types: {}, getData: window.jasmine.createSpy('getData').and.returnValue("element-id") } }; element.find('.drop-area').trigger(event); expect(event.preventDefault).toHaveBeenCalled(); }); it('should show drop area, when drag enter allowed drop area', function () { prepareDirective(scope); var event = $.Event('dragenter'); event.originalEvent = { dataTransfer: { types: {}, getData: window.jasmine.createSpy('getData').and.returnValue("element-id") } }; element.find('.drop-area').trigger(event); expect(element.find('.drop-area').css('display')).not.toEqual('none'); expect(event.originalEvent.dataTransfer.getData).toHaveBeenCalledWith('draggedRow'); }); it('should hide drop area, when drag leave drop area', function () { prepareDirective(scope); var event = $.Event('dragleave'); event.originalEvent = { dataTransfer: { types: {}, getData: window.jasmine.createSpy('getData').and.returnValue("element-id") } }; element.find('.drop-area').trigger(event); expect(element.find('.drop-area').css('display')).toEqual('none'); expect(event.originalEvent.dataTransfer.getData).toHaveBeenCalledWith('draggedRow'); }); it('should hide drop area and call scope onDrop, when drop on drop area', function () { prepareDirective(scope); var event = $.Event('drop'); event.preventDefault = window.jasmine.createSpy('preventDefault'); event.originalEvent = { dataTransfer: { types: {}, getData: window.jasmine.createSpy('getData').and.returnValue("element-id") } }; var isolateScope = element.isolateScope(); spyOn(isolateScope, 'onDrop'); element.find('.drop-area').trigger(event); expect(event.originalEvent.dataTransfer.getData).toHaveBeenCalledWith('draggedRow'); expect(event.preventDefault).toHaveBeenCalled(); expect(element.find('.drop-area').css('display')).toEqual('none'); expect(isolateScope.onDrop).toHaveBeenCalled(); }); });
import _ from 'lodash'; import { createSelector } from 'reselect'; const srcFilesSelector = state => state.srcFiles; const featuresSelector = state => state.features; const featureByIdSelector = state => state.featureById; const keywordSelector = (state, keyword) => keyword; function getMarks(feature, ele) { const marks = []; switch (ele.type) { case 'component': if (ele.connectToStore) marks.push('C'); if (_.find(feature.routes, { component: ele.name })) marks.push('R'); break; case 'action': if (ele.isAsync) marks.push('A'); break; default: break; } return marks; } function getComponentsTreeData(feature) { const components = feature.components; return { key: `${feature.key}-components`, className: 'components', label: 'Components', icon: 'appstore-o', count: components.length, children: components.map(comp => ({ key: comp.file, className: 'component', label: comp.name, icon: 'appstore-o', searchable: true, marks: getMarks(feature, comp), })), }; } function getActionsTreeData(feature) { const actions = feature.actions; return { key: `${feature.key}-actions`, className: 'actions', label: 'Actions', icon: 'notification', count: actions.length, children: actions.map(action => ({ key: action.file, className: 'action', label: action.name, icon: 'notification', searchable: true, marks: getMarks(feature, action), })), }; } function getChildData(child) { return { key: child.file, className: child.children ? 'misc-folder' : 'misc-file', label: child.name, icon: child.children ? 'folder' : 'file', searchable: !child.children, children: child.children ? child.children.map(getChildData) : null, }; } function getMiscTreeData(feature) { const misc = feature.misc; return { key: `${feature.key}-misc`, className: 'misc', label: 'Misc', icon: 'folder', children: misc.map(getChildData), }; } export const getExplorerTreeData = createSelector( srcFilesSelector, featuresSelector, featureByIdSelector, (srcFiles, features, featureById) => { const featureNodes = features.map((fid) => { const feature = featureById[fid]; return { key: feature.key, className: 'feature', label: feature.name, icon: 'book', children: [ { label: 'Routes', key: `${fid}-routes`, searchable: false, className: 'routes', icon: 'share-alt', count: feature.routes.length }, getActionsTreeData(feature), getComponentsTreeData(feature), getMiscTreeData(feature), ], }; }); const allNodes = [ { key: 'features', label: 'Features', icon: 'features', children: _.compact(featureNodes), }, { key: 'others-node', label: 'Others', icon: 'folder', children: srcFiles.map(getChildData), } ]; return { root: true, children: allNodes }; } ); function filterTreeNode(node, keyword) { const reg = new RegExp(_.escapeRegExp(keyword), 'i'); return { ...node, children: _.compact(node.children.map((child) => { if (child.searchable && reg.test(child.label)) return child; if (child.children) { const c = filterTreeNode(child, keyword); return c.children.length > 0 ? c : null; } return null; })), }; } export const getFilteredExplorerTreeData = createSelector( getExplorerTreeData, keywordSelector, (treeData, keyword) => { if (!keyword) return treeData; return filterTreeNode(treeData, keyword); } ); // when searching the tree, all nodes should be expanded, the tree component needs expandedKeys property. export const getExpandedKeys = createSelector( getFilteredExplorerTreeData, (treeData) => { const keys = []; let arr = [...treeData.children]; while (arr.length) { const pop = arr.pop(); if (pop.children) { keys.push(pop.key); arr = [...arr, ...pop.children]; } } return keys; } );
exports.login = function* (ctx) { const result = yield ctx.service.mine.login(ctx.request.body); if (!result) { ctx.status = 400; ctx.body = { status: 400, msg: `please check your username and password`, } return; } ctx.body = { access_token: result.access_token, msg: 'login success', }; ctx.status = 200; } exports.signup = function* (ctx) { const result = yield ctx.service.mine.signup(ctx.request.body); if (!result.result) { ctx.status = 400; ctx.body = { status: 400, msg: result.msg, } return; } ctx.status = 201; ctx.body = { status: 201, msg: 'success', } } exports.info = function* (ctx) { const info = yield ctx.service.mine.info(ctx.auth.user_id); if (info == null) { ctx.status = 200; ctx.body = { status: 200, msg: 'there is no info for current user', } return; } ctx.body = info; ctx.status = 200; } exports.statistics = function* (ctx) { const info = yield ctx.service.mine.statistics(ctx.auth.user_id); if (info == null) { ctx.status = 200; ctx.body = { shares_count: 0, friends_count: 0, helpful_count: 0, }; return; } ctx.body = info; ctx.status = 200; } exports.accounts = function* (ctx) { const accounts = yield ctx.service.mine.accounts(ctx.auth.user_id); ctx.body = accounts; ctx.status = 200; } exports.update = function* (ctx) { let profile = ctx.request.body; profile.id = ctx.auth.user_id; const result = yield ctx.service.mine.update(profile); if (result) { ctx.status = 204; return; } ctx.status = 500; ctx.body = { msg: 'update profile failed', } } exports.avatar = function* (ctx) { const parts = ctx.multipart(); const { filename, error } = yield ctx.service.mine.avatar(parts, `avatar/${ctx.auth.user_id}`); if (error) { ctx.status = 500; ctx.body = { status: 500, msg: 'update avatar failed', }; return false; } ctx.status = 200; ctx.body = { filename, msg: 'success', } }
export const browserVersions = () => { let u = navigator.userAgent return { // 移动终端浏览器版本信息 trident: u.indexOf('Trident') > -1, // IE内核 presto: u.indexOf('Presto') > -1, // opera内核 webKit: u.indexOf('AppleWebKit') > -1, // 苹果、谷歌内核 gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') === -1, // 火狐内核 mobile: !!u.match(/AppleWebKit.*Mobile.*/), // 是否为移动终端 ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), // ios终端 android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, // android终端或者uc浏览器 iPhone: u.indexOf('iPhone') > -1, // 是否为iPhone或者QQHD浏览器 iPad: u.indexOf('iPad') > -1, // 是否iPad webApp: u.indexOf('Safari') === -1 // 是否web应该程序,没有头部与底部 } }
/** * Get a number suffix * e.g. 1 -> st * @param {int} i number to get suffix * @return suffix */ var getSuffix = function (i) { var j = i % 10, k = i % 100; if (j == 1 && k != 11) { return i + "st"; } if (j == 2 && k != 12) { return i + "nd"; } if (j == 3 && k != 13) { return i + "rd"; } return i + "th"; } module.exports = { getSuffix: getSuffix, };
'use strict'; const chai = require('chai'), expect = chai.expect, config = require('../config/config'), Support = require('./support'), dialect = Support.getTestDialect(), Sequelize = Support.Sequelize, fs = require('fs'), path = require('path'); if (dialect === 'sqlite') { var sqlite3 = require('sqlite3'); // eslint-disable-line } describe(Support.getTestDialectTeaser('Configuration'), () => { describe('Connections problems should fail with a nice message', () => { it('when we don\'t have the correct server details', () => { const seq = new Sequelize(config[dialect].database, config[dialect].username, config[dialect].password, { storage: '/path/to/no/where/land', logging: false, host: '0.0.0.1', port: config[dialect].port, dialect }); if (dialect === 'sqlite') { // SQLite doesn't have a breakdown of error codes, so we are unable to discern between the different types of errors. return expect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith(Sequelize.ConnectionError, 'SQLITE_CANTOPEN: unable to open database file'); } return expect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith([Sequelize.HostNotReachableError, Sequelize.InvalidConnectionError]); }); it('when we don\'t have the correct login information', () => { if (dialect === 'mssql') { // NOTE: Travis seems to be having trouble with this test against the // AWS instance. Works perfectly fine on a local setup. expect(true).to.be.true; return; } const seq = new Sequelize(config[dialect].database, config[dialect].username, 'fakepass123', { logging: false, host: config[dialect].host, port: 1, dialect }); if (dialect === 'sqlite') { // SQLite doesn't require authentication and `select 1 as hello` is a valid query, so this should be fulfilled not rejected for it. return expect(seq.query('select 1 as hello')).to.eventually.be.fulfilled; } return expect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith(Sequelize.ConnectionRefusedError, 'connect ECONNREFUSED'); }); it('when we don\'t have a valid dialect.', () => { expect(() => { new Sequelize(config[dialect].database, config[dialect].username, config[dialect].password, { host: '0.0.0.1', port: config[dialect].port, dialect: 'some-fancy-dialect' }); }).to.throw(Error, 'The dialect some-fancy-dialect is not supported. Supported dialects: mssql, mariadb, mysql, postgres, and sqlite.'); }); }); describe('Instantiation with arguments', () => { if (dialect === 'sqlite') { it('should respect READONLY / READWRITE connection modes', () => { const p = path.join(__dirname, '../tmp', 'foo.sqlite'); const createTableFoo = 'CREATE TABLE foo (faz TEXT);'; const createTableBar = 'CREATE TABLE bar (baz TEXT);'; const testAccess = Sequelize.Promise.method(() => { return Sequelize.Promise.promisify(fs.access)(p, fs.R_OK | fs.W_OK); }); return Sequelize.Promise.promisify(fs.unlink)(p) .catch(err => { expect(err.code).to.equal('ENOENT'); }) .then(() => { const sequelizeReadOnly = new Sequelize('sqlite://foo', { storage: p, dialectOptions: { mode: sqlite3.OPEN_READONLY } }); const sequelizeReadWrite = new Sequelize('sqlite://foo', { storage: p, dialectOptions: { mode: sqlite3.OPEN_READWRITE } }); expect(sequelizeReadOnly.config.dialectOptions.mode).to.equal(sqlite3.OPEN_READONLY); expect(sequelizeReadWrite.config.dialectOptions.mode).to.equal(sqlite3.OPEN_READWRITE); return Sequelize.Promise.join( sequelizeReadOnly.query(createTableFoo) .should.be.rejectedWith(Error, 'SQLITE_CANTOPEN: unable to open database file'), sequelizeReadWrite.query(createTableFoo) .should.be.rejectedWith(Error, 'SQLITE_CANTOPEN: unable to open database file') ); }) .then(() => { // By default, sqlite creates a connection that's READWRITE | CREATE const sequelize = new Sequelize('sqlite://foo', { storage: p }); return sequelize.query(createTableFoo); }) .then(testAccess) .then(() => { const sequelizeReadOnly = new Sequelize('sqlite://foo', { storage: p, dialectOptions: { mode: sqlite3.OPEN_READONLY } }); const sequelizeReadWrite = new Sequelize('sqlite://foo', { storage: p, dialectOptions: { mode: sqlite3.OPEN_READWRITE } }); return Sequelize.Promise.join( sequelizeReadOnly.query(createTableBar) .should.be.rejectedWith(Error, 'SQLITE_READONLY: attempt to write a readonly database'), sequelizeReadWrite.query(createTableBar) ); }) .finally(() => { return Sequelize.Promise.promisify(fs.unlink)(p); }); }); } }); });
// Script by Bo Tranberg // http://botranberg.dk // https://github.com/tranberg/citations // // This script requires jQuery and jQuery UI $(function() { // Inser html for dialog just before the button to open it var butt = document.getElementById('citations'); butt.insertAdjacentHTML('beforeBegin', '\ <div id="dialog" title="Cite this paper" style="text-align:left"> \ <p style="text-align: center;"><b>Copy and paste one of the formatted citations into your bibliography manager.</b></p> \ <table style="border-collapse:separate; border-spacing:2em"> \ <tr style="vertical-align:top;"> \ <td><strong>APA</strong></td> \ <td><span id="APA1"></span><span id="APA2"></span><span id="APA3"></span><span id="APA4" style="font-style: italic"></span></td> \ </tr> \ <tr style="vertical-align:top;"> \ <td><strong>Bibtex</strong></td> \ <td> \ @article{<span id="bibtag"></span>,<br> \ &nbsp;&nbsp;&nbsp;&nbsp;title={<span id="bibtitle"></span>},<br> \ &nbsp;&nbsp;&nbsp;&nbsp;author={<span id="bibauthor"></span>},<br> \ &nbsp;&nbsp;&nbsp;&nbsp;journal={<span id="bibjournal"></span>},<br> \ &nbsp;&nbsp;&nbsp;&nbsp;year={<span id="bibyear"></span>},<br> \ &nbsp;&nbsp;&nbsp;&nbsp;url={<span id="biburl"></span>},<br> \ } \ </td> \ </tr> \ </table> \ </div>'); // Definitions of citations dialog $("#dialog").dialog({ autoOpen: false, show: { effect: "fade", duration: 200 }, hide: { effect: "fade", duration: 200 }, maxWidth:600, maxHeight: 600, width: 660, height: 400, modal: true, }); // Open citation dialog on click $("#citations").click(function() { $("#dialog").dialog("open"); }); // Find authors var metas = document.getElementsByTagName('meta'); var author = '' // Determine number of authors var numAuthors = 0 for (i=0; i<metas.length; i++) { if (metas[i].getAttribute("name") == "citation_author") { numAuthors += 1 }; }; // Build a string of authors for Bibtex var authorIndex = 0 for (i=0; i<metas.length; i++) { if (metas[i].getAttribute("name") == "citation_author") { authorIndex += 1 if (authorIndex>1) { if (authorIndex<=numAuthors) { author = author+' and ' }; }; author = author+metas[i].getAttribute("content") }; }; // Populate formatted citations in Bibtex var title = $("meta[name='citation_title']").attr('content') // The following test might seem stupid, but it's needed because some php function at OpenPsych appends two whitespaces to the start of the title in the meta data if (title[1] == ' ') { title = title.slice(2) }; var journal = $("meta[name='citation_journal_title']").attr('content') var pubyear = $("meta[name='citation_publication_date']").attr('content').substring(0,4) var puburl = document.URL // Build a string for the Bibtex tag if (author.indexOf(',') < author.indexOf(' ')) { var firstAuthor = author.substr(0,author.indexOf(',')); } else { var firstAuthor = author.substr(0,author.indexOf(' ')); }; if (title.indexOf(',')<title.indexOf('0')) { var startTitle = title.substr(0,title.indexOf(',')); } else { var startTitle = title.substr(0,title.indexOf(' ')); }; $('#bibtag').html(firstAuthor+pubyear) $('#bibtitle').html(title) $('#bibauthor').html(author) $('#bibjournal').html(journal) $('#bibyear').html(pubyear) $('#biburl').html(puburl) //Build a string of authors for APA var author = '' var authorIndex = 0 for (i=0; i<metas.length; i++) { if (metas[i].getAttribute("name") == "citation_author") { authorIndex += 1 if (authorIndex>1) { if (authorIndex<numAuthors) { author = author+', ' }; }; if (authorIndex>1) { if (authorIndex===numAuthors) { author = author+', & ' }; }; // Check if author only has a single name if (metas[i].getAttribute("content").indexOf(', ')>0) { // Append author string with the surnames and first letter of next author's name author = author+metas[i].getAttribute("content").substr(0,metas[i].getAttribute("content").indexOf(', ')+3)+'.' // If the author has several names, append the first letter of these to the string if (metas[i].getAttribute("content").indexOf(', ') < metas[i].getAttribute("content").lastIndexOf(' ')-1) { var extraNames = metas[i].getAttribute("content").substr(metas[i].getAttribute("content").indexOf(', ')+2) var addNames = extraNames.substr(extraNames.indexOf(' ')) author = author+addNames.substr(addNames.indexOf(' ')) }; } else { author = author+metas[i].getAttribute("content") }; }; }; // Populate formatted citations in APA $('#APA1').html(author) $('#APA2').html(' ('+pubyear+').') $('#APA3').html(' '+title+'.') $('#APA4').html(' '+journal+'.') });
// # Ghost Configuration // Setup your Ghost install for various environments // Documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Production // When running Ghost in the wild, use the production environment // Configure your URL and mail settings here production: { url: 'http://my-ghost-blog.com', mail: {}, database: { client: 'sqlite3', connection: { filename: path.join(__dirname, '/content/data/ghost.db') }, debug: false }, server: { // Host to be passed to node's `net.Server#listen()` host: '127.0.0.1', // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT` port: '2368' } }, // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in RSS and email. // Change this to your Ghost blogs published URL. url: 'http://localhost:2368', // Example mail config // Visit http://support.ghost.org/mail for instructions // ``` mail: { transport: 'SMTP', options: { service: 'Gmail', auth: { user: 'thewanderingconsultant@gmail.com', // mailgun username pass: 'ghostblogwandering' // mailgun password } } }, //``` database: { client: 'sqlite3', connection: { filename: path.join(__dirname, '/content/data/ghost-dev.db') }, debug: false }, server: { // Host to be passed to node's `net.Server#listen()` host: '127.0.0.1', // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT` port: '2368' }, paths: { contentPath: path.join(__dirname, '/content/') } }, // **Developers only need to edit below here** // ### Testing // Used when developing Ghost to run tests and check the health of Ghost // Uses a different port number testing: { url: 'http://127.0.0.1:2369', database: { client: 'sqlite3', connection: { filename: path.join(__dirname, '/content/data/ghost-test.db') } }, server: { host: '127.0.0.1', port: '2369' }, logging: false }, // ### Testing MySQL // Used by Travis - Automated testing run through GitHub 'testing-mysql': { url: 'http://127.0.0.1:2369', database: { client: 'mysql', connection: { host : '127.0.0.1', user : 'root', password : '', database : 'ghost_testing', charset : 'utf8' } }, server: { host: '127.0.0.1', port: '2369' }, logging: false }, // ### Testing pg // Used by Travis - Automated testing run through GitHub 'testing-pg': { url: 'http://127.0.0.1:2369', database: { client: 'pg', connection: { host : '127.0.0.1', user : 'postgres', password : '', database : 'ghost_testing', charset : 'utf8' } }, server: { host: '127.0.0.1', port: '2369' }, logging: false } }; // Export config module.exports = config;
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const blink = keyframes` from, to { opacity: 1; } 50% { opacity: 0; } `; const CursorSpan = styled.span` font-weight: 100; color: black; font-size: 1em; padding-left: 2px; animation: ${blink} 1s step-end infinite; `; const Cursor = ({ className }) => ( <CursorSpan className={className}>|</CursorSpan> ); Cursor.propTypes = { className: PropTypes.string }; Cursor.defaultProps = { className: '' }; export default Cursor;
var test = require('tape'); var BSFS = require('../lib/bsfs'); indexedDB.deleteDatabase('bsfs-tests'); function randomId () { return Math.random().toString(36).substr(2) } test('bsfs exists', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function ready () { t.equals(typeof bsfs, 'object'); } }); test('bsfs has file router', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function ready () { t.equal(typeof bsfs._fileRouter, 'object'); } }); test('write without path throws', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function ready () { t.throws(function() { bsfs.createWriteStream(null, function() {}) }); } }); test('write file', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function ready () { var path = '/tmp/test-' + randomId(); var content = 'Hello cruel world ' + randomId(); var w = bsfs.createWriteStream(path, function(err, meta) { t.equal(err, null); }); w.end(content); } }); test('write then read file by key', function (t) { t.plan(1); var path = '/tmp/test-' + randomId(); var content = 'Hello cruel world ' + randomId(); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function readBack (key) { var r = bsfs.createReadStreamFromKey(key); var readContent = ''; r.on('data', function (chunk) { readContent += chunk; }); r.on('end', function () { t.equal(content, readContent); }); } function ready () { var w = bsfs.createWriteStream(path, function(err, meta) { readBack(meta.key); }); w.end(content); } }); test('write then read file by name', function (t) { t.plan(1); var content = 'Hello cruel world ' + randomId(); var path = '/tmp/test-' + randomId(); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function readBack (path) { var r = bsfs.createReadStream(path); var readContent = ''; r.on('data', function (chunk) { readContent += chunk; }); r.on('end', function () { t.equal(content, readContent); }); } function ready () { var w = bsfs.createWriteStream(path, function(err, meta) { readBack(path); }); w.end(content); } }); test('access', function (t) { t.test('is silent (for now)', function (t) { t.plan(3); var bsfs = new BSFS('bsfs-tests'); if (!bsfs.ready) return bsfs.once('ready', ready) else process.nextTick(ready); function ready () { bsfs.access(null, function (err) { t.ifError(err); }); bsfs.access('/tmp', function (err) { t.ifError(err); }); bsfs.access('/tmp', 2, function (err) { t.ifError(err); }); } }); t.test('throws on invalid callback argument', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs.ready) return bsfs.once('ready', ready) else process.nextTick(ready); function ready () { t.throws(function () { bsfs.access('/tmp/', 0, 'potatoe'); }) } }); }); test('accessSync', function (t) { t.test('is silent (for now)', function (t) { t.plan(2); var bsfs = new BSFS('bsfs-tests'); if (!bsfs.ready) return bsfs.once('ready', ready) else process.nextTick(ready); function ready () { t.ifError(bsfs.accessSync(randomId())); t.ifError(bsfs.accessSync()); } }) }); test('exists', function (t) { t.test('is true for all paths (for now)', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs.ready) return bsfs.once('ready', ready); else proccess.nextTick(ready); function ready () { bsfs.exists(randomId(), function (exists) { t.ok(exists); }); } }); }); test('existsSync', function (t) { t.test('throws on null path', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs.ready) return bsfs.once('ready', ready); else proccess.nextTick(ready); function ready () { t.throws(bsfs.existsSync()); } }); t.test('is true for all paths (for now)', function (t) { t.plan(2); var bsfs = new BSFS('bsfs-tests'); if (!bsfs.ready) return bsfs.once('ready', ready); else proccess.nextTick(ready); function ready () { t.ok(bsfs.existsSync(randomId())); t.ok(bsfs.existsSync()); } }); }); test('appendFile without path throws', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); else process.nextTick(ready); function ready () { t.throws(function () { bsfs.appendFile(null, function () {}); }); } });
'use strict'; angular.module('mean.system').directive('googleMaps', ['GoogleMaps', 'Global', function(GoogleMaps, Global) { return { restrict: 'E', template: '<div id="map" style="height: 600px; width: 100%;"></div>', controller: function() { var mapOptions; if ( GoogleMaps ) { mapOptions = { center: new GoogleMaps.LatLng(-34.397, 150.644), zoom: 14, mapTypeId: GoogleMaps.MapTypeId.ROADMAP }; Global.map = new GoogleMaps.Map(document.getElementById('map'), mapOptions); } } }; }]);
var express = require('../') , Router = express.Router , request = require('./support/http') , methods = require('methods') , assert = require('assert'); describe('Router', function(){ var router, app; beforeEach(function(){ router = new Router; app = express(); }) describe('.match(method, url, i)', function(){ it('should match based on index', function(){ router.route('get', '/foo', function(){}); router.route('get', '/foob?', function(){}); router.route('get', '/bar', function(){}); var method = 'GET'; var url = '/foo?bar=baz'; var route = router.match(method, url, 0); route.constructor.name.should.equal('Route'); route.method.should.equal('get'); route.path.should.equal('/foo'); var route = router.match(method, url, 1); route.path.should.equal('/foob?'); var route = router.match(method, url, 2); assert(!route); url = '/bar'; var route = router.match(method, url); route.path.should.equal('/bar'); }) }) describe('.matchRequest(req, i)', function(){ it('should match based on index', function(){ router.route('get', '/foo', function(){}); router.route('get', '/foob?', function(){}); router.route('get', '/bar', function(){}); var req = { method: 'GET', url: '/foo?bar=baz' }; var route = router.matchRequest(req, 0); route.constructor.name.should.equal('Route'); route.method.should.equal('get'); route.path.should.equal('/foo'); var route = router.matchRequest(req, 1); req._route_index.should.equal(1); route.path.should.equal('/foob?'); var route = router.matchRequest(req, 2); assert(!route); req.url = '/bar'; var route = router.matchRequest(req); route.path.should.equal('/bar'); }) }) describe('.middleware', function(){ it('should dispatch', function(done){ router.route('get', '/foo', function(req, res){ res.send('foo'); }); app.use(router.middleware); request(app) .get('/foo') .expect('foo', done); }) }) describe('.multiple callbacks', function(){ it('should throw if a callback is null', function(){ assert.throws(function () { router.route('get', '/foo', null, function(){}); }) }) it('should throw if a callback is undefined', function(){ assert.throws(function () { router.route('get', '/foo', undefined, function(){}); }) }) it('should throw if a callback is not a function', function(){ assert.throws(function () { router.route('get', '/foo', 'not a function', function(){}); }) }) it('should not throw if all callbacks are functions', function(){ router.route('get', '/foo', function(){}, function(){}); }) }) describe('.all', function() { it('should support using .all to capture all http verbs', function() { var router = new Router(); router.all('/foo', function(){}); var url = '/foo?bar=baz'; methods.forEach(function testMethod(method) { var route = router.match(method, url); route.constructor.name.should.equal('Route'); route.method.should.equal(method); route.path.should.equal('/foo'); }); }) }) })
import {Curve} from '../curve' export class Line extends Curve { constructor(p0, v) { super(); this.p0 = p0; this.v = v; this._pointsCache = new Map(); } intersectSurface(surface) { if (surface.isPlane) { const s0 = surface.normal.multiply(surface.w); return surface.normal.dot(s0.minus(this.p0)) / surface.normal.dot(this.v); // 4.7.4 } else { return super.intersectSurface(surface); } } intersectCurve(curve, surface) { if (curve.isLine && surface.isPlane) { const otherNormal = surface.normal.cross(curve.v)._normalize(); return otherNormal.dot(curve.p0.minus(this.p0)) / otherNormal.dot(this.v); // (4.8.3) } return super.intersectCurve(curve, surface); } parametricEquation(t) { return this.p0.plus(this.v.multiply(t)); } t(point) { return point.minus(this.p0).dot(this.v); } pointOfSurfaceIntersection(surface) { let point = this._pointsCache.get(surface); if (!point) { const t = this.intersectSurface(surface); point = this.parametricEquation(t); this._pointsCache.set(surface, point); } return point; } translate(vector) { return new Line(this.p0.plus(vector), this.v); } approximate(resolution, from, to, path) { } offset() {}; } Line.prototype.isLine = true; Line.fromTwoPlanesIntersection = function(plane1, plane2) { const n1 = plane1.normal; const n2 = plane2.normal; const v = n1.cross(n2)._normalize(); const pf1 = plane1.toParametricForm(); const pf2 = plane2.toParametricForm(); const r0diff = pf1.r0.minus(pf2.r0); const ww = r0diff.minus(n2.multiply(r0diff.dot(n2))); const p0 = pf2.r0.plus( ww.multiply( n1.dot(r0diff) / n1.dot(ww))); return new Line(p0, v); }; Line.fromSegment = function(a, b) { return new Line(a, b.minus(a)._normalize()); };
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; import PipelineRunNodeedges from './PipelineRunNodeedges'; /** * The PipelineRunNode model module. * @module model/PipelineRunNode * @version 1.1.2-pre.0 */ class PipelineRunNode { /** * Constructs a new <code>PipelineRunNode</code>. * @alias module:model/PipelineRunNode */ constructor() { PipelineRunNode.initialize(this); } /** * Initializes the fields of this object. * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ static initialize(obj) { } /** * Constructs a <code>PipelineRunNode</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/PipelineRunNode} obj Optional instance to populate. * @return {module:model/PipelineRunNode} The populated <code>PipelineRunNode</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new PipelineRunNode(); if (data.hasOwnProperty('_class')) { obj['_class'] = ApiClient.convertToType(data['_class'], 'String'); } if (data.hasOwnProperty('displayName')) { obj['displayName'] = ApiClient.convertToType(data['displayName'], 'String'); } if (data.hasOwnProperty('durationInMillis')) { obj['durationInMillis'] = ApiClient.convertToType(data['durationInMillis'], 'Number'); } if (data.hasOwnProperty('edges')) { obj['edges'] = ApiClient.convertToType(data['edges'], [PipelineRunNodeedges]); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('result')) { obj['result'] = ApiClient.convertToType(data['result'], 'String'); } if (data.hasOwnProperty('startTime')) { obj['startTime'] = ApiClient.convertToType(data['startTime'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } } return obj; } } /** * @member {String} _class */ PipelineRunNode.prototype['_class'] = undefined; /** * @member {String} displayName */ PipelineRunNode.prototype['displayName'] = undefined; /** * @member {Number} durationInMillis */ PipelineRunNode.prototype['durationInMillis'] = undefined; /** * @member {Array.<module:model/PipelineRunNodeedges>} edges */ PipelineRunNode.prototype['edges'] = undefined; /** * @member {String} id */ PipelineRunNode.prototype['id'] = undefined; /** * @member {String} result */ PipelineRunNode.prototype['result'] = undefined; /** * @member {String} startTime */ PipelineRunNode.prototype['startTime'] = undefined; /** * @member {String} state */ PipelineRunNode.prototype['state'] = undefined; export default PipelineRunNode;
class Client { constructor(http_client){ this.http_client = http_client this.method_list = [] } xyz() { return this.http_client } } function chainable_client () { HttpClient = require('./http_client.js') http_client = new HttpClient(arguments[0]) chainable_method = require('./chainable_method.js') return chainable_method(new Client(http_client), true) } module.exports = chainable_client
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var core_1 = require("@angular/core"); var http_1 = require("@angular/http"); var RegService = (function () { function RegService(_http) { this._http = _http; } RegService.prototype.ngOnInit = function () { }; RegService.prototype.getUsers = function () { return this._http.get('http://ankitesh.pythonanywhere.com/api/v1.0/get_books_data') .map(function (response) { return response.json(); }); }; RegService.prototype.regUser = function (User) { var payload = JSON.stringify({ payload: { "Username": User.Username, "Email_id": User.Email_id, "Password": User.Password } }); return this._http.post('http://ankitesh.pythonanywhere.com/api/v1.0/get_book_summary', payload) .map(function (response) { return response.json(); }); }; return RegService; }()); RegService = __decorate([ core_1.Injectable(), __metadata("design:paramtypes", [http_1.Http]) ], RegService); exports.RegService = RegService; //# sourceMappingURL=register.service.js.map
/* * measured-elasticsearch * * Copyright (c) 2015 Maximilian Antoni <mail@maxantoni.de> * * @license MIT */ 'use strict'; exports.index = 'metrics-1970.01'; exports.timestamp = '1970-01-01T00:00:00.000Z'; function header(type) { return { index : { _type : type} }; } exports.headerCounter = header('counter'); exports.headerTimer = header('timer'); exports.headerMeter = header('meter'); exports.headerHistogram = header('histogram'); exports.headerGauge = header('gauge');
PLANT_CONFIG = [ {key: 'name', label: 'Name'}, {key: 'scienceName', label: 'Scientific name'} ]; Template.plants.helpers({ plantListConfig: function() { return PLANT_CONFIG; } }); Template.newPlant.helpers({ plantListConfig: function() { return PLANT_CONFIG; } }); Template.newPlant.events({ 'submit .newPlantForm': function(event) { event.preventDefault(); var data = {name:'',scienceName:''}; PLANT_CONFIG.forEach(function(entry){ var $input = $(event.target).find("[name='" + entry.key + "']"); if($input.val()) { data[entry.key] = $input.val(); } }); Meteor.call('createPlant', data); PLANT_CONFIG.forEach(function(entry){ $(event.target).find("[name='" + entry.key + "']").val(''); }); } }); Template.plantListItem.events({ 'click .plant-delete': function(){ Meteor.call('deletePlant', this._id); } });
$(document).ready(function(){$window=$(window);$('header[data-type="background"]').each(function(){var e=$(this);$(window).scroll(function(){var t=-($window.scrollTop()/e.data("speed"));var n="50% "+t+"px";e.css({backgroundPosition:n})})})})
a === b
module.exports = { devTemplates: { files: [{ expand: true, cwd: '<%= appConfig.rutatemplates %>', dest:'<%= appConfig.rutadev %>/html', src: ['**/*'] }] }, devImages: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/img', dest:'<%= appConfig.rutadev %>/img', filter: 'isFile', src: [ '!spr*', '!base64', '*' ] }] }, devGeneratedSprites: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/img/spr', dest:'<%= appConfig.rutadev %>/img/spr', filter: 'isFile', src: ['**/*'] }] }, devCSS: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/css', dest:'<%= appConfig.rutadev %>/css', filter: 'isFile', src: ['**/*'] }] }, devJs: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/js', dest:'<%= appConfig.rutadev %>/js', src: ['**/*'] }] }, devTests: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/test', dest:'<%= appConfig.rutadev %>/test', src: ['**/*'] }] }, proTemplates: { files: [{ expand: true, cwd: '<%= appConfig.rutatemplates %>', dest:'<%= appConfig.rutapro %>/html', src: ['**/*'] }] }, proImages: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/img', dest:'<%= appConfig.rutapro %>/img', filter: 'isFile', src: [ '!spr*', '!base64', '*' ] }] }, proGeneratedSprites: { files: [{ expand: true, cwd: '<%= appConfig.rutaapp %>/img/spr', dest:'<%= appConfig.rutapro %>/img/spr', filter: 'isFile', src: ['**/*'] }] } };
const pug = require("pug"); const pugRuntimeWrap = require("pug-runtime/wrap"); const path = require("path"); const YAML = require("js-yaml"); const getCodeBlock = require("pug-code-block"); const detectIndent = require("detect-indent"); const rebaseIndent = require("rebase-indent"); const pugdocArguments = require("./arguments"); const MIXIN_NAME_REGEX = /^mixin +([-\w]+)?/; const DOC_REGEX = /^\s*\/\/-\s+?\@pugdoc\s*$/; const DOC_STRING = "//- @pugdoc"; const CAPTURE_ALL = "all"; const CAPTURE_SECTION = "section"; const EXAMPLE_BLOCK = "block"; /** * Returns all pugdoc comment and code blocks for the given code * * @param templateSrc {string} * @return {{lineNumber: number, comment: string, code: string}[]} */ function extractPugdocBlocks(templateSrc) { return ( templateSrc .split("\n") // Walk through every line and look for a pugdoc comment .map(function (line, lineIndex) { // If the line does not contain a pugdoc comment skip it if (!line.match(DOC_REGEX)) { return undefined; } // If the line contains a pugdoc comment return // the comment block and the next code block const comment = getCodeBlock.byLine(templateSrc, lineIndex + 1); const meta = parsePugdocComment(comment); // add number of captured blocks if (meta.capture <= 0) { return undefined; } let capture = 2; if (meta.capture) { if (meta.capture === CAPTURE_ALL) { capture = Infinity; } else if (meta.capture === CAPTURE_SECTION) { capture = Infinity; } else { capture = meta.capture + 1; } } // get all code blocks let code = getCodeBlock.byLine(templateSrc, lineIndex + 1, capture); // make string if (Array.isArray(code)) { // remove comment code.shift(); // join all code code = code.join("\n"); } else { return undefined; } // filter out all but current pugdoc section if (meta.capture === CAPTURE_SECTION) { const nextPugDocIndex = code.indexOf(DOC_STRING); if (nextPugDocIndex > -1) { code = code.substr(0, nextPugDocIndex); } } // if no code and no comment, skip if (comment.match(DOC_REGEX) && code === "") { return undefined; } return { lineNumber: lineIndex + 1, comment: comment, code: code, }; }) // Remove skiped lines .filter(function (result) { return result !== undefined; }) ); } /** * Returns all pugdocDocuments for the given code * * @param templateSrc {string} * @param filename {string} */ function getPugdocDocuments(templateSrc, filename, locals) { return extractPugdocBlocks(templateSrc).map(function (pugdocBlock) { const meta = parsePugdocComment(pugdocBlock.comment); const fragments = []; // parse jsdoc style arguments list if (meta.arguments) { meta.arguments = meta.arguments.map(function (arg) { return pugdocArguments.parse(arg, true); }); } // parse jsdoc style attributes list if (meta.attributes) { meta.attributes = meta.attributes.map(function (arg) { return pugdocArguments.parse(arg, true); }); } let source = pugdocBlock.code; source = source.replace(/\u2028|\u200B/g, ""); if (meta.example && meta.example !== false) { if (meta.beforeEach) { meta.example = `${meta.beforeEach}\n${meta.example}`; } if (meta.afterEach) { meta.example = `${meta.example}\n${meta.afterEach}`; } } // get example objects and add them to parent example // also return them as separate pugdoc blocks if (meta.examples) { for (let i = 0, l = meta.examples.length; i < l; ++i) { let x = meta.examples[i]; // do nothing for simple examples if (typeof x === "string") { if (meta.beforeEach) { meta.examples[i] = `${meta.beforeEach}\n${x}`; } if (meta.afterEach) { meta.examples[i] = `${x}\n${meta.afterEach}`; } continue; } if (meta.beforeEach && typeof x.beforeEach === "undefined") { x.example = `${meta.beforeEach}\n${x.example}`; } if (meta.afterEach && typeof x.afterEach === "undefined") { x.example = `${x.example}\n${meta.afterEach}`; } // merge example/examples with parent examples meta.examples[i] = getExamples(x).reduce( (acc, val) => acc.concat(val), [] ); // add fragments fragments.push(x); } meta.examples = meta.examples.reduce((acc, val) => acc.concat(val), []); } // fix pug compilation for boolean use of example const exampleClone = meta.example; if (typeof meta.example === "boolean") { meta.example = ""; } const obj = { // get meta meta: meta, // add file path file: path.relative(".", filename), // get pug code block matching the comments indent source: source, // get html output output: compilePug(source, meta, filename, locals), }; // remove output if example = false if (exampleClone === false) { obj.output = null; } // add fragments if (fragments && fragments.length) { obj.fragments = fragments.map((subexample) => { return { // get meta meta: subexample, // get html output output: compilePug(source, subexample, filename, locals), }; }); } if (obj.output || obj.fragments) { return obj; } return null; }); } /** * Extract pug attributes from comment block */ function parsePugdocComment(comment) { // remove first line (@pugdoc) if (comment.indexOf("\n") === -1) { return {}; } comment = comment.substr(comment.indexOf("\n")); comment = pugdocArguments.escapeArgumentsYAML(comment, "arguments"); comment = pugdocArguments.escapeArgumentsYAML(comment, "attributes"); // parse YAML return YAML.safeLoad(comment) || {}; } /** * get all examples from the meta object * either one or both of meta.example and meta.examples can be given */ function getExamples(meta) { let examples = []; if (meta.example) { examples = examples.concat(meta.example); } if (meta.examples) { examples = examples.concat(meta.examples); } return examples; } /** * Compile Pug */ function compilePug(src, meta, filename, locals) { let newSrc = [src]; // add example calls getExamples(meta).forEach(function (example, i) { // append to pug if it's a mixin example if (MIXIN_NAME_REGEX.test(src)) { newSrc.push(example); // replace example block with src } else { if (i === 0) { newSrc = []; } const lines = example.split("\n"); lines.forEach(function (line) { if (line.trim() === EXAMPLE_BLOCK) { const indent = detectIndent(line).indent.length; line = rebaseIndent(src.split("\n"), indent).join("\n"); } newSrc.push(line); }); } }); newSrc = newSrc.join("\n"); locals = Object.assign({}, locals, meta.locals); // compile pug const compiled = pug.compileClient(newSrc, { name: "tmp", externalRuntime: true, filename: filename, }); try { const templateFunc = pugRuntimeWrap(compiled, "tmp"); return templateFunc(locals || {}); } catch (err) { try { const compiledDebug = pug.compileClient(newSrc, { name: "tmp", externalRuntime: true, filename: filename, compileDebug: true, }); const templateFuncDebug = pugRuntimeWrap(compiledDebug, "tmp"); templateFuncDebug(locals || {}); } catch (debugErr) { process.stderr.write( `\n\nPug-doc error: ${JSON.stringify(meta, null, 2)}` ); process.stderr.write(`\n\n${debugErr.toString()}`); return null; } } } // Exports module.exports = { extractPugdocBlocks: extractPugdocBlocks, getPugdocDocuments: getPugdocDocuments, parsePugdocComment: parsePugdocComment, getExamples: getExamples, };
module.exports.up=function(onSuccess,onFailed){ var dbo=new entity.Base(); dbo.saveToDB("recipe_drink",["recipe_code","drink_code","quantity","description"], [ ["3622","342",9.83,"1/3 shot Southern Comfort "], ["3622","315",9.83,"1/3 shot Grand Marnier "], ["3622","375",9.83,"1/3 shot Amaretto "], ["3622","445",3.7,"1 splash Orange juice "], ["3622","261",3.7,"1 splash Pineapple juice "], ["3622","82",0.9,"1 dash Grenadine "], ["3622","22",3.7,"1 splash 7-Up "], ["4511","333",30,"1 oz white Creme de Cacao "], ["4511","316",30,"1 oz Vodka "], ["1736","479",7.5,"1/4 oz Galliano "], ["1736","480",7.5,"1/4 oz Irish cream "], ["1736","378",7.5,"1/4 oz Scotch "], ["1736","462",7.5,"1/4 oz Tequila "], ["2420","365",15,"1/2 oz Absolut Kurant "], ["2420","315",7.5,"1/4 oz Grand Marnier "], ["2420","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["2420","146",7.5,"1/4 oz Midori melon liqueur "], ["2420","36",7.5,"1/4 oz Malibu rum "], ["2420","375",7.5,"1/4 oz Amaretto "], ["2420","372",15,"1/2 oz Cranberry juice "], ["2420","261",7.5,"1/4 oz Pineapple juice "], ["2434","94",480,"16 oz Lager "], ["2434","462",150,"1.5 oz Tequila "], ["2395","36",15,"1/2 oz Malibu rum "], ["2395","214",15,"1/2 oz Light rum (Bacardi) "], ["2395","85",15,"1/2 oz Bacardi 151 proof rum "], ["2395","487",30,"1 oz Dark Creme de Cacao "], ["2395","359",30,"1 oz Cointreau "], ["2395","259",90,"3 oz Milk "], ["2395","417",30,"1 oz Coconut liqueur "], ["2395","503",257,"1 cup Vanilla ice-cream "], ["3794","115",15,"1/2 oz Goldschlager "], ["3794","108",15,"1/2 oz J�germeister "], ["3794","145",15,"1/2 oz Rumple Minze "], ["3794","85",15,"1/2 oz Bacardi 151 proof rum "], ["4753","365",30,"1 oz Absolut Kurant "], ["4753","312",30,"1 oz Absolut Citron "], ["4753","40",30,"1 oz Sour Apple Pucker "], ["4753","34",30,"1 oz Blue Maui "], ["2366","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["2366","232",14.75,"1/2 shot Wild Turkey, 101 proof "], ["1671","122",10,"1/3 oz Jack Daniels "], ["1671","263",10,"1/3 oz Johnnie Walker "], ["1671","471",10,"1/3 oz Jim Beam "], ["3798","304",15,"1/2 oz Rum "], ["3798","416",15,"1/2 oz Grape juice "], ["3798","316",15,"1/2 oz Vodka "], ["3798","376",15,"1/2 oz Gin "], ["3798","297",15,"1/2 oz Blue Curacao "], ["3798","266",15,"1/2 oz Sour mix "], ["3798","186",15,"1/2 oz Lime juice "], ["3798","404",15,"1/2 oz Grapefruit juice "], ["5334","391",45,"1 1/2 oz Vanilla vodka (Stoli) "], ["5334","376",10,"1/3 oz Gin "], ["5334","213",10,"1/3 oz Triple sec "], ["5334","462",10,"1/3 oz Tequila "], ["5334","132",15,"1/2 oz Cinnamon schnapps (Goldschlager) "], ["5334","445",180,"6 oz pulp-free Orange juice "], ["4476","132",15,"1/2 oz Cinnamon schnapps (Goldschlager) "], ["4476","202",15,"1/2 oz Gold tequila (Cuervo) "], ["5340","309",9.83,"1/3 shot Peach schnapps "], ["5340","265",9.83,"1/3 shot Kahlua "], ["5340","316",9.83,"1/3 shot Vodka (Skyy) "], ["5340","82",3.7,"1 splash Grenadine "], ["2897","261",90,"3 oz Pineapple juice "], ["2897","323",90,"3 oz Sprite "], ["2897","85",30,"1 oz Bacardi 151 proof rum "], ["2897","342",30,"1 oz Southern Comfort "], ["2897","71",30,"1 oz Everclear "], ["3590","376",60,"2 oz dry Gin (Gordon's) "], ["3590","22",120,"4 oz 7-Up "], ["3590","424",2250,"0.75 oz Lemon juice "], ["1836","316",15,"1/2 oz Vodka (Finlandia) "], ["1836","376",15,"1/2 oz Gin (Tanqueray) "], ["1836","335",15,"1/2 oz Spiced rum (Captain Morgan's) "], ["1836","213",15,"1/2 oz Triple sec (Bandolero) "], ["1836","261",45,"1 1/2 oz Pineapple juice "], ["1836","82",15,"1/2 oz Grenadine "], ["1836","323",3.7,"Top with 1 splash Sprite or 7-Up "], ["4904","297",10,"1/3 oz Blue Curacao "], ["4904","358",10,"1/3 oz Ouzo "], ["4904","227",10,"1/3 oz Banana liqueur "], ["3793","108",30,"1 oz J�germeister "], ["3793","115",30,"1 oz Goldschlager "], ["3793","444",30,"1 oz Hot Damn "], ["3793","145",30,"1 oz Rumple Minze "], ["4754","503",120,"4 oz Vanilla ice-cream "], ["4754","316",120,"4 oz Vodka (Popov) "], ["4754","476",60,"2 oz Pepsi Cola "], ["4754","396",60,"2 oz Orange soda "], ["4421","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["4421","487",7.5,"1/4 oz Dark Creme de Cacao "], ["4421","316",30,"1 oz Vodka "], ["4421","259",30,"1 oz Milk "], ["1277","312",60,"2 oz Absolut Citron "], ["1277","166",15,"1/2 oz Orange Curacao "], ["1277","269",3.7,"1 splash Strawberry liqueur "], ["1277","445",30,"1 oz Orange juice "], ["6132","214",22.25,"1/2 jigger Light rum "], ["6132","387",22.25,"1/2 jigger Dark rum "], ["6132","355",240,"8 oz Passion fruit juice "], ["6132","261",120,"4 oz Pineapple juice "], ["6129","146",30,"1 oz Midori melon liqueur "], ["6129","322",15,"1/2 oz Peachtree schnapps "], ["6129","323",150,"5 oz Sprite or 7-Up "], ["2322","368",30,"1 oz Sloe gin "], ["2322","375",30,"1 oz Amaretto "], ["5417","468",30,"1 oz Coconut rum "], ["5417","375",15,"1/2 oz Amaretto "], ["5417","445",120,"4 oz Orange juice "], ["5417","82",15,"1/2 oz Grenadine "], ["3919","316",30,"1 oz Vodka "], ["3919","309",30,"1 oz Peach schnapps "], ["3919","445",90,"3 oz Orange juice "], ["3919","372",90,"3 oz Cranberry juice "], ["5486","265",30,"1 oz Kahlua "], ["5486","375",15,"1/2 oz Amaretto "], ["5486","469",15,"Float 1/2 oz Creme de Almond "], ["2","372",60,"2 oz Cranberry juice "], ["2","443",60,"2 oz Soda water "], ["2","146",150,"0.5 oz Midori melon liqueur "], ["2","10",150,"0.5 oz Creme de Banane "], ["3360","423",45,"1 1/2 oz Applejack "], ["3360","404",30,"1 oz Grapefruit juice "], ["5","387",45,"1 1/2 oz Dark rum "], ["5","14",60,"2 oz Peach nectar "], ["5","445",90,"3 oz Orange juice "], ["5994","376",60,"2 oz Gin "], ["5994","88",15,"1/2 oz Dry Vermouth "], ["5994","245",0.63,"1/8 tsp Absinthe "], ["5000","365",22.5,"3/4 oz Absolut Kurant "], ["5000","146",22.5,"3/4 oz Midori melon liqueur "], ["5000","372",30,"1 oz Cranberry juice "], ["5000","323",3.7,"1 splash Sprite or 7-up "], ["1902","119",45,"1 1/2 oz Absolut Vodka "], ["1902","309",15,"1/2 oz Peach schnapps "], ["1902","417",15,"1/2 oz Coconut liqueur "], ["1902","372",45,"1 1/2 oz Cranberry juice cocktail "], ["1902","261",45,"1 1/2 oz Pineapple juice "], ["2452","182",30,"1 oz Crown Royal "], ["2452","365",15,"1/2 oz Absolut Kurant "], ["2452","309",15,"1/2 oz Peach schnapps "], ["2452","372",3.7,"1 splash Cranberry juice "], ["2452","261",3.7,"1 splash Pineapple juice "], ["1775","119",15,"1/2 oz Absolut Vodka "], ["1775","36",15,"1/2 oz Malibu rum "], ["1775","309",15,"1/2 oz Peach schnapps "], ["1775","445",30,"1 oz Orange juice "], ["1775","261",30,"1 oz Pineapple juice "], ["1775","372",30,"1 oz Cranberry juice "], ["6117","312",20,"2 cl Absolut Citron "], ["6117","269",20,"2 cl Strawberry liqueur (Liviko) "], ["6117","424",40,"4 cl Lemon juice "], ["6117","82",10,"1 cl Grenadine "], ["6117","323",120,"12 cl Sprite "], ["5153","119",30,"1 oz Absolut Vodka "], ["5153","342",30,"1 oz Southern Comfort "], ["5153","462",30,"1 oz Tequila "], ["5153","54",30,"1 oz Chambord raspberry liqueur "], ["5153","213",30,"1 oz Triple sec "], ["5153","261",45,"1 1/2 oz Pineapple juice "], ["5153","372",45,"1 1/2 oz Cranberry juice "], ["5460","316",40,"4 cl Vodka "], ["5460","88",20,"2 cl Dry Vermouth "], ["5460","462",40,"4 cl Tequila "], ["5460","22",30,"3 cl 7-Up "], ["5460","342",20,"2 cl Southern Comfort "], ["3844","445",15,"1/2 oz Orange juice "], ["3844","78",15,"1/2 oz Absolut Mandrin "], ["5540","227",15,"1/2 oz Banana liqueur (99 banana) "], ["5540","153",15,"1/2 oz Watermelon liqueur "], ["5540","316",15,"1/2 oz Vodka (Absolut) "], ["2194","145",7.5,"1/4 oz Rumple Minze "], ["2194","270",7.5,"1/4 oz Bailey's irish cream "], ["2194","114",7.5,"1/4 oz Butterscotch schnapps "], ["2194","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["2194","422",3.7,"1 splash Cream "], ["5936","70",390,"13 oz Snapple Rain "], ["5936","226",210,"7 oz Bacardi Limon "], ["2027","85",30,"1 oz Bacardi 151 proof rum "], ["2027","232",30,"1 oz Wild Turkey, 101 proof "], ["4536","387",60,"2 oz Dark rum "], ["4536","424",30,"1 oz Lemon juice "], ["4536","82",5,"1 tsp Grenadine "], ["4069","265",30,"1 oz Kahlua "], ["4069","462",30,"1 oz Tequila "], ["5611","376",30,"1 oz Gin "], ["5611","214",30,"1 oz Light rum "], ["5611","462",240,"0.8 oz Tequila "], ["5611","316",30,"1 oz Vodka "], ["5611","297",150,"1.5 oz Blue Curacao "], ["5611","211",60,"2 oz Sweet and sour "], ["5611","323",30,"1 oz Sprite "], ["5629","316",30,"1 oz Vodka "], ["5629","376",30,"1 oz Gin "], ["5629","142",30,"1 oz White rum "], ["5629","297",30,"1 oz Blue Curacao "], ["5629","266",180,"6 oz Sour mix "], ["5629","22",180,"6 oz 7-Up "], ["3264","316",15,"1/2 oz Vodka "], ["3264","304",15,"1/2 oz Rum "], ["3264","462",15,"1/2 oz Tequila "], ["3264","376",15,"1/2 oz Gin "], ["3264","297",15,"1/2 oz Blue Curacao "], ["3264","266",60,"2 oz Sour mix "], ["3264","22",60,"2 oz 7-Up "], ["9","383",22.5,"3/4 oz Sweet Vermouth "], ["9","105",45,"1 1/2 oz dry Sherry "], ["9","433",0.9,"1 dash Orange bitters "], ["4731","265",10,"1/3 oz Kahlua "], ["4731","270",10,"1/3 oz Bailey's irish cream "], ["4731","205",10,"1/3 oz White Creme de Menthe "], ["2313","213",30,"1 oz Triple sec "], ["2313","231",30,"1 oz Apricot brandy "], ["2313","424",2.5,"1/2 tsp Lemon juice "], ["4082","316",30,"1 oz Vodka (Absolut) "], ["4082","131",15,"1/2 oz Tabasco sauce "], ["1831","198",14.75,"1/2 shot Aftershock "], ["1831","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["3827","198",30,"1 oz Aftershock "], ["3827","464",30,"1 oz Avalanche Peppermint schnapps "], ["1302","62",30,"1 oz Yukon Jack "], ["1302","471",30,"1 oz Jim Beam "], ["1302","449",30,"1 oz Apple schnapps "], ["1302","316",30,"1 oz Vodka "], ["1302","214",30,"1 oz Light rum "], ["1302","213",30,"1 oz Triple sec "], ["1302","82",15,"1/2 oz Grenadine "], ["1302","445",60,"2 oz Orange juice "], ["3310","381",50,"5 cl Drambuie "], ["3310","36",50,"5 cl Malibu rum "], ["3310","179",50,"5 cl Cherry brandy "], ["3310","2",100,"10 cl Lemonade "], ["2383","378",45,"1 1/2 oz Scotch "], ["2383","265",15,"1/2 oz Kahlua "], ["2383","155",15,"1/2 oz Heavy cream "], ["4837","342",60,"2 oz Southern Comfort "], ["4837","464",30,"1 oz Peppermint schnapps "], ["4837","316",30,"1 oz Vodka "], ["4837","441",240,"8 oz Fruit punch "], ["4837","186",30,"1 oz Lime juice "], ["5192","342",30,"1 oz Southern Comfort "], ["5192","375",30,"1 oz Amaretto "], ["5192","368",15,"1/2 oz Sloe gin "], ["5192","424",0.9,"1 dash Lemon juice "], ["13","85",30,"1 oz 151 proof rum "], ["13","462",30,"1 oz Tequila "], ["13","342",30,"1 oz Southern Comfort "], ["13","464",30,"1 oz Peppermint schnapps "], ["13","392",360,"12 oz Beer "], ["2278","462",45,"1 1/2 oz Tequila "], ["2278","445",30,"1 oz Orange juice "], ["2278","261",15,"1/2 oz Pineapple juice "], ["2278","388",3.7,"1 splash Lemon-lime soda "], ["14","62",14.75,"1/2 shot Yukon Jack "], ["14","375",14.75,"1/2 shot Amaretto "], ["4071","376",60,"2 oz Gin "], ["4071","207",15,"1/2 oz Yellow Chartreuse "], ["4071","433",0.9,"1 dash Orange bitters "], ["5539","316",60,"2 oz Stefanoffs Vodka "], ["5539","59",30,"1 oz Fanta "], ["5539","323",150,"0.5 oz Sprite "], ["5539","100",150,"0.5 oz Kiwi juice , concentrate "], ["2304","376",20,"2 cl Gin "], ["2304","333",20,"2 cl Creme de Cacao "], ["2304","422",20,"2 cl Cream "], ["18","376",45,"1 1/2 oz Gin "], ["18","15",30,"1 oz Green Creme de Menthe "], ["18","155",30,"1 oz Heavy cream "], ["18","20",0.63,"1/8 tsp grated Nutmeg "], ["15","376",60,"2 oz Gin "], ["15","297",15,"1/2 oz Blue Curacao "], ["15","155",15,"1/2 oz Heavy cream "], ["1370","316",15,"1/2 oz Vodka "], ["1370","274",15,"1/2 oz Melon liqueur "], ["1370","221",15,"1/2 oz Raspberry schnapps "], ["1370","297",15,"1/2 oz Blue Curacao "], ["1370","211",60,"2 oz Sweet and sour "], ["1370","22",60,"2 oz 7-Up "], ["21","56",45,"1 1/2 oz Blended whiskey "], ["21","88",30,"1 oz Dry Vermouth "], ["21","261",30,"1 oz Pineapple juice "], ["1002","82",10,"1 cl Grenadine syrup "], ["1002","445",10,"1 cl Orange juice "], ["1002","261",20,"2 cl Pineapple juice "], ["1002","422",40,"4 cl Cream "], ["3130","316",7.5,"1/4 oz Vodka (Absolut) "], ["3130","146",7.5,"1/4 oz Midori melon liqueur "], ["3130","36",7.5,"1/4 oz Malibu rum "], ["3130","261",7.5,"1/4 oz Pineapple juice "], ["5184","375",29.5,"1 shot Amaretto "], ["5184","315",29.5,"1 shot Grand Marnier "], ["5184","342",29.5,"1 shot Southern Comfort "], ["1903","114",15,"1/2 oz Butterscotch schnapps "], ["1903","270",7.5,"1/4 oz Bailey's irish cream "], ["1903","146",7.5,"1/4 oz Midori melon liqueur "], ["4658","249",30,"1 oz Bourbon "], ["4658","342",30,"1 oz Southern Comfort "], ["4658","175",60,"2 oz Coca-Cola "], ["1510","36",15,"1/2 oz Malibu rum "], ["1510","265",15,"1/2 oz Kahlua "], ["1510","316",15,"1/2 oz Vodka "], ["1510","487",15,"1/2 oz Dark Creme de Cacao "], ["1510","261",120,"4 oz Pineapple juice "], ["1510","266",60,"2 oz Sour mix "], ["4176","122",15,"1/2 oz Jack Daniels "], ["4176","368",10,"1/3 oz Sloe gin "], ["4176","274",10,"1/3 oz Melon liqueur "], ["4176","261",10,"1/3 oz Pineapple juice "], ["23","88",30,"1 oz Dry Vermouth "], ["23","376",30,"1 oz Gin "], ["23","360",2.5,"1/2 tsp Kummel "], ["2034","146",10,"1/3 oz Midori melon liqueur "], ["2034","309",10,"1/3 oz Peach schnapps "], ["2034","342",10,"1/3 oz Southern Comfort "], ["2034","375",10,"1/3 oz Amaretto "], ["2034","211",3.7,"1 splash Sweet and sour "], ["2764","375",22.5,"3/4 oz Amaretto "], ["2764","487",15,"1/2 oz Dark Creme de Cacao "], ["2764","482",240,"8 oz Coffee (hot) "], ["5675","475",30,"1 oz Sambuca "], ["5675","375",15,"1/2 oz Amaretto "], ["3348","375",15,"1/2 oz Amaretto "], ["3348","333",15,"1/2 oz white Creme de Cacao "], ["3348","41",60,"2 oz Light cream "], ["4468","365",7.5,"1-1/4 oz Absolut Kurant "], ["4468","375",22.5,"3/4 oz Amaretto "], ["4468","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["4468","261",3.7,"1 splash Pineapple juice "], ["4468","372",3.7,"1 splash Cranberry juice "], ["5215","464",60,"2 oz Peppermint schnapps "], ["5215","323",360,"12 oz Sprite "], ["26","375",45,"1 1/2 oz Amaretto "], ["26","41",45,"1 1/2 oz Light cream "], ["1587","375",45,"1 1/2 oz Amaretto "], ["1587","266",90,"3 oz Sour mix "], ["29","375",45,"1 1/2 oz Amaretto "], ["29","205",22.5,"3/4 oz White Creme de Menthe "], ["2561","375",45,"1 1/2 oz Amaretto "], ["2561","445",120,"4 oz Orange juice "], ["2561","266",120,"4 oz Sour mix "], ["4445","445",120,"4 oz Orange juice "], ["4445","375",29.5,"1 shot Amaretto "], ["4445","82",14.75,"1/2 shot Grenadine "], ["4445","427",128.5,"1/2 cup Ice cubes "], ["4445","424",5,"1 tsp Lemon juice "], ["3204","375",10,"1 cl Amaretto "], ["3204","445",120,"4 oz Orange juice "], ["3204","82",2.5,"1/4 cl Grenadine "], ["2869","450",22.5,"3/4 oz Rye whiskey "], ["2869","375",7.5,"1/4 oz Amaretto "], ["33","192",30,"1 oz Brandy "], ["33","88",15,"1/2 oz Dry Vermouth "], ["33","205",1.25,"1/4 tsp White Creme de Menthe "], ["33","445",30,"1 oz Orange juice "], ["33","82",5,"1 tsp Grenadine "], ["33","451",15,"1/2 oz Tawny port "], ["4422","265",7.5,"1/4 oz Kahlua "], ["4422","375",7.5,"1/4 oz Amaretto "], ["4422","167",7.5,"1/4 oz Frangelico "], ["4422","487",7.5,"1/4 oz Dark Creme de Cacao "], ["1899","387",150,"0.5 oz Dark rum "], ["1899","214",150,"0.5 oz Light rum "], ["1899","261",60,"2 oz Pineapple juice "], ["1899","445",60,"2 oz Orange juice "], ["1899","82",3.7,"1 splash Grenadine "], ["1626","214",15,"1/2 oz Light rum "], ["1626","105",45,"1 1/2 oz dry Sherry "], ["1626","192",15,"1/2 oz Brandy "], ["4816","231",15,"1/2 oz Apricot brandy "], ["4816","448",15,"1/2 oz Apple brandy "], ["4816","376",30,"1 oz Gin "], ["36","333",7.5,"1/4 oz white Creme de Cacao "], ["36","368",7.5,"1/4 oz Sloe gin "], ["36","192",7.5,"1/4 oz Brandy "], ["36","41",7.5,"1/4 oz Light cream "], ["4575","85",60,"2 oz 151 proof rum "], ["4575","179",30,"1 oz Cherry brandy "], ["4575","186",30,"1 oz fresh Lime juice "], ["4575","357",5,"1 tsp Sugar syrup (optional) "], ["2161","32",10,"2 tsp Cherry Kool-Aid "], ["2161","304",60,"2 oz Rum (Bacardi) "], ["2161","199",180,"6 oz Mountain Dew "], ["39","448",30,"1 oz Apple brandy "], ["39","213",15,"1/2 oz Triple sec "], ["39","28",30,"1 oz Dubonnet Rouge "], ["3133","316",60,"2 oz Smirnoff Vodka "], ["3133","459",10,"2 tsp Lemon-lime mix "], ["3133","352",257,"1 cup Water "], ["1895","316",15,"1/2 oz Vodka "], ["1895","297",15,"1/2 oz Blue Curacao "], ["1895","85",15,"1/2 oz Bacardi 151 proof rum "], ["1895","464",15,"1/2 oz Peppermint schnapps "], ["4554","146",60,"2 oz Midori melon liqueur "], ["4554","297",30,"1 oz Blue Curacao "], ["4554","316",15,"1/2 oz Vodka "], ["4554","342",15,"1/2 oz Southern Comfort "], ["4554","375",15,"1/2 oz Amaretto "], ["4554","261",7.5,"1/4 oz Pineapple juice "], ["4554","266",7.5,"1/4 oz Sour mix "], ["4554","404",7.5,"1/4 oz Grapefruit juice "], ["2275","512",45,"1 1/2 oz Dubonnet Blanc "], ["2275","88",45,"1 1/2 oz Dry Vermouth "], ["3898","248",20,"2 cl Aperol "], ["3898","359",20,"2 cl Cointreau "], ["3898","88",20,"2 cl Dry Vermouth "], ["3875","424",20,"2 cl Lemon juice "], ["3875","200",20,"2 cl Rose's sweetened lime juice "], ["3875","445",40,"4 cl Orange juice "], ["3875","248",40,"4 cl Aperol "], ["2960","464",30,"1 oz Peppermint schnapps "], ["2960","316",22.5,"3/4 oz Vodka (Skyy) "], ["2960","265",15,"1/2 oz oz Kahlua "], ["2960","249",15,"1/2 oz Bourbon (Old Grandad) "], ["2960","205",30,"1 oz White Creme de Menthe "], ["2960","342",22.5,"3/4 oz Southern Comfort "], ["2960","310",60,"2 oz Hot chocolate "], ["4992","449",26.25,"7/8 oz Apple schnapps (DeKuyper Apple Barrel) "], ["4992","115",3.75,"1/8 oz Goldschlager "], ["4534","74",10,"1 cl Apfelkorn "], ["4534","316",10,"1 cl Vodka "], ["4534","445",20,"2 cl Orange juice "], ["4534","323",20,"2 cl Sprite or 7-up "], ["42","192",30,"1 oz Brandy "], ["42","461",60,"2 oz Apple juice "], ["42","424",5,"1 tsp Lemon juice "], ["42","316",0.9,"1 dash Vodka "], ["2889","449",44.5,"1 jigger Apple schnapps "], ["2889","115",44.5,"1 jigger Goldschlager "], ["2889","270",44.5,"1 jigger Bailey's irish cream "], ["2667","335",30,"1 oz Spiced rum "], ["2667","449",22.5,"3/4 oz Apple schnapps "], ["2667","132",22.5,"3/4 oz Cinnamon schnapps "], ["2667","22",3.7,"1 splash 7-Up "], ["4212","462",90,"3 oz Tequila (Cuervo Mystico) "], ["4212","324",360,"12 oz Apple cider "], ["3210","315",15,"1/2 oz Grand Marnier "], ["3210","316",15,"1/2 oz Vodka "], ["3210","461",90,"3 oz Apple juice "], ["5112","147",7.5,"1/4 oz Irish Mist "], ["5112","132",7.5,"1/4 oz Cinnamon schnapps "], ["5112","167",7.5,"1/4 oz Frangelico "], ["5112","375",7.5,"1/4 oz Amaretto "], ["46","214",30,"1 oz Light rum "], ["46","383",15,"1/2 oz Sweet Vermouth "], ["46","423",5,"1 tsp Applejack "], ["46","424",5,"1 tsp Lemon juice "], ["46","82",2.5,"1/2 tsp Grenadine "], ["3188","223",20,"2 cl Licor 43 "], ["3188","74",20,"2 cl Apfelkorn "], ["3188","259",20,"2 cl Milk "], ["48","349",45,"1 1/2 oz A�ejo rum "], ["48","423",15,"1/2 oz Applejack "], ["48","186",10,"2 tsp Lime juice "], ["48","130",60,"2 oz Club soda "], ["5923","423",30,"1 oz Applejack "], ["5923","213",30,"1 oz Triple sec "], ["5923","424",30,"1 oz Lemon juice "], ["2879","122",30,"1 oz Jack Daniels "], ["2879","146",15,"1/2 oz Midori melon liqueur "], ["2879","266",60,"2 oz Sour mix "], ["53","376",45,"1 1/2 oz Gin "], ["53","479",15,"1/2 oz Galliano "], ["53","10",15,"1/2 oz Creme de Banane "], ["53","404",15,"1/2 oz Grapefruit juice "], ["2033","316",60,"2 oz Vodka (Finlandia) "], ["2033","295",90,"Fill with 3 oz Champagne "], ["1482","316",75,"2 1/2 oz Vodka "], ["1482","234",22.5,"3/4 oz Acerola pulp "], ["1482","404",45,"1 1/2 oz Grapefruit juice "], ["1482","477",5,"1 tsp Sugar "], ["2900","316",10,"1/3 oz Vodka (Fris) "], ["2900","146",10,"1/3 oz Midori melon liqueur "], ["2900","211",10,"1/3 oz Sweet and sour (Mr.& Mrs.T's) "], ["4830","115",30,"1 oz Goldschlager "], ["4830","108",30,"1 oz J�germeister "], ["4830","462",30,"1 oz Tequila "], ["5206","304",14.75,"1/2 shot Rum "], ["5206","316",14.75,"1/2 shot Vodka "], ["5206","375",14.75,"1/2 shot Amaretto "], ["5206","265",14.75,"1/2 shot Kahlua "], ["5291","33",90,"3 oz Lillet "], ["5291","359",30,"1 oz Cointreau "], ["5291","383",3.7,"1 splash Sweet Vermouth "], ["5446","294",29.5,"1 shot Lime juice cordial "], ["5446","480",29.5,"1 shot Irish cream "], ["5446","12",29.5,"1 shot Blavod vodka "], ["4045","376",60,"2 oz Gin "], ["4045","88",15,"1/2 oz Dry Vermouth "], ["4045","433",0.9,"1 dash Orange bitters "], ["3910","71",15,"1/2 oz Everclear "], ["3910","85",15,"1/2 oz Bacardi 151 proof rum "], ["3910","272",15,"1/2 oz Razzmatazz "], ["3910","375",30,"1 oz Amaretto "], ["5677","15",30,"1 oz Green Creme de Menthe "], ["5677","333",30,"1 oz Creme de Cacao "], ["5677","259",180,"6 oz Milk "], ["5677","287",15,"3 tsp Chocolate syrup "], ["4246","119",30,"1 oz Absolut Vodka "], ["4246","376",30,"1 oz Gin (Tanqueray) "], ["4246","29",120,"4 oz Tonic water "], ["1433","316",20,"2 cl Smirnoff Vodka "], ["1433","342",20,"2 cl Southern Comfort "], ["1433","454",20,"2 cl Passion fruit syrup (Monin) "], ["1433","211",60,"6 cl Sweet and sour, mix "], ["1433","130",0.9,"1 dash Club soda "], ["1264","146",30,"1 oz Midori melon liqueur "], ["1264","316",30,"1 oz Vodka "], ["1264","266",30,"1 oz Sour mix "], ["4175","316",7.5,"1/4 oz Vodka "], ["4175","376",7.5,"1/4 oz Gin "], ["4175","213",7.5,"1/4 oz Triple sec "], ["4175","375",7.5,"1/4 oz Amaretto "], ["4175","309",7.5,"1/4 oz Peach schnapps "], ["4175","266",7.5,"1/4 oz Sour mix "], ["4175","372",3.7,"1 splash Cranberry juice "], ["3056","108",30,"1 oz J�germeister "], ["3056","115",30,"1 oz Goldschlager "], ["2355","330",60,"2 oz Port "], ["2355","315",30,"1 oz Grand Marnier "], ["2355","375",15,"1/2 oz Amaretto "], ["3753","375",50,"1 2/3 oz Amaretto "], ["3753","309",50,"1 2/3 oz Peach schnapps "], ["3753","88",22.5,"3/4 oz Dry Vermouth "], ["3753","130",120,"4 oz Club soda "], ["5909","192",15,"1/2 oz Brandy "], ["5909","351",15,"1/2 oz Benedictine "], ["1904","270",10,"1/3 oz Bailey's irish cream "], ["1904","265",10,"1/3 oz Kahlua "], ["1904","167",10,"1/3 oz Frangelico "], ["1275","265",9.83,"1/3 shot Kahlua "], ["1275","375",9.83,"1/3 shot Amaretto "], ["1275","270",9.83,"1/3 shot Bailey's irish cream "], ["1758","265",20,"2 cl Kahlua "], ["1758","270",20,"2 cl Bailey's irish cream "], ["1758","359",20,"2 cl Cointreau "], ["2664","375",20,"2 cl Amaretto "], ["2664","270",15,"1 1/2 cl Bailey's irish cream "], ["2664","304",5,"1/2 cl Rum "], ["4009","265",9.83,"1/3 shot Kahlua "], ["4009","475",9.83,"1/3 shot Sambuca "], ["4009","315",9.83,"1/3 shot Grand Marnier "], ["1387","270",15,"1/2 oz Bailey's irish cream "], ["1387","15",15,"1/2 oz Green Creme de Menthe "], ["1387","315",15,"1/2 oz Grand Marnier "], ["1387","265",15,"1/2 oz Kahlua "], ["2197","265",30,"1 oz Kahlua "], ["2197","480",30,"1 oz Irish cream (Bailey's) "], ["2197","315",30,"1 oz Grand Marnier "], ["2197","316",30,"1 oz Vodka (Stolichnaya) "], ["2356","315",30,"1 oz Grand Marnier "], ["2356","265",30,"1 oz Kahlua "], ["2356","270",30,"1 oz Bailey's irish cream "], ["2356","375",30,"1 oz Amaretto "], ["2356","316",30,"1 oz Vodka (Absolut) "], ["5242","265",9.83,"1/3 shot Kahlua "], ["5242","464",9.83,"1/3 shot Peppermint schnapps "], ["5242","480",9.83,"1/3 shot Irish cream "], ["3115","265",75,"2 1/2 oz Kahlua "], ["3115","270",15,"1/2 oz Bailey's irish cream "], ["1573","316",75,"2 1/2 oz Vodka (Absolut) "], ["1573","211",120,"4 oz Sweet and sour "], ["1573","54",30,"1 oz Chambord raspberry liqueur "], ["3869","214",52.5,"1 3/4 oz Bacardi Light rum "], ["3869","186",30,"1 oz Lime juice "], ["3869","357",2.5,"1/2 tsp Sugar syrup "], ["3869","82",0.9,"1 dash Grenadine "], ["1867","381",150,"1.5 oz Drambuie "], ["1867","315",150,"1.5 oz Grand Marnier "], ["4372","265",9.83,"1/3 shot Kahlua "], ["4372","270",9.83,"1/3 shot Bailey's irish cream "], ["4372","316",9.83,"1/3 shot Vodka "], ["4690","424",15,"1/2 oz Lemon juice "], ["4690","445",60,"2 oz Orange juice "], ["4690","261",60,"2 oz Pineapple juice "], ["4690","304",45,"1 1/2 oz Rum "], ["4690","468",30,"1 oz Coconut rum "], ["4690","116",15,"1/2 oz Cherry Heering "], ["4690","82",15,"1/2 oz Grenadine "], ["4648","316",15,"1/2 oz Vodka (Skyy) "], ["4648","309",15,"1/2 oz Peach schnapps "], ["2713","304",22.5,"3/4 oz Rum (Havanna Club Silver Dry) "], ["2713","356",7.5,"1/4 oz Limoncello (Luxardo) "], ["2713","446",15,"1/2 oz Condensed milk (Nestle) "], ["2088","387",30,"1 oz Dark rum "], ["2088","335",30,"1 oz Spiced rum "], ["2088","445",120,"4 oz Orange juice "], ["2088","261",60,"2 oz Pineapple juice "], ["2088","82",15,"1/2 oz Grenadine "], ["1283","214",15,"1/2 oz Light rum "], ["1283","387",15,"1/2 oz Dark rum "], ["1283","335",15,"1/2 oz Spiced rum "], ["1283","36",15,"1/2 oz Malibu rum "], ["1283","85",15,"1/2 oz Bacardi 151 proof rum "], ["1283","297",15,"1/2 oz Blue Curacao "], ["1283","261",150,"5 oz Pineapple juice "], ["2089","316",30,"3 cl Vodka "], ["2089","425",20,"2 cl Pisang Ambon "], ["2089","36",20,"2 cl Malibu rum "], ["2089","445",60,"6 cl Orange juice "], ["2089","424",10,"1 cl Lemon juice "], ["3283","274",44.25,"1 1/2 shot Melon liqueur "], ["3283","169",29.5,"1 shot Lime vodka "], ["3283","119",29.5,"1 shot Absolut Vodka "], ["3283","213",29.5,"1 shot Triple sec "], ["3283","243",44.25,"1 1/2 shot Blueberry schnapps "], ["3283","186",3.7,"1 splash Lime juice "], ["3283","22",3.7,"1 splash 7-Up "], ["1993","142",200,"20 cl White rum (Bacardi) "], ["1993","319",200,"20 cl Bacardi Black rum "], ["1993","10",200,"20 cl Creme de Banane "], ["1993","157",200,"20 cl Passoa "], ["1993","417",100,"10 cl Coconut liqueur "], ["1993","82",100,"10 cl Grenadine "], ["1993","445",2000,"200 cl Orange juice or tropical fruit mix "], ["1048","387",45,"1 1/2 oz Dark rum "], ["1048","10",15,"1/2 oz Creme de Banane "], ["1048","41",30,"1 oz Light cream "], ["2496","379",29.5,"1 shot Tomato juice "], ["2496","462",29.5,"1 shot white Tequila "], ["2496","424",29.5,"1 shot Lemon juice "], ["3722","265",15,"1/2 oz Kahlua "], ["3722","480",15,"1/2 oz Irish cream "], ["3722","227",15,"1/2 oz Banana liqueur (99 bananas) "], ["3842","227",40,"4 cl Banana liqueur "], ["3842","316",30,"3 cl Vodka "], ["3842","445",80,"8 cl Orange juice "], ["4589","42",29.5,"1 shot Irish whiskey "], ["4589","147",29.5,"1 shot Irish Mist "], ["1632","10",15,"1/2 oz Creme de Banane "], ["1632","333",15,"1/2 oz Creme de Cacao "], ["1632","422",60,"2 oz Cream, sweet "], ["68","297",15,"1/2 oz Blue Curacao "], ["68","108",15,"1/2 oz J�germeister "], ["68","372",3.7,"1 splash Cranberry juice "], ["4662","36",30,"1 oz Malibu rum "], ["4662","119",30,"1 oz Absolut Vodka "], ["4662","372",30,"1 oz Cranberry juice "], ["4662","445",30,"1 oz Orange juice "], ["5002","378",15,"1/2 oz Scotch "], ["5002","376",15,"1/2 oz Gin "], ["5002","304",15,"1/2 oz Rum "], ["5002","333",15,"1/2 oz white Creme de Cacao "], ["5002","41",15,"1/2 oz Light cream "], ["3406","423",15,"1/2 oz Applejack "], ["3406","376",7.5,"1/4 oz Gin "], ["3406","378",7.5,"1/4 oz Scotch "], ["1972","304",44.25,"1 1/2 shot Rum "], ["1972","199",360,"12 oz Mountain Dew "], ["1972","34",59,"1 - 2 shot Blue Maui "], ["73","66",60,"2 oz Cachaca "], ["73","483",120,"4 oz Pineapple (fresh), chunks "], ["73","477",2.5,"1/2 tsp granulated Sugar "], ["73","427",257,"1 cup crushed Ice "], ["6126","66",60,"2 oz Cachaca "], ["6126","184",120,"4 oz Mango, fresh, chopped "], ["6126","477",10,"2 tsp granulated Sugar "], ["6126","427",257,"1 cup crushed Ice "], ["3329","136",60,"2 oz Blackberry schnapps (Black Haus) "], ["3329","361",30,"1 oz Chocolate liqueur "], ["3329","259",30,"1 oz Milk "], ["1852","342",60,"2 oz Southern Comfort "], ["1852","2",180,"6 oz Lemonade "], ["3709","36",12,"2/5 oz Malibu rum "], ["3709","304",12,"2/5 oz Rum (Captain Morgan's) "], ["3709","375",12,"2/5 oz Amaretto "], ["3709","372",12,"2/5 oz Cranberry juice "], ["3709","261",12,"2/5 oz Pineapple juice "], ["2910","270",15,"1/2 oz Bailey's irish cream "], ["2910","297",15,"1/2 oz Blue Curacao "], ["2910","227",15,"1/2 oz Banana liqueur "], ["76","88",45,"1 1/2 oz Dry Vermouth "], ["76","378",45,"1 1/2 oz Scotch "], ["5263","297",30,"1 oz Blue Curacao "], ["5263","213",30,"1 oz Triple sec "], ["5263","226",30,"1 oz Bacardi Limon "], ["5263","323",3.7,"1 splash Sprite "], ["5263","211",3.7,"1 splash Sweet and sour "], ["78","85",15,"1/2 oz Bacardi 151 proof rum "], ["78","10",15,"1/2 oz Creme de Banane "], ["78","270",30,"1 oz Bailey's irish cream "], ["2017","88",15,"1/2 oz Dry Vermouth "], ["2017","383",15,"1/2 oz Sweet Vermouth "], ["2017","378",45,"1 1/2 oz Scotch "], ["3587","265",15,"1/2 oz Kahlua "], ["3587","270",15,"1/2 oz Bailey's irish cream "], ["3587","227",15,"1/2 oz Banana liqueur "], ["4408","198",29.5,"1 shot Aftershock "], ["4408","471",29.5,"1 shot Jim Beam "], ["3222","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["3222","464",14.75,"1/2 shot Peppermint schnapps "], ["1342","342",30,"1 oz Southern Comfort "], ["1342","316",30,"1 oz Vodka "], ["1342","31",480,"1/16 oz Grain alcohol "], ["1342","352",30,"1 oz Water "], ["6104","340",30,"1 oz Barenjager "], ["6104","464",30,"1 oz Peppermint schnapps "], ["4714","71",30,"1 oz Everclear "], ["4714","286",30,"1 oz Purple passion "], ["4714","316",30,"1 oz Vodka "], ["4714","420",30,"1 oz Cider (White lightning) "], ["4714","342",30,"1 oz Southern Comfort "], ["4714","85",30,"1 oz Bacardi 151 proof rum "], ["4714","181",30,"1 oz Plum Wine "], ["4714","352",30,"1 oz Water "], ["79","383",15,"1/2 oz Sweet Vermouth "], ["79","88",15,"1/2 oz Dry Vermouth "], ["79","376",30,"1 oz Gin "], ["79","445",5,"1 tsp Orange juice "], ["79","82",0.9,"1 dash Grenadine "], ["1579","304",60,"2 oz Barbados Rum "], ["1579","387",60,"2 oz Dark rum "], ["1579","85",30,"1 oz Bacardi 151 proof rum "], ["1579","175",180,"6 oz Coca-Cola "], ["1579","186",15,"1/2 oz fresh Lime juice "], ["5610","3",30,"1 oz Cognac (Hennessy) "], ["5610","315",30,"1 oz Grand Marnier "], ["80","174",45,"1 1/2 oz Blackberry brandy "], ["80","205",15,"1/2 oz White Creme de Menthe "], ["5890","392",300,"10 oz Beer "], ["5890","22",60,"2 oz 7-Up "], ["2276","146",45,"1 1/2 oz Midori melon liqueur "], ["2276","316",15,"1/2 oz Vodka "], ["2276","41",30,"1 oz Light cream "], ["81","376",45,"1 1/2 oz Gin "], ["81","213",30,"1 oz Triple sec "], ["81","231",30,"1 oz Apricot brandy "], ["81","424",10,"2 tsp Lemon juice "], ["2325","295",180,"6 oz Champagne "], ["2325","309",30,"1 oz Peach schnapps "], ["86","231",7.5,"1 1/2 tsp Apricot brandy "], ["86","376",37.5,"1 1/4 oz Gin "], ["86","82",7.5,"1 1/2 tsp Grenadine "], ["5763","304",45,"1 1/2 oz Rum (Gosling's Black Seal) "], ["5763","372",60,"2 oz Cranberry juice "], ["5763","445",60,"2 oz Orange juice "], ["5365","316",20,"2 cl Vodka "], ["5365","270",20,"2 cl Bailey's irish cream "], ["3398","309",90,"3 oz Peach schnapps "], ["3398","282",150,"5 oz Peach juice "], ["3398","83",90,"3 oz Ginger ale "], ["2487","312",45,"1 1/2 oz Absolut Citron "], ["2487","323",300,"10 oz Sprite "], ["2487","82",15,"1/2 oz Grenadine "], ["4006","192",30,"1 oz Brandy "], ["4006","214",30,"1 oz Light rum "], ["4006","213",30,"1 oz Triple sec "], ["4006","424",30,"1 oz Lemon juice "], ["5367","468",30,"1 oz Coconut rum "], ["5367","375",30,"1 oz Amaretto "], ["2330","304",60,"2 oz Rum "], ["2330","375",60,"2 oz Amaretto "], ["2330","468",60,"2 oz Coconut rum "], ["2330","10",60,"2 oz Creme de Banane "], ["2330","261",240,"8 oz Pineapple juice "], ["5423","259",257,"1 cup Milk "], ["5423","508",2.5,"1/2 tsp Vanilla extract "], ["5423","64",192.75,"3/4 cup Chocolate ice-cream "], ["5423","342",45,"1 1/2 oz Southern Comfort "], ["4833","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["4833","227",15,"1/2 oz Banana liqueur "], ["4833","200",3.7,"1 splash Rose's sweetened lime juice "], ["4833","82",3.7,"1 splash Grenadine "], ["4833","372",3.7,"1 splash Cranberry juice "], ["1725","368",15,"1/2 oz Sloe gin "], ["1725","342",15,"1/2 oz Southern Comfort "], ["1725","309",15,"1/2 oz Peach schnapps "], ["1332","480",15,"1/2 oz Irish cream "], ["1332","115",15,"1/2 oz Goldschlager "], ["2505","3",22.5,"3/4 oz Cognac "], ["2505","332",22.5,"3/4 oz Pernod "], ["4043","333",7.5,"1/4 oz Creme de Cacao "], ["4043","297",7.5,"1/4 oz Blue Curacao "], ["4043","316",7.5,"1/4 oz Vodka "], ["4043","266",7.5,"1/4 oz Sour mix "], ["3744","376",60,"2 oz Gin "], ["3744","88",15,"1/2 oz Dry Vermouth "], ["3744","205",15,"1/2 oz White Creme de Menthe "], ["3744","332",5,"1 tsp Pernod "], ["2888","462",30,"1 oz Tequila "], ["2888","213",22.5,"3/4 oz Triple sec "], ["2888","316",15,"1/2 oz Vodka "], ["2888","445",52.5,"1 3/4 oz Orange juice "], ["2888","266",52.5,"1 3/4 oz Sour mix "], ["2888","22",3.7,"1 splash 7-Up "], ["5491","122",30,"1 oz Jack Daniels "], ["5491","202",15,"1/2 oz Gold tequila (Cuervo) "], ["5491","316",15,"1/2 oz Vodka "], ["5491","297",15,"1/2 oz Blue Curacao "], ["2925","136",30,"1 oz Blackberry schnapps "], ["2925","297",60,"2 oz Blue Curacao "], ["2925","316",60,"2 oz Vodka "], ["1759","265",30,"3 cl Kahlua "], ["1759","259",30,"3 cl Milk "], ["2467","267",22.5,"3/4 oz Black Sambuca "], ["2467","270",22.5,"3/4 oz Bailey's irish cream "], ["2467","85",15,"1/2 oz bacardi 151 proof rum "], ["4323","479",30,"3 cl Galliano "], ["4323","108",30,"3 cl J�germeister "], ["5299","462",30,"1 oz Tequila (Sauza) "], ["5299","174",30,"1 oz Blackberry brandy "], ["5299","130",30,"1 oz Club soda "], ["4198","237",22.5,"3/4 oz Raspberry liqueur (Chambord) "], ["4198","480",22.5,"3/4 oz Irish cream (Bailey's) "], ["4198","240",22.5,"3/4 oz Coffee liqueur (Kahlua) "], ["4198","316",22.5,"3/4 oz Vodka (Absolut) "], ["4198","126",22.5,"3/4 oz Half-and-half "], ["4198","175",3.7,"1 splash Coca-Cola "], ["5937","265",60,"2 oz Kahlua "], ["5937","126",60,"2 oz Half-and-half "], ["5937","109",90,"3 oz Cola "], ["6020","267",45,"1 1/2 oz Black Sambuca "], ["6020","206",180,"6 oz Eggnog "], ["2745","316",44.25,"1 - 1 1/2 shot Vodka "], ["2745","95",15,"1/2 oz Soy sauce "], ["4363","265",7.5,"1/4 oz Kahlua "], ["4363","475",7.5,"1/4 oz Sambuca (Romana) "], ["4363","270",7.5,"1/4 oz Bailey's irish cream "], ["4363","126",7.5,"1/4 oz Half-and-half "], ["3345","297",30,"1 oz Blue Curacao "], ["3345","82",30,"1 oz Grenadine "], ["3345","375",30,"1 oz Amaretto "], ["3345","213",30,"1 oz Triple sec "], ["3345","174",30,"1 oz Blackberry brandy "], ["2563","108",22.5,"3/4 oz J�germeister "], ["2563","115",22.5,"3/4 oz Goldschlager "], ["2448","376",20,"2/3 oz Gin "], ["2448","267",10,"1/3 oz Black Sambuca "], ["1607","431",60,"2 oz Coffee brandy "], ["1607","214",60,"2 oz Light rum "], ["1607","482",120,"4 oz strong, black Coffee "], ["1607","236",10,"2 tsp Powdered sugar "], ["4701","387",30,"1 oz Dark rum "], ["4701","267",15,"1/2 oz Black Sambuca (Opal) "], ["4701","179",5,"1 tsp Cherry brandy "], ["4701","424",15,"1/2 oz Lemon juice "], ["102","192",45,"1 1/2 oz Brandy "], ["102","383",15,"1/2 oz Sweet Vermouth "], ["102","88",15,"1/2 oz Dry Vermouth "], ["102","213",10,"2 tsp Triple sec "], ["4669","368",7.38,"1/4 shot Sloe gin (CreamyHead) "], ["4669","297",7.38,"1/4 shot Blue Curacao "], ["4669","309",7.38,"1/4 shot Peach schnapps "], ["4669","316",7.38,"1/4 shot Vodka (Absolut) "], ["1958","316",30,"3 cl Vodka (Stoli) "], ["1958","240",30,"3 cl Coffee liqueur (Kaluha) "], ["1958","175",150,"15 cl Coca-Cola "], ["3107","240",22.5,"3/4 oz Coffee liqueur "], ["3107","316",45,"1 1/2 oz Vodka "], ["104","296",30,"1 oz Sake "], ["104","95",15,"1/2 oz Soy sauce "], ["3449","173",75,"2 1/2 oz Canadian whisky (Crown Royal) "], ["3449","175",3.7,"1 splash Coca-Cola "], ["5734","135",150,"5 oz chilled Stout "], ["5734","295",150,"5 oz chilled Champagne "], ["1848","312",30,"1 oz Absolut Citron "], ["1848","267",30,"1 oz Black Sambuca (Opal Nera) "], ["1866","462",45,"1 1/2 oz Tequila "], ["1866","213",15,"1/2 oz Triple sec "], ["1866","54",15,"1/2 oz Chambord raspberry liqueur "], ["1866","186",120,"4 oz Lime juice (or Sour Mix) "], ["99","192",15,"1/2 oz Brandy "], ["99","121",30,"1 oz Kirschwasser "], ["99","482",30,"1 oz Coffee "], ["106","378",45,"1 1/2 oz Scotch "], ["106","265",30,"1 oz Kahlua "], ["106","213",15,"1/2 oz Triple sec "], ["106","424",15,"1/2 oz Lemon juice "], ["5345","12",45,"1 1/2 oz Blavod vodka "], ["5345","455",180,"6 oz Longbranch Bloody mary mix "], ["3909","114",45,"1 1/2 oz Butterscotch schnapps "], ["3909","85",45,"1 1/2 oz Bacardi 151 proof rum "], ["2871","378",60,"2 oz Scotch "], ["2871","186",15,"1/2 oz Lime juice "], ["2871","477",2.5,"1/2 tsp superfine Sugar "], ["1900","378",60,"2 oz Scotch "], ["1900","404",150,"5 oz Grapefruit juice "], ["1900","82",5,"1 tsp Grenadine "], ["5522","316",60,"2 oz Vodka "], ["5522","445",60,"2 oz Orange juice "], ["5522","404",60,"2 oz Grapefruit juice "], ["5522","91",30,"1 oz Strawberry syrup "], ["2850","85",7.5,"1/4 oz 151 proof rum "], ["2850","232",7.5,"1/4 oz Wild Turkey (101 proof) "], ["2850","297",7.5,"1/4 oz Blue Curacao "], ["2850","261",3.7,"1 splash Pineapple juice "], ["2850","445",3.7,"1 splash Orange juice "], ["3007","304",30,"1 oz Rum (Bacardi) "], ["3007","309",30,"1 oz Peach schnapps "], ["3007","315",15,"1/2 oz Grand Marnier "], ["3007","261",30,"1 oz Pineapple juice "], ["3007","445",30,"1 oz Orange juice "], ["4303","226",30,"1 oz Bacardi Limon "], ["4303","297",15,"1/2 oz Blue Curacao "], ["4303","82",10,"1/3 oz Grenadine "], ["4303","211",45,"1 1/2 oz Sweet and sour mix "], ["4303","443",3.7,"1 splash Soda water "], ["4157","3",22.5,"3/4 oz Cognac "], ["4157","359",22.5,"3/4 oz Cointreau "], ["4157","499",22.5,"3/4 oz Calvados "], ["4157","332",15,"1/2 oz Pernod "], ["5101","327",30,"1 oz Campari "], ["5101","376",30,"1 oz Gin "], ["3646","62",45,"1 1/2 oz Yukon Jack "], ["3646","462",45,"1 1/2 oz Tequila "], ["3646","316",45,"1 1/2 oz Vodka "], ["3646","379",30,"1 oz Tomato juice (V-8) "], ["3646","270",30,"1 oz Bailey's irish cream "], ["3646","424",15,"1/2 oz Lemon juice "], ["2858","15",30,"3 cl Green Creme de Menthe "], ["2858","270",15,"1 1/2 cl Bailey's irish cream "], ["2193","10",60,"2 oz Creme de Banane (Hiram Walker) "], ["2193","297",60,"2 oz Blue Curacao (Hiram Walker) "], ["1682","270",10,"1/3 oz Bailey's irish cream "], ["1682","21",10,"1/3 oz Whiskey "], ["1682","375",10,"1/3 oz Amaretto "], ["5150","252",60,"2 oz Whisky "], ["5150","352",180,"6 oz Water "], ["4827","297",22.5,"3/4 oz Blue Curacao "], ["4827","270",7.5,"1/4 oz Bailey's irish cream "], ["4827","22",30,"1 oz 7-Up "], ["4827","443",30,"1 oz Soda water "], ["4076","464",22.13,"3/4 shot Avalanche Peppermint schnapps "], ["4076","115",22.13,"3/4 shot Goldschlager "], ["3134","316",60,"2 oz Vodka (Skyy) "], ["3134","404",150,"5 oz Grapefruit juice "], ["5183","327",60,"2 oz Campari "], ["5183","192",60,"2 oz Brandy "], ["5183","424",30,"1 oz Lemon juice "], ["6207","496",30,"1 oz Hpnotiq "], ["6207","312",30,"1 oz Absolut Citron "], ["6207","507",90,"3 oz White cranberry juice "], ["4081","316",30,"1 oz Vodka "], ["4081","376",30,"1 oz Gin "], ["4081","142",30,"1 oz White rum "], ["4081","297",30,"1 oz Blue Curacao "], ["4081","477",5,"1 tsp Sugar "], ["4081","29",90,"3 oz Tonic water "], ["5661","297",30,"1 oz Blue Curacao "], ["5661","316",30,"1 oz Vodka "], ["5661","211",30,"1 oz Sweet and sour "], ["3941","376",45,"1 1/2 oz Gin (Bombay Sapphire) "], ["3941","297",22.5,"3/4 oz Blue Curacao "], ["4865","349",45,"1 1/2 oz A�ejo rum "], ["4865","215",15,"1/2 oz Tia maria "], ["4865","316",15,"1/2 oz Vodka "], ["4865","445",30,"1 oz Orange juice "], ["4865","424",5,"1 tsp Lemon juice "], ["120","376",37.5,"1 1/4 oz Gin (Tanqueray Malacca) "], ["120","297",15,"1/2 oz Blue Curacao "], ["120","211",45,"1 1/2 oz fresh Sweet and sour mix "], ["120","261",90,"3 oz Pineapple juice "], ["2373","36",15,"1/2 oz Malibu rum "], ["2373","297",7.5,"1/4 oz Blue Curacao "], ["2373","261",15,"1/2 oz Pineapple juice "], ["1590","309",30,"1 oz Peach schnapps "], ["1590","297",15,"1/2 oz Blue Curacao "], ["6115","295",120,"4 oz Champagne "], ["6115","316",30,"1 oz Vodka "], ["6115","297",14.75,"1/2 shot Blue Curacao "], ["2626","342",15,"1/2 oz Southern Comfort "], ["2626","10",15,"1/2 oz Creme de Banane "], ["2626","297",15,"1/2 oz Blue Curacao "], ["6144","108",5.9,"1/5 shot J�germeister "], ["6144","85",5.9,"1/5 shot Bacardi 151 proof rum "], ["6144","145",5.9,"1/5 shot Rumple Minze "], ["6144","115",5.9,"1/5 shot Goldschlager "], ["6144","297",5.9,"1/5 shot Blue Curacao "], ["6206","297",29.5,"1 shot Blue Curacao "], ["6206","424",29.5,"1 shot Lemon juice "], ["3784","243",30,"3 cl Blueberry schnapps or liqueur "], ["3784","142",10,"1 cl White rum "], ["3784","186",10,"1 cl Lime juice "], ["3784","357",20,"2 cl Sugar syrup "], ["5726","375",30,"1 oz Amaretto "], ["5726","315",15,"1/2 oz Grand Marnier "], ["5726","250",128.5,"1/2 cup blueberry or black currant Tea "], ["3690","243",30,"1 oz Blueberry schnapps "], ["3690","316",30,"1 oz Vodka "], ["3690","211",30,"1 oz Sweet and sour "], ["3690","422",0.9,"1 dash Cream (optional) "], ["2705","130",180,"6 oz Club soda "], ["2705","243",29.5,"1 shot Blueberry schnapps "], ["2705","445",3.7,"1 splash Orange juice "], ["5637","270",29.5,"1 shot Bailey's irish cream "], ["5637","36",29.5,"1 shot Malibu rum "], ["5637","252",29.5,"1 shot Whisky "], ["4337","331",360,"12 oz Surge "], ["4337","108",120,"4 oz J�germeister "], ["4337","427",480,"16 oz Ice "], ["2158","270",10,"1/3 oz Bailey's irish cream "], ["2158","36",10,"1/3 oz Malibu rum "], ["2158","333",10,"1/3 oz white Creme de Cacao "], ["1419","146",15,"1/2 oz Midori melon liqueur "], ["1419","108",15,"1/2 oz J�germeister "], ["1419","115",15,"1/2 oz Goldschlager "], ["1395","316",60,"2 oz Vodka "], ["1395","83",240,"8 oz Ginger ale "], ["1006","445",10,"1 cl Orange juice "], ["1006","424",10,"1 cl Lemon juice "], ["1006","357",5,"1 tsp Sugar syrup "], ["1006","422",60,"6 cl Cream "], ["3059","21",60,"2 oz Whiskey "], ["3059","392",300,"10 oz Beer "], ["1678","448",22.5,"3/4 oz Apple brandy "], ["1678","214",45,"1 1/2 oz Light rum "], ["1678","383",1.25,"1/4 tsp Sweet Vermouth "], ["4412","316",45,"1 1/2 oz Vodka "], ["4412","445",45,"1 1/2 oz Orange juice "], ["4412","404",45,"1 1/2 oz Grapefruit juice "], ["5450","184",3.7,"1 splash Mango puree "], ["5450","295",180,"4-6 oz Champagne "], ["124","316",29.5,"1 shot Vodka "], ["124","376",29.5,"1 shot Gin "], ["124","309",29.5,"1 shot Peach schnapps "], ["124","132",29.5,"1 shot Cinnamon schnapps "], ["124","214",29.5,"1 shot Light rum "], ["4802","88",15,"1/2 oz Dry Vermouth "], ["4802","383",15,"1/2 oz Sweet Vermouth "], ["4802","192",30,"1 oz Brandy "], ["4802","213",2.5,"1/2 tsp Triple sec "], ["4802","170",1.25,"1/4 tsp Anis "], ["4812","449",15,"1/2 oz Apple schnapps "], ["4812","309",15,"1/2 oz Peach schnapps "], ["4812","227",15,"1/2 oz Banana liqueur "], ["4812","261",15,"1/2 oz Pineapple juice "], ["4812","22",15,"1/2 oz 7-Up "], ["3428","376",29.5,"1 shot Gin "], ["3428","462",29.5,"1 shot Tequila "], ["3428","424",0.9,"1 dash Lemon juice "], ["3428","297",0.9,"1 dash Blue Curacao "], ["3627","145",15,"1/2 oz Rumple Minze "], ["3627","464",15,"1/2 oz Peppermint schnapps "], ["2540","304",29.5,"1 shot Rum "], ["2540","316",29.5,"1 shot Vodka "], ["2540","376",29.5,"1 shot Gin "], ["2540","213",29.5,"1 shot Triple sec "], ["2540","82",14.75,"1/2 shot Grenadine "], ["2540","372",257,"1 cup Cranberry juice "], ["2540","445",64.25,"1/4 cup Orange juice "], ["2540","261",64.25,"1/4 cup Pineapple juice "], ["4747","82",15,"1/2 oz Grenadine "], ["4747","375",15,"1/2 oz Amaretto "], ["4747","85",15,"1/2 oz 151 proof rum "], ["1857","232",22.5,"3/4 oz Wild Turkey 101 proof "], ["1857","274",22.5,"3/4 oz Melon liqueur "], ["1857","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["3292","316",10,"1 cl Vodka (Absolut) "], ["3292","270",10,"1 cl Bailey's irish cream "], ["3292","482",10,"1 cl Coffee (Cappuchino) "], ["3292","259",10,"1 cl Milk "], ["2939","108",14.75,"1/2 shot J�germeister "], ["2939","62",14.75,"1/2 shot Yukon Jack "], ["3278","462",15,"1/2 oz Tequila "], ["3278","213",15,"1/2 oz Triple sec "], ["3278","10",15,"1/2 oz Creme de Banane "], ["3278","445",15,"1/2 oz Orange juice "], ["3278","266",15,"1/2 oz Sour mix "], ["2749","142",30,"1 oz White rum "], ["2749","376",30,"1 oz Gin "], ["2749","316",30,"1 oz Vodka "], ["2749","213",30,"1 oz Triple sec "], ["2749","459",420,"14 oz Lemon-lime mix "], ["2749","175",15,"1/2 oz Coca-Cola "], ["3380","146",15,"1/2 oz Midori melon liqueur "], ["3380","36",15,"1/2 oz Malibu rum "], ["3380","335",15,"1/2 oz Spiced rum (Bacardi) "], ["3380","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["2117","122",29.5,"1 shot Jack Daniels "], ["2117","342",29.5,"1 shot Southern Comfort "], ["2117","475",29.5,"1 shot Sambuca "], ["126","261",100,"10 cl Pineapple juice "], ["126","355",60,"6 cl Passion fruit juice "], ["126","424",10,"1 cl Lemon juice "], ["126","82",10,"1 cl Grenadine syrup "], ["130","211",75,"2 1/2 oz Sweet and sour "], ["130","274",75,"2 1/2 oz Melon liqueur (Midori) "], ["130","276",75,"2 1/2 oz Root beer schnapps "], ["4968","249",60,"2 oz Bourbon "], ["4968","213",15,"1/2 oz Triple sec "], ["4968","424",15,"1/2 oz Lemon juice "], ["4685","372",60,"2 oz Cranberry juice "], ["4685","316",60,"2 oz Vodka (Skyy) "], ["4685","213",15,"1/2 oz Triple sec "], ["4685","186",15,"1/2 oz Lime juice "], ["4685","445",0.9,"1 dash Orange juice "], ["132","249",120,"4 oz Bourbon (Henry McKenna bourbon) "], ["132","323",210,"7 oz Sprite "], ["1855","249",60,"2 oz Bourbon "], ["1855","352",120,"4 oz bottled Water "], ["140","249",60,"2 oz Bourbon "], ["140","41",15,"1/2 oz Light cream "], ["141","249",60,"2 oz Bourbon "], ["141","487",15,"1/2 oz Dark Creme de Cacao "], ["141","259",150,"5 oz Milk "], ["141","20",1.25,"1/4 tsp grated Nutmeg "], ["144","477",5,"1 tsp superfine Sugar "], ["144","249",60,"2 oz Bourbon "], ["144","259",150,"5 oz Milk "], ["144","409",1.25,"1/4 tsp ground Cinnamon "], ["143","249",60,"2 oz Bourbon "], ["143","126",90,"3 oz Half-and-half "], ["143","477",5,"1 tsp superfine Sugar "], ["143","508",1.25,"1/4 tsp Vanilla extract "], ["143","20",1.25,"1/4 tsp grated Nutmeg "], ["5081","249",60,"2 oz Bourbon "], ["5081","358",30,"1 oz Ouzo "], ["4213","108",15,"1/2 oz J�germeister "], ["4213","501",15,"1/2 oz Ice 101 "], ["3572","115",30,"1 oz Goldschlager "], ["3572","265",30,"1 oz Kahlua "], ["3572","316",30,"1 oz Vodka "], ["1427","309",30,"1 oz Peach schnapps "], ["1427","270",5,"1 tsp Bailey's irish cream "], ["1427","82",2.5,"1/2 tsp Grenadine "], ["2508","125",60,"2 oz clear Schnapps of your choice "], ["2508","480",10,"2 tsp Irish cream "], ["2508","82",5,"1 tsp Grenadine "], ["151","378",60,"2 oz Scotch "], ["151","351",15,"1/2 oz Benedictine "], ["151","383",5,"1 tsp Sweet Vermouth "], ["153","192",45,"1 1/2 oz Brandy "], ["153","487",30,"1 oz Dark Creme de Cacao "], ["153","126",30,"1 oz Half-and-half "], ["153","20",1.25,"1/4 tsp grated Nutmeg "], ["17","192",45,"1 1/2 oz Brandy "], ["17","333",30,"1 oz white Creme de Cacao "], ["17","155",30,"1 oz Heavy cream "], ["17","20",1.25,"1/4 tsp grated Nutmeg "], ["158","192",60,"2 oz Brandy "], ["158","130",150,"5 oz Club soda "], ["163","192",75,"2 1/2 oz Brandy "], ["163","424",30,"1 oz Lemon juice "], ["163","477",5,"1 tsp superfine Sugar "], ["163","130",120,"4 oz Club soda "], ["174","383",45,"1 1/2 oz Sweet Vermouth "], ["174","192",60,"2 oz Brandy "], ["174","106",0.9,"1 dash Bitters "], ["175","315",10,"1/3 oz Grand Marnier "], ["175","309",10,"1/3 oz Peach schnapps "], ["175","261",10,"1/3 oz Pineapple juice "], ["6183","462",15,"1/2 oz Tequila "], ["6183","131",15,"1/2 oz Tabasco sauce "], ["1255","304",15,"1/2 oz Rum "], ["1255","316",15,"1/2 oz Vodka "], ["1255","445",120,"4 oz Orange juice "], ["1673","465",15,"1/2 oz White chocolate liqueur (Godiva) "], ["1673","270",10,"1/3 oz Bailey's irish cream "], ["1673","114",10,"1/3 oz Butterscotch schnapps "], ["1673","126",30,"1 oz Half-and-half "], ["5874","105",45,"1 1/2 oz dry Sherry "], ["5874","88",45,"1 1/2 oz Dry Vermouth "], ["5874","170",1.25,"1/4 tsp Anis "], ["5874","106",0.9,"1 dash Bitters "], ["2491","464",30,"1 oz Peppermint schnapps "], ["2491","304",30,"1 oz Rum (Bacardi) "], ["1552","202",10,"1/3 oz Gold tequila (Cuervo) "], ["1552","82",10,"1/3 oz Grenadine (Rose's) "], ["1552","22",10,"1/3 oz 7-Up "], ["3965","316",20,"2 cl Vodka "], ["3965","227",20,"2 cl Banana liqueur "], ["3965","266",200,"20 cl Sour mix "], ["3965","22",50,"5 cl 7-Up "], ["5244","349",45,"1 1/2 oz A�ejo rum "], ["5244","487",15,"1/2 oz Dark Creme de Cacao "], ["5244","424",15,"1/2 oz Lemon juice "], ["5244","477",10,"2 tsp superfine Sugar "], ["5244","250",120,"4 oz cold Tea "], ["178","179",45,"1 1/2 oz Cherry brandy "], ["178","387",30,"1 oz Dark rum "], ["178","214",30,"1 oz Light rum "], ["178","213",15,"1/2 oz Triple sec "], ["178","412",15,"1/2 oz Creme de Noyaux "], ["178","266",45,"1 1/2 oz Sour mix "], ["178","445",45,"1 1/2 oz Orange juice "], ["4973","375",15,"1/2 oz Amaretto "], ["4973","274",15,"1/2 oz Melon liqueur "], ["4973","372",30,"1 oz Cranberry juice "], ["4066","383",22.5,"3/4 oz Sweet Vermouth "], ["4066","330",45,"1 1/2 oz Port "], ["4066","213",1.25,"1/4 tsp Triple sec "], ["179","376",45,"1 1/2 oz Gin "], ["179","88",5,"1 tsp Dry Vermouth "], ["179","445",15,"1/2 oz Orange juice "], ["910","276",90,"3 oz Root beer schnapps "], ["910","323",270,"9 oz Sprite "], ["4927","304",30,"1 oz Rum "], ["4927","316",30,"1 oz Vodka "], ["4927","376",30,"1 oz Gin "], ["4927","261",3.7,"1 splash Pineapple juice "], ["4927","272",3.7,"1 splash Razzmatazz "], ["4927","266",3.7,"1 splash Sour mix "], ["4927","392",60,"1-2 oz Beer "], ["185","264",15,"1/2 oz Peanut liqueur "], ["185","333",15,"1/2 oz white Creme de Cacao "], ["185","41",60,"2 oz Light cream "], ["3178","214",22.5,"3/4 oz Light rum "], ["3178","376",22.5,"3/4 oz Gin "], ["3178","88",22.5,"3/4 oz Dry Vermouth "], ["4352","375",30,"1 oz Amaretto "], ["4352","270",30,"1 oz Bailey's irish cream "], ["4352","265",30,"1 oz Kahlua "], ["4352","71",30,"1 oz Everclear "], ["4352","114",30,"1 oz Butterscotch schnapps "], ["5856","316",15,"1/2 oz Vodka "], ["5856","54",15,"1/2 oz Chambord raspberry liqueur "], ["5856","322",15,"1/2 oz Peachtree schnapps "], ["5856","372",15,"1/2 oz Cranberry juice "], ["1519","132",20,"2/3 oz Cinnamon schnapps (Hot 100) "], ["1519","131",10,"1/3 oz Tabasco sauce "], ["2087","301",150,"5 oz Red wine, french "], ["2087","316",210,"7 oz Vodka "], ["3071","249",45,"1 1/2 oz Bourbon "], ["3071","352",180,"6 oz cold Water "], ["1849","249",24,"4/5 oz Bourbon "], ["1849","131",6,"1/5 oz Tabasco sauce "], ["3926","316",45,"1 1/2 oz Vodka "], ["3926","370",90,"3 oz Beef bouillon, chilled "], ["3926","258",0.9,"1 dash Worcestershire sauce "], ["3926","51",0.9,"1 dash Salt "], ["3926","168",0.9,"1 dash Black pepper "], ["3748","505",480,"16 oz Malt liquor (Schlitz) "], ["3748","85",60,"2 oz 151 proof rum (Lemon Hart Demerara) "], ["1802","316",75,"2 1/2 oz Vodka "], ["1802","370",90,"3 oz Beef bouillon "], ["1802","424",5,"1 tsp Lemon juice "], ["1802","131",0.9,"1 dash Tabasco sauce "], ["1802","258",0.9,"1 dash Worcestershire sauce "], ["1802","188",0.9,"1 dash Celery salt "], ["5884","270",10,"1/3 oz Bailey's irish cream "], ["5884","265",10,"1/3 oz Kahlua "], ["5884","475",10,"1/3 oz Sambuca "], ["3543","108",30,"1 oz J�germeister "], ["3543","340",30,"1 oz Barenjager "], ["192","387",60,"2 oz Dark rum "], ["192","424",30,"1 oz Lemon juice "], ["192","82",2.5,"1/2 tsp Grenadine "], ["192","20",1.25,"1/4 tsp grated Nutmeg "], ["193","108",15,"1/2 oz J�germeister "], ["193","145",15,"1/2 oz Rumple Minze "], ["1464","165",45,"1 1/2 oz Strawberry schnapps "], ["1464","261",120,"4 oz Pineapple juice "], ["1717","76",10,"1/3 oz George Dickel "], ["1717","122",10,"1/3 oz Jack Daniels "], ["1717","471",10,"1/3 oz Jim Beam "], ["1717","82",0.9,"1 dash Grenadine "], ["4542","349",45,"1 1/2 oz A�ejo rum "], ["4542","231",15,"1/2 oz Apricot brandy "], ["4542","261",30,"1 oz Pineapple juice "], ["1527","214",45,"1 1/2 oz Light rum "], ["1527","512",30,"1 oz Dubonnet Blanc "], ["1527","106",0.9,"1 dash Bitters "], ["1704","17",30,"1 oz Mezcal "], ["1704","115",30,"1 oz Goldschlager "], ["4210","378",30,"1 oz Scotch "], ["4210","114",30,"1 oz Butterscotch schnapps "], ["4210","375",30,"1 oz Amaretto "], ["5499","114",30,"1 oz Butterscotch schnapps "], ["5499","270",30,"1 oz Bailey's irish cream "], ["5499","259",60,"2 oz Milk "], ["5499","427",30,"1 oz crushed Ice "], ["5355","114",14.75,"1/2 shot Butterscotch schnapps "], ["5355","270",14.75,"1/2 shot Bailey's irish cream "], ["4512","114",14.75,"1/2 shot Butterscotch schnapps "], ["4512","375",14.75,"1/2 shot Amaretto "], ["1685","114",44.25,"1 1/2 shot Butterscotch schnapps "], ["1685","240",14.75,"1/2 shot Coffee liqueur "], ["2164","114",14.75,"1/2 shot Butterscotch schnapps "], ["2164","270",14.75,"1/2 shot Bailey's irish cream "], ["2307","114",14.75,"1/2 shot Butterscotch schnapps "], ["2307","480",14.75,"1/2 shot Irish cream "], ["1661","309",20,"2/3 oz Peach schnapps "], ["1661","270",10,"1/3 oz Bailey's irish cream "], ["2432","114",15,"1/2 oz Butterscotch schnapps "], ["2432","270",15,"1/2 oz Bailey's irish cream "], ["2432","247",5,"1 tsp Cherry liqueur "], ["5382","270",22.5,"3/4 oz Bailey's irish cream "], ["5382","114",22.5,"3/4 oz Butterscotch schnapps "], ["5382","36",22.5,"3/4 oz Malibu rum "], ["5382","261",22.5,"3/4 oz Pineapple juice "], ["3502","108",22.5,"3/4 oz J�germeister "], ["3502","114",7.5,"1/4 oz Butterscotch schnapps "], ["5852","192",15,"1/2 oz Brandy "], ["5852","231",15,"1/2 oz Apricot brandy "], ["5852","170",15,"1/2 oz Anis "], ["5852","205",15,"1/2 oz White Creme de Menthe "], ["3731","316",60,"2 oz Vodka (Absolut) "], ["3731","146",60,"2 oz Midori melon liqueur "], ["3731","445",90,"3 oz fresh Orange juice "], ["5976","375",15,"1/2 oz Amaretto "], ["5976","240",15,"1/2 oz Coffee liqueur "], ["5976","464",15,"1/2 oz Peppermint schnapps "], ["4948","97",30,"1 oz RedRum "], ["4948","497",180,"6 oz Hawaiian Punch "], ["4948","227",0.9,"1 dash Banana liqueur (99 Bananas) "], ["4862","304",37.5,"1 1/4 oz Captain Morgan's Rum "], ["4862","166",22.5,"3/4 oz Orange Curacao "], ["4862","211",37.5,"1 1/4 oz Sweet and sour "], ["2279","462",37.5,"1 1/4 oz Tequila "], ["2279","301",37.5,"1 1/4 oz Red wine "], ["2279","213",30,"1 oz Triple sec "], ["2279","266",195,"6 1/2 oz Sour mix "], ["2279","388",3.7,"1 splash Lemon-lime soda "], ["2279","186",0.9,"1 dash Lime juice "], ["200","462",60,"2 oz Tequila "], ["200","424",60,"2 oz Lemon juice "], ["200","213",10,"2 tsp Triple sec "], ["200","381",10,"2 tsp Drambuie "], ["200","477",2.5,"1/2 tsp superfine Sugar "], ["200","106",0.9,"1 dash Bitters "], ["1985","261",270,"9 oz Pineapple juice "], ["1985","186",180,"6 oz Lime juice "], ["1985","214",90,"3 oz Light rum "], ["1985","335",45,"1 1/2 oz Spiced rum "], ["1985","375",45,"1 1/2 oz Amaretto "], ["2682","342",45,"1 1/2 oz Southern Comfort "], ["2682","249",15,"1/2 oz Bourbon (Old Grandad) "], ["2682","131",0.9,"1 dash Tabasco sauce "], ["2998","378",45,"1 1/2 oz Scotch "], ["2998","297",15,"1/2 oz Blue Curacao "], ["2998","333",15,"1/2 oz white Creme de Cacao "], ["206","22",360,"12 oz 7-Up or Sprite "], ["206","316",60,"2 oz Vodka (Absolut) "], ["206","115",45,"1 1/2 oz Goldschlager "], ["5879","36",15,"1/2 oz Malibu rum "], ["5879","342",15,"1/2 oz Southern Comfort "], ["5879","375",15,"1/2 oz Amaretto "], ["5879","266",3.7,"1 splash Sour mix "], ["5879","22",3.7,"1 splash 7-Up "], ["5879","82",3.7,"1 splash Grenadine "], ["4933","387",20,"2 cl Dark rum "], ["4933","240",20,"2 cl Coffee liqueur "], ["4978","114",22.13,"3/4 shot Butterscotch schnapps "], ["4978","270",7.38,"1/4 shot Bailey's irish cream "], ["4721","462",45,"1 1/2 oz Tequila "], ["4721","445",60,"2 oz Orange juice "], ["4721","261",60,"2 oz Pineapple juice "], ["4721","54",15,"1/2 oz Chambord raspberry liqueur "], ["209","173",45,"1 1/2 oz Canadian whisky "], ["209","179",15,"1/2 oz Cherry brandy "], ["209","445",7.5,"1 1/2 tsp Orange juice "], ["209","424",7.5,"1 1/2 tsp Lemon juice "], ["210","173",45,"1 1/2 oz Canadian whisky "], ["210","213",7.5,"1 1/2 tsp Triple sec "], ["210","106",0.9,"1 dash Bitters "], ["210","236",5,"1 tsp Powdered sugar "], ["2238","173",22.5,"3/4 oz Canadian whisky (Crown Royal) "], ["2238","324",75,"2 1/2 oz Canadian Apple cider "], ["5375","265",30,"1 oz Kahlua "], ["5375","422",30,"1 oz Cream "], ["5375","333",15,"1/2 oz Creme de Cacao "], ["5375","167",15,"1/2 oz Frangelico "], ["5955","316",14.75,"1/2 shot 100 proof Vodka "], ["5955","211",7.38,"1/4 shot Sweet and sour "], ["5955","445",3.7,"1 splash concentrated Orange juice "], ["5955","130",3.7,"1 splash Club soda "], ["5955","82",0.9,"1 dash Rose's Grenadine "], ["3339","344",360,"12 oz Dr. Pepper "], ["3339","85",37.5,"1 1/4 oz Bacardi 151 proof rum "], ["3339","375",22.5,"3/4 oz Amaretto "], ["4242","249",15,"1/2 oz Bourbon (Jim Beam) "], ["4242","375",15,"1/2 oz Amaretto "], ["214","431",22.5,"3/4 oz Coffee brandy "], ["214","316",22.5,"3/4 oz Vodka "], ["214","41",22.5,"3/4 oz Light cream "], ["5278","333",22.5,"3/4 oz white Creme de Cacao "], ["5278","10",22.5,"3/4 oz Creme de Banane "], ["5278","41",22.5,"3/4 oz Light cream "], ["215","376",45,"1 1/2 oz Gin "], ["215","176",15,"1/2 oz Maraschino liqueur "], ["215","445",30,"1 oz Orange juice "], ["1325","324",120,"4 oz Apple cider "], ["1325","335",15,"1/2 oz Captain Morgan's Spiced rum "], ["1325","468",15,"1/2 oz Coconut rum (Parrot Bay) "], ["1325","40",15,"1/2 oz Sour Apple Pucker "], ["5295","335",29.5,"1 shot Spiced rum (Captain Morgan's) "], ["5295","199",600,"20 oz Mountain Dew "], ["1996","335",29.5,"1 shot Spiced rum (Captain Morgan's) "], ["1996","344",180,"6 oz Dr. Pepper "], ["3871","335",45,"1 1/2 oz Captain Morgan's Spiced rum "], ["3871","314",90,"3 oz Cream soda "], ["2248","376",45,"1 1/2 oz Gin "], ["2248","408",5,"1 tsp Vermouth "], ["2248","205",15,"1/2 oz White Creme de Menthe "], ["5167","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["5167","22",120,"4 oz 7-Up "], ["216","335",30,"1 oz Spiced rum (Cpt. Morgan) "], ["216","115",30,"1 oz Goldschlager "], ["3317","304",29.5,"1 shot Captain Morgan's Silver Rum "], ["3317","468",44.25,"1 1/2 shot Parrot Bay Coconut rum "], ["3317","445",3.7,"1 splash Orange juice "], ["3317","372",3.7,"1 splash Cranberry juice "], ["4544","83",90,"3 oz Ginger ale "], ["4544","415",90,"3 oz Apple-cranberry juice "], ["4544","335",30,"1 oz Captain Morgan's Spiced rum "], ["4899","40",30,"1 oz Sour Apple Pucker "], ["4899","114",22.5,"3/4 oz Butterscotch schnapps "], ["217","333",15,"1/2 oz white Creme de Cacao "], ["217","10",7.5,"1/4 oz Creme de Banane "], ["217","265",7.5,"1/4 oz Kahlua "], ["4194","442",420,"13-14 oz Guinness stout "], ["4194","270",30,"1 oz Bailey's irish cream "], ["4194","21",30,"1 oz Whiskey (Jameson's) "], ["1931","304",20,"2 cl Rum (Bacardi superior) "], ["1931","359",10,"1 cl Cointreau "], ["1931","196",10,"1 cl White port "], ["218","349",45,"1 1/2 oz A�ejo rum "], ["218","176",15,"1/2 oz Maraschino liqueur "], ["218","213",5,"1 tsp Triple sec "], ["218","82",5,"1 tsp Grenadine "], ["2575","316",30,"1 oz SKYY Vodka "], ["2575","214",7.5,"1/4 oz Light rum (Bacardi) "], ["2575","36",7.5,"1/4 oz Malibu rum "], ["2575","261",120,"4 oz Pineapple juice "], ["2575","82",3.7,"1 splash Grenadine "], ["5596","391",45,"1 1/2 oz Vanilla vodka (Stoli) "], ["5596","36",22.5,"3/4 oz Malibu rum "], ["5596","261",3.7,"1 splash Pineapple juice "], ["2312","251",45,"1 1/2 oz Watermelon schnapps "], ["2312","36",15,"1/2 oz Malibu rum "], ["2312","213",45,"1 1/2 oz Triple sec "], ["2312","445",150,"5 oz Orange juice "], ["2312","2",90,"3 oz Lemonade "], ["2312","424",15,"1/2 oz Lemon juice "], ["1396","3",29.5,"1 shot Cognac (Hennessey) "], ["1396","505",360,"12 oz Malt liquor "], ["2086","309",30,"1 oz Peach schnapps "], ["2086","10",30,"1 oz Creme de Banane "], ["2086","36",30,"1 oz Malibu rum "], ["2086","445",120,"4 oz Orange juice "], ["2086","261",60,"2 oz Pineapple juice "], ["2086","422",60,"2 oz Cream "], ["3281","376",30,"3 cl Gin (Tanqueray) "], ["3281","425",10,"1 cl Pisang Ambon "], ["3281","186",10,"1 cl Lime juice (Monin) "], ["3281","290",70,"Fill with 7 cl Schweppes Russchian "], ["3450","316",45,"1 1/2 oz Vodka "], ["3450","443",30,"1 oz Soda water "], ["3450","416",75,"2 1/2 oz Grape juice "], ["4298","449",22.5,"3/4 oz Apple schnapps "], ["4298","114",22.5,"3/4 oz Butterscotch schnapps "], ["5333","342",45,"1 1/2 oz Southern Comfort "], ["5333","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["5333","309",30,"1 oz Peach schnapps "], ["5333","316",15,"1/2 oz Vodka (or more to taste) "], ["5333","161",180,"4-6 oz sweet Iced tea "], ["2545","316",30,"1 oz Vodka "], ["2545","213",30,"1 oz Triple sec "], ["2545","186",30,"1 oz Lime juice "], ["2545","297",7.5,"1/4 oz Blue Curacao "], ["1268","295",60,"2 oz Champagne "], ["1268","401",60,"2 oz Strega "], ["1793","270",15,"1/2 oz Bailey's irish cream "], ["1793","114",15,"1/2 oz Butterscotch schnapps "], ["1793","132",7.5,"1/4 oz Cinnamon schnapps "], ["1425","115",5,"1 tsp Goldschlager "], ["1425","270",60,"2 oz Bailey's irish cream "], ["1425","240",60,"2 oz Coffee liqueur "], ["221","214",60,"2 oz Light rum "], ["221","213",7.5,"1 1/2 tsp Triple sec "], ["221","186",7.5,"1 1/2 tsp Lime juice "], ["221","176",7.5,"1 1/2 tsp Maraschino liqueur "], ["3539","376",45,"1 1/2 oz Gin "], ["3539","88",30,"1 oz Dry Vermouth "], ["3539","205",30,"1 oz White Creme de Menthe "], ["223","376",45,"1 1/2 oz Gin "], ["223","88",30,"1 oz Dry Vermouth "], ["223","15",30,"1 oz Green Creme de Menthe "], ["225","304",180,"6 oz Rum "], ["225","364",360,"12 oz Black Cherry Cola "], ["3961","445",40,"4 cl Orange juice "], ["3961","316",30,"3 cl Vodka "], ["3961","111",20,"2 cl Advocaat "], ["3961","424",10,"1 cl Lemon juice "], ["1086","462",45,"1 1/2 oz Tequila "], ["1086","309",30,"1 oz Peach schnapps "], ["1086","297",30,"1 oz Blue Curacao "], ["1086","266",120,"4 oz Sour mix "], ["5915","182",45,"1 1/2 oz Crown Royal "], ["5915","309",15,"1/2 oz Peach schnapps "], ["4522","3",30,"1 oz Cognac "], ["4522","359",30,"1 oz Cointreau "], ["4522","424",30,"1 oz Lemon juice "], ["4522","214",45,"1 1/2 oz Light rum "], ["227","378",45,"1 1/2 oz Scotch "], ["227","42",30,"1 oz Irish whiskey "], ["227","424",15,"1/2 oz Lemon juice "], ["227","106",0.9,"1 dash Bitters "], ["3611","270",29.5,"1 shot Bailey's irish cream "], ["3611","186",14.75,"1/2 shot Lime juice "], ["3611","85",14.75,"1/2 shot 151 proof rum "], ["1299","270",44.5,"1 jigger Bailey's irish cream "], ["1299","186",44.5,"1 jigger Lime juice "], ["4982","435",45,"1 1/2 oz Orange vodka (Stoli Ohranj) "], ["4982","97",45,"1 1/2 oz RedRum "], ["4982","137",120,"4 oz Grapefruit-lemon soda (Squirt) "], ["4907","316",30,"1 oz Vodka "], ["4907","82",7.5,"1/4 oz Grenadine "], ["4907","270",7.5,"1/4 oz Bailey's irish cream "], ["4351","54",30,"1 oz Chambord raspberry liqueur "], ["4351","316",30,"1 oz Vodka "], ["4351","372",0.9,"1 dash Cranberry juice "], ["4351","261",3.7,"1 splash Pineapple juice "], ["5419","165",60,"2 oz Strawberry schnapps "], ["5419","270",15,"1/2 oz Bailey's irish cream "], ["5419","82",10,"2 tsp Grenadine "], ["4847","81",120,"4 oz Mad Dog 20/20 (any flavor) "], ["4847","295",180,"6 oz cheap Champagne "], ["4847","316",60,"2 oz Vodka "], ["231","387",45,"1 1/2 oz Dark rum "], ["231","179",15,"1/2 oz Cherry brandy "], ["231","424",15,"1/2 oz Lemon juice "], ["231","477",2.5,"1/2 tsp superfine Sugar "], ["232","192",45,"1 1/2 oz Brandy "], ["232","383",45,"1 1/2 oz Sweet Vermouth "], ["232","106",0.9,"1 dash Bitters "], ["233","231",30,"1 oz Apricot brandy "], ["233","368",30,"1 oz Sloe gin "], ["233","424",30,"1 oz Lemon juice "], ["5914","18",20,"2 cl Charleston Follies "], ["5914","133",20,"2 cl Aquavit "], ["5914","186",10,"1 cl Lime juice "], ["5914","29",30,"3 cl indian Tonic water "], ["5313","378",40,"4 cl Scotch "], ["5313","297",15,"1 1/2 cl Blue Curacao "], ["5313","88",0.9,"1 dash Dry Vermouth (Martini) "], ["5313","433",0.9,"1 dash Orange bitters "], ["3089","215",20,"2 cl Tia maria "], ["3089","217",10,"1 cl Hazelnut liqueur "], ["3089","270",10,"1 cl Bailey's irish cream or cream "], ["3089","422",5,"1/2 cl Cream "], ["4114","376",45,"1 1/2 oz Gin "], ["4114","213",15,"1/2 oz Triple sec "], ["4114","424",10,"2 tsp Lemon juice "], ["234","270",22.5,"3/4 oz Bailey's irish cream "], ["234","261",22.5,"3/4 oz Pineapple juice "], ["234","82",7.5,"1/4 oz Grenadine "], ["236","214",45,"1 1/2 oz Light rum "], ["236","179",15,"1/2 oz Cherry brandy "], ["236","41",15,"1/2 oz Light cream "], ["4368","342",10,"1/3 oz Southern Comfort "], ["4368","375",10,"1/3 oz Amaretto "], ["4368","82",10,"1/3 oz Grenadine "], ["1382","316",30,"1 oz Vodka "], ["1382","333",45,"1 1/2 oz Creme de Cacao "], ["1382","82",22.5,"3/4 oz Grenadine "], ["2208","465",22.5,"3/4 oz White chocolate liqueur (Godet) "], ["2208","412",22.5,"Layered on 3/4 oz Creme de Noyaux "], ["2716","342",30,"1 oz Southern Comfort 100 proof "], ["2716","364",120,"4 oz Cherry Cola "], ["239","342",15,"1/2 oz Southern Comfort "], ["239","375",15,"1/2 oz Amaretto "], ["239","266",30,"1 oz Sour mix "], ["239","82",3.7,"1 splash Grenadine "], ["6157","465",22.5,"3/4 oz Godet White chocolate liqueur "], ["6157","179",7.5,"1/4 oz Cherry brandy "], ["5695","179",120,"4 oz Cherry brandy "], ["5695","175",240,"8 oz Coca-Cola "], ["5988","342",120,"4 oz Southern Comfort "], ["5988","316",120,"4 oz Vodka "], ["5988","445",300,"10 oz Orange juice "], ["243","309",15,"1/2 oz Peach schnapps "], ["243","342",15,"1/2 oz Southern Comfort "], ["5826","316",15,"1/2 oz Vodka "], ["5826","270",15,"1/2 oz Bailey's irish cream "], ["5826","333",15,"1/2 oz white Creme de Cacao "], ["5118","316",45,"1 1/2 oz Vodka "], ["5118","224",15,"1/2 oz Godiva liqueur "], ["5118","256",15,"1/2 oz Vanilla schnapps "], ["2958","375",10,"1/3 oz Amaretto "], ["2958","487",10,"1/3 oz Dark Creme de Cacao "], ["2958","480",10,"1/3 oz Irish cream "], ["244","265",30,"1 oz Kahlua "], ["244","316",15,"1/2 oz Vodka "], ["244","64",150,"5 oz Chocolate ice-cream "], ["5950","333",15,"1/2 oz white Creme de Cacao "], ["5950","487",15,"1/2 oz Dark Creme de Cacao "], ["5950","480",15,"1/2 oz Irish cream "], ["5950","259",45,"1 1/2 oz Milk "], ["3846","375",30,"1 oz Amaretto "], ["3846","316",150,"0.5 oz Vodka "], ["3846","377",60,"2 oz Chocolate milk "], ["3846","82",5,"1 tsp Grenadine "], ["1088","333",29.5,"1 shot white Creme de Cacao "], ["1088","316",29.5,"1 shot Vodka "], ["5531","224",14.75,"1/2 shot Godiva liqueur "], ["5531","340",14.75,"1/2 shot Barenjager "], ["1331","316",60,"2 oz Vodka "], ["1331","333",15,"1/2 oz Creme de Cacao "], ["4403","391",75,"2 1/2 oz Vanilla vodka (Stoli) "], ["4403","361",15,"1/2 oz Chocolate liqueur (Godiva) "], ["1385","361",14.75,"1/2 shot Chocolate liqueur (Droste) "], ["1385","259",14.75,"1/2 shot Milk "], ["1385","375",0.9,"1 dash Amaretto "], ["246","387",30,"1 oz Dark rum "], ["246","85",15,"1/2 oz 151 proof rum "], ["246","487",15,"1/2 oz Dark Creme de Cacao "], ["246","205",10,"2 tsp White Creme de Menthe "], ["246","41",15,"1/2 oz Light cream "], ["5569","78",45,"1 1/2 oz Absolut Mandrin "], ["5569","333",45,"1 1/2 oz white Creme de Cacao "], ["1278","464",30,"1 oz Peppermint schnapps "], ["1278","377",90,"3 oz Chocolate milk "], ["1669","270",45,"1 1/2 oz Bailey's irish cream "], ["1669","54",45,"1 1/2 oz Chambord raspberry liqueur "], ["247","488",45,"1 1/2 oz Raspberry vodka (Stoli) "], ["247","333",30,"1 oz white Creme de Cacao "], ["2959","310",240,"8 oz Hot chocolate "], ["2959","198",29.5,"1 shot Aftershock "], ["5277","391",22.5,"3/4 oz Vanilla vodka (Stoli) "], ["5277","487",22.5,"3/4 oz Dark Creme de Cacao "], ["5277","291",15,"1/2 oz Cherry juice "], ["5277","422",3.7,"1 splash Cream "], ["5277","443",3.7,"1 splash Soda water "], ["5307","316",30,"1 oz Vodka "], ["5307","205",15,"1/2 oz White Creme de Menthe "], ["5307","333",15,"1/2 oz white Creme de Cacao "], ["3955","316",20,"2 cl Vodka "], ["3955","270",20,"2 cl Bailey's irish cream "], ["1898","206",14.75,"1/2 shot Eggnog "], ["1898","464",14.75,"1/2 shot Peppermint schnapps "], ["5742","462",75,"2 1/2 oz a�ejo or white Tequila "], ["5742","82",30,"1 oz Grenadine "], ["5742","200",30,"1 oz Rose's sweetened lime juice "], ["4248","85",30,"1 oz 151 proof rum (Bacardi) "], ["4248","227",30,"1 oz Banana liqueur (99 Bananas) "], ["4248","373",90,"3 oz Pina colada mix "], ["5889","274",10,"1/3 oz Melon liqueur "], ["5889","82",10,"1/3 oz Grenadine "], ["5889","480",10,"1/3 oz Irish cream "], ["5125","132",30,"1 oz Cinnamon schnapps (Goldschlagger) "], ["5125","391",60,"2 oz Vanilla vodka (Stoli Vanil) "], ["5305","115",29.5,"1 shot Goldschlager "], ["5305","461",257,"1 cup Apple juice "], ["5123","462",90,"3 oz Tequila "], ["5123","425",60,"2 oz Pisang Ambon "], ["5123","200",30,"1 oz Rose's sweetened lime juice "], ["4148","407",30,"1 oz Lemon vodka "], ["4148","2",60,"2 oz Lemonade "], ["4148","372",60,"2 oz Cranberry juice "], ["4148","186",3.7,"1 splash Lime juice "], ["3126","312",30,"1 oz Absolut Citron "], ["3126","315",15,"1/2 oz Grand Marnier "], ["3126","266",15,"1-1/2 oz Sour mix "], ["3126","22",30,"1 oz 7-Up "], ["3422","259",90,"3 oz Milk "], ["3422","468",22.5,"3/4 oz Coconut rum "], ["3422","55",22.5,"3/4 oz Cream of coconut "], ["3422","155",22.5,"3/4 oz Heavy cream "], ["3422","333",22.5,"3/4 oz Creme de Cacao "], ["254","316",45,"1 1/2 oz Vodka "], ["254","379",90,"3 oz Tomato juice "], ["254","321",30,"1 oz Clamato juice "], ["146","111",30,"1 oz Advocaat "], ["146","36",15,"1/2 oz Malibu rum "], ["146","342",3.7,"1 splash Southern Comfort "], ["146","261",60,"2 oz Pineapple juice "], ["5990","108",30,"1 oz J�germeister "], ["5990","85",30,"1 oz Bacardi 151 proof rum "], ["5990","1",7.5,"1/4 oz Firewater "], ["5990","145",7.5,"1/4 oz Rumple Minze "], ["255","375",15,"1/2 oz Amaretto "], ["255","333",15,"1/2 oz white Creme de Cacao "], ["255","213",15,"1/2 oz Triple sec "], ["255","316",15,"1/2 oz Vodka "], ["255","10",15,"1/2 oz Creme de Banane "], ["255","41",30,"1 oz Light cream "], ["5926","316",20,"2 cl Vodka "], ["5926","265",20,"2 cl Kahlua "], ["5926","83",200,"20 cl Ginger ale "], ["5154","383",30,"1 oz Sweet Vermouth "], ["5154","368",15,"1/2 oz Sloe gin "], ["5154","181",15,"1/2 oz Muscatel Wine "], ["3781","375",15,"1/2 oz Amaretto "], ["3781","270",15,"1/2 oz Bailey's irish cream "], ["3781","487",15,"1/2 oz Dark Creme de Cacao "], ["3781","215",15,"1/2 oz Tia maria "], ["3781","126",7.5,"1/4 oz Half-and-half "], ["3781","175",3.7,"1 splash Coca-Cola "], ["3494","214",15,"1/2 oz Light rum "], ["3494","316",15,"1/2 oz Vodka "], ["3494","265",15,"1/2 oz Kahlua "], ["3494","270",30,"1 oz Bailey's irish cream "], ["3494","41",30,"1 oz Light cream "], ["3494","175",30,"1 oz Coca-Cola "], ["5736","277",40,"4 cl Batida de Coco "], ["5736","142",20,"2 cl White rum "], ["5736","261",80,"8 cl Pineapple juice "], ["1756","376",30,"1 oz Gin "], ["1756","265",30,"1 oz Kahlua "], ["1756","422",60,"2 oz Cream "], ["259","256",30,"1 oz Vanilla schnapps "], ["259","36",30,"1 oz Malibu rum "], ["259","422",90,"3 oz Cream "], ["5029","297",60,"2 oz Blue Curacao "], ["5029","381",60,"2 oz Drambuie "], ["5952","431",22.5,"3/4 oz Coffee brandy "], ["5952","205",22.5,"3/4 oz White Creme de Menthe "], ["5952","41",22.5,"3/4 oz Light cream "], ["6108","265",11.25,"3/8 oz Kahlua "], ["6108","333",7.5,"1/4 oz Creme de Cacao "], ["6108","167",3.75,"1/8 oz Frangelico "], ["6108","270",7.5,"1/4 oz Bailey's irish cream "], ["264","375",29.5,"1 shot Amaretto "], ["264","175",360,"8-12 oz Coca-Cola "], ["5214","265",10,"1/3 oz Kahlua "], ["5214","375",10,"1/3 oz Amaretto "], ["5214","3",10,"1/3 oz Cognac (Hennessy) "], ["3064","462",45,"1 1/2 oz chilled Tequila "], ["3064","379",45,"1 1/2 oz Tomato juice "], ["3064","131",3.6,"1-4 dash Tabasco sauce "], ["3064","168",3.6,"1-4 dash Black pepper "], ["5902","62",37.5,"1 1/4 oz Yukon Jack "], ["5902","269",22.5,"3/4 oz Strawberry liqueur "], ["5902","445",120,"4 oz Orange juice "], ["3135","316",30,"1 oz Vodka "], ["3135","342",30,"1 oz Southern Comfort "], ["3135","368",15,"1/2 oz Sloe gin "], ["3135","375",30,"1 oz Amaretto "], ["3135","445",30,"1 oz Orange juice "], ["3135","372",60,"2 oz Cranberry juice "], ["3135","22",3.7,"1 splash 7-Up "], ["266","88",75,"2 1/2 oz Dry Vermouth "], ["266","192",5,"1 tsp Brandy "], ["266","213",2.5,"1/2 tsp Triple sec "], ["266","236",2.5,"1/2 tsp Powdered sugar "], ["266","106",0.9,"1 dash Bitters "], ["1475","192",60,"2 oz Brandy "], ["1475","327",30,"1 oz Campari "], ["1475","424",30,"1 oz fresh Lemon juice "], ["2533","342",90,"3 oz Southern Comfort "], ["2533","88",22.5,"3/4 oz Dry Vermouth (Noilly Prat) "], ["269","387",45,"1 1/2 oz Dark rum "], ["269","479",15,"1/2 oz Galliano "], ["269","487",10,"2 tsp Dark Creme de Cacao "], ["2554","316",29.5,"1 shot Vodka "], ["2554","270",29.5,"1 shot Bailey's irish cream "], ["3044","265",15,"1/2 oz Kahlua "], ["3044","270",15,"1/2 oz Bailey's irish cream "], ["3044","85",5,"1 tsp Bacardi 151 proof rum "], ["3457","400",22.5,"3/4 oz Mandarine Napoleon "], ["3457","375",15,"1/2 oz Amaretto di Saranno "], ["3457","10",15,"1/2 oz Creme de Banane (Bols) "], ["3457","126",30,"1 oz Half-and-half "], ["3457","82",0.9,"1 dash Grenadine (Tavern) "], ["4036","444",29.5,"1 shot Hot Damn "], ["4036","464",29.5,"1 shot Peppermint schnapps "], ["1984","182",30,"1 oz Crown Royal "], ["1984","174",15,"1/2 oz Blackberry brandy "], ["1984","22",15,"1/2 oz 7-Up "], ["4335","270",30,"1 oz Bailey's irish cream "], ["4335","114",15,"1/2 oz Butterscotch schnapps "], ["6103","82",15,"1/2 oz Grenadine "], ["6103","237",15,"1/2 oz Raspberry liqueur (Chambord) "], ["6103","198",7.5,"1/4 oz Aftershock "], ["6103","365",15,"1/2 oz Absolut Kurant "], ["2652","316",37.5,"1 1/4 oz Vodka "], ["2652","83",180,"6 oz Ginger ale "], ["5692","490",45,"1 1/2 oz Citrus vodka (Smirnoff) "], ["5692","462",22.5,"3/4 oz Tequila "], ["5692","297",30,"1 oz Blue Curacao "], ["5692","266",30,"1 oz Sour mix "], ["277","88",22.5,"3/4 oz Dry Vermouth "], ["277","376",22.5,"3/4 oz Gin "], ["277","28",22.5,"3/4 oz Dubonnet Rouge "], ["278","192",45,"1 1/2 oz Brandy "], ["278","280",15,"1/2 oz Fernet Branca "], ["278","205",30,"1 oz White Creme de Menthe "], ["3650","365",60,"2 oz Absolut Kurant "], ["3650","315",30,"1 oz Grand Marnier "], ["3650","186",3.7,"1 splash Lime juice "], ["3650","372",3.7,"1 splash Cranberry juice "], ["279","312",37.5,"1 1/4 oz Absolut Citron "], ["279","186",7.5,"1/4 oz Lime juice "], ["279","213",7.5,"1/4 oz Triple sec or Cointreau "], ["279","372",64.25,"1/4 cup Cranberry juice "], ["2446","36",45,"1 1/2 oz Malibu rum "], ["2446","309",45,"1 1/2 oz Peach schnapps "], ["2446","82",3.7,"1 splash Grenadine "], ["5714","316",45,"1 1/2 oz Vodka (Stolichnaya) "], ["5714","3",15,"1/2 oz Cognac "], ["5714","179",15,"1/2 oz Cherry brandy "], ["4341","316",120,"4 oz Vodka "], ["4341","304",120,"4 oz Rum "], ["4341","445",360,"12 oz Orange juice "], ["2609","85",30,"1 oz Bacardi 151 proof rum "], ["2609","145",30,"1 oz Rumple Minze "], ["2609","232",30,"1 oz Wild Turkey, 101 proof "], ["5418","136",14.75,"1/2 shot Blackberry schnapps (Blackhaus) "], ["5418","372",14.75,"1/2 shot Cranberry juice "], ["3768","316",45,"1 1/2 oz Vodka "], ["3768","372",60,"2 oz Cranberry juice "], ["3768","418",60,"2 oz Collins mix "], ["5275","375",45,"1 1/2 oz Amaretto "], ["5275","372",120,"4 oz Cranberry juice "], ["6212","463",45,"1 1/2 oz Cranberry vodka (Finlandia) "], ["6212","514",22.5,"3/4 oz Sour apple liqueur "], ["6212","372",15,"1/2 oz Cranberry juice "], ["1122","445",60,"2 oz Orange juice "], ["1122","372",60,"2 oz Cranberry juice "], ["5721","462",45,"1 1/2 oz Tequila (Cuervo) "], ["5721","200",30,"1 oz Rose's sweetened lime juice "], ["5721","213",45,"1 1/2 oz Triple sec "], ["5721","211",45,"1 1/2 oz Sweet and sour "], ["5721","372",60,"2 oz Cranberry juice "], ["1441","463",15,"1/2 oz Cranberry vodka or schnapps "], ["1441","49",15,"1/2 oz Wild Spirit liqueur "], ["1052","461",257,"1 cup Apple juice "], ["1052","259",257,"1 cup Milk "], ["6188","227",30,"1 oz Banana liqueur "], ["6188","328",60,"2 oz strawberry Daiquiri mix "], ["6188","445",60,"2 oz Orange juice "], ["281","167",15,"1/2 oz Frangelico "], ["281","270",15,"1/2 oz Bailey's irish cream "], ["281","333",7.5,"1/4 oz Creme de Cacao "], ["281","375",7.5,"1/4 oz Amaretto "], ["281","422",3.7,"1 splash Cream "], ["282","61",45,"1 1/2 oz Vanilla liqueur "], ["282","445",90,"3 oz Orange juice "], ["282","259",45,"1 1/2 oz Milk "], ["5911","333",30,"1 oz Creme de Cacao "], ["5911","167",30,"1 oz Frangelico "], ["5911","259",120,"4 oz Milk "], ["5045","375",30,"1 oz Amaretto "], ["5045","480",30,"1 oz Irish cream "], ["5045","309",30,"1 oz Peach schnapps "], ["5045","422",30,"1 oz Cream "], ["287","376",60,"2 oz Gin "], ["287","424",10,"2 tsp Lemon juice "], ["287","82",2.5,"1/2 tsp Grenadine "], ["287","451",15,"1/2 oz Tawny port "], ["2400","119",7.5,"1/4 oz Absolut Vodka "], ["2400","36",7.5,"1/4 oz Malibu rum "], ["2400","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["2400","34",7.5,"1/4 oz Maui "], ["2400","342",7.5,"1/4 oz Southern Comfort "], ["2400","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["2400","372",7.5,"1/4 oz Cranberry juice "], ["2400","323",7.5,"1/4 oz Sprite or 7-Up "], ["3979","297",30,"1 oz Blue Curacao "], ["3979","316",30,"1 oz Vodka "], ["3979","303",15,"1/2 oz White wine "], ["3979","82",15,"1/2 oz Grenadine "], ["5867","182",15,"1/2 oz Crown Royal "], ["5867","85",15,"1/2 oz 151 proof rum "], ["5867","462",15,"1/2 oz Tequila "], ["5350","85",30,"1 oz 151 proof rum "], ["5350","226",30,"1 oz Bacardi Limon "], ["5350","312",30,"1 oz Absolut Citron "], ["5350","145",30,"1 oz Rumple Minze "], ["5350","297",30,"1 oz Blue Curacao "], ["4307","65",135,"4 1/2 oz strawberry Guava juice "], ["4307","297",30,"1 oz Blue Curacao "], ["4307","316",30,"1 oz Vodka (Absolut) "], ["4320","62",30,"1 oz Yukon Jack "], ["4320","375",22.5,"3/4 oz Amaretto "], ["4320","372",67.5,"2 1/4 oz Cranberry juice "], ["5904","142",300,"30 cl White rum (Bacardi) "], ["5904","333",100,"10 cl white Creme de Cacao (Bols) "], ["5904","482",300,"30 cl hot Coffee "], ["5904","477",15,"3 tsp Sugar "], ["5904","422",200,"20 cl double Cream "], ["3669","349",75,"2 1/2 oz A�ejo rum "], ["3669","67",15,"1/2 oz Ricard "], ["3838","3",30,"1 oz Cognac "], ["3838","269",15,"1/2 oz Strawberry liqueur "], ["3838","359",15,"1/2 oz Cointreau "], ["3838","445",30,"1 oz Orange juice "], ["3838","424",0.9,"1 dash Lemon juice "], ["2401","342",30,"1 oz Southern Comfort "], ["2401","407",15,"1/2 oz Lemon vodka (Stoli) "], ["2401","445",90,"3 oz Orange juice "], ["5251","115",15,"1/2 oz Goldschlager "], ["5251","141",15,"1/2 oz Becherovka "], ["1603","108",30,"1 oz J�germeister "], ["1603","312",30,"1 oz Absolut Citron "], ["1603","2",300,"10 oz Lemonade "], ["1401","340",22.5,"3/4 oz Barenjager "], ["1401","145",22.5,"3/4 oz Rumple Minze "], ["1401","108",22.5,"3/4 oz J�germeister "], ["5348","214",44.5,"1 jigger Light rum "], ["5348","186",30,"1 oz Lime juice "], ["5348","477",5,"1 tsp Sugar "], ["3173","249",45,"1 1/2 oz Bourbon (Jim Beam) "], ["3173","462",45,"1 1/2 oz Tequila (Cuervo) "], ["5009","15",15,"1/2 oz Green Creme de Menthe "], ["5009","115",15,"1/2 oz Goldschlager "], ["1455","114",15,"1/2 oz Butterscotch schnapps (DeKuyper Buttershots) "], ["1455","15",7.5,"1/4 oz Green Creme de Menthe "], ["1455","270",7.5,"1/4 oz Bailey's irish cream "], ["1455","82",7.5,"1/4 oz Grenadine "], ["293","21",2250,"0.75 oz Whiskey (Black Velvet recommended) "], ["293","444",750,"0.25 oz Hot Damn "], ["2427","192",60,"2 oz Brandy "], ["2427","213",15,"1/2 oz Triple sec "], ["2427","124",5,"1 tsp Anisette "], ["295","316",22.5,"3/4 oz Vodka "], ["295","297",15,"1/2 oz Blue Curacao "], ["295","408",0.9,"1 dash Vermouth "], ["295","372",45,"1 1/2 oz Cranberry juice "], ["5218","462",180,"6 oz Tequila "], ["5218","55",240,"8 oz Cream of coconut "], ["5218","261",240,"8 oz Pineapple juice "], ["3815","319",60,"2 oz Gosling's Black rum "], ["3815","156",240,"8 oz Ginger beer "], ["1536","265",22.5,"3/4 oz Kahlua "], ["1536","115",3.75,"1/8 oz Goldschlager "], ["1536","259",3.75,"1/8 oz Milk "], ["297","214",45,"1 1/2 oz Light rum "], ["297","155",30,"1 oz Heavy cream "], ["297","333",15,"1/2 oz white Creme de Cacao "], ["3574","316",15,"1/2 oz Vodka "], ["3574","213",7.5,"1/4 oz Triple sec "], ["3574","229",22.5,"3/4 oz Lemon schnapps (Lemon Tattoo) "], ["3574","445",15,"1/4 - 1/2 oz Orange juice "], ["3574","126",22.5,"1/2 - 3/4 oz Half-and-half "], ["3574","82",3.75,"1/8 oz Grenadine "], ["5324","391",75,"2 1/2 oz Vanilla vodka (Stoli Vanil) "], ["5324","213",15,"1/2 oz Triple sec "], ["5324","22",75,"2 1/2 oz 7-Up "], ["3696","270",30,"1 oz Bailey's irish cream "], ["3696","462",30,"1 oz Tequila "], ["5547","119",30,"1 oz Absolut Vodka "], ["5547","417",30,"1 oz Coconut liqueur "], ["5547","375",30,"1 oz Amaretto "], ["5547","61",30,"1 oz Vanilla liqueur "], ["5665","85",30,"1 oz 151 proof rum "], ["5665","462",30,"Layer 1 oz Tequila "], ["5665","108",30,"Layer 1 oz J�germeister "], ["1686","145",6,"1/5 oz Rumple Minze "], ["1686","265",6,"1/5 oz Kahlua "], ["1686","15",6,"1/5 oz Green Creme de Menthe "], ["1686","270",6,"1/5 oz Bailey's irish cream "], ["1686","316",6,"1/5 oz Vodka "], ["1528","145",20,"2/3 oz Rumple Minze "], ["1528","108",20,"2/3 oz J�germeister "], ["3833","295",150,"5 oz well chilled Champagne "], ["3833","332",30,"1 oz Pernod "], ["4097","85",30,"1 oz Bacardi 151 proof rum "], ["4097","376",30,"1 oz Gin (Tanqueray) "], ["4097","175",90,"3 oz Coca-Cola "], ["5794","376",30,"3 cl Gin (Beefeater) "], ["5794","297",20,"2 cl Blue Curacao "], ["5794","424",10,"1 cl Lemon juice "], ["5794","261",40,"4 cl Pineapple juice "], ["5794","443",50,"5 cl Soda water "], ["299","375",45,"1 1/2 oz Amaretto "], ["299","468",45,"1 1/2 oz Coconut rum "], ["299","22",180,"6 oz 7-Up "], ["3214","387",45,"1 1/2 oz Dark rum "], ["3214","349",15,"1/2 oz A�ejo rum "], ["3214","265",15,"1/2 oz Kahlua "], ["3214","155",15,"1/2 oz Heavy cream "], ["300","359",60,"2 oz Cointreau "], ["300","213",60,"2 oz Triple sec "], ["300","424",60,"2 oz Lemon juice "], ["4623","71",15,"1/2 oz Everclear "], ["4623","445",15,"1/2 oz Orange juice "], ["302","448",30,"1 oz Apple brandy "], ["302","376",30,"1 oz Gin "], ["302","170",5,"1 tsp Anis "], ["302","82",2.5,"1/2 tsp Grenadine "], ["304","349",30,"1 oz A�ejo rum "], ["304","249",15,"1/2 oz Bourbon "], ["304","487",15,"1/2 oz Dark Creme de Cacao "], ["304","179",15,"1/2 oz Cherry brandy "], ["304","155",30,"1 oz Heavy cream "], ["1738","131",30,"1 oz Tabasco sauce "], ["1738","462",30,"Fill with 1 oz Tequila "], ["4643","473",150,"5 oz Creme de Cassis "], ["4643","316",30,"1 oz Stoli Vodka "], ["2465","83",180,"6 oz Ginger ale / soda (Vernors Original) "], ["2465","132",59,"1-2 shot Cinnamon schnapps "], ["5496","88",45,"1 1/2 oz Dry Vermouth "], ["5496","330",45,"1 1/2 oz Port "], ["5496","424",2.5,"1/2 tsp Lemon juice "], ["2914","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["2914","199",360,"12 oz Mountain Dew "], ["3323","21",60,"2 oz Whiskey "], ["3323","199",300,"10 oz Mountain Dew "], ["306","376",60,"2 oz Gin "], ["306","303",150,"0.5 oz White wine "], ["1961","214",60,"2 oz Light rum "], ["1961","249",15,"1/2 oz Bourbon "], ["1961","487",5,"1 tsp Dark Creme de Cacao "], ["1961","179",5,"1 tsp Cherry brandy "], ["2598","309",29.5,"1 shot Peach schnapps "], ["2598","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["2598","342",14.75,"1/2 shot Southern Comfort "], ["2598","62",14.75,"1/2 shot Yukon Jack "], ["2598","261",3.7,"1 splash Pineapple juice "], ["2598","372",3.7,"1 splash Cranberry juice "], ["2598","315",3.7,"1 splash Grand Marnier "], ["1751","270",19.67,"2/3 shot Bailey's irish cream "], ["1751","182",9.83,"1/3 shot Crown Royal "], ["1962","316",30,"1 oz Vodka (Absolut) "], ["1962","213",30,"1 oz Triple sec "], ["1962","259",240,"8 oz Milk "], ["1962","409",5,"1 tsp Cinnamon "], ["5246","304",120,"4 oz Rum (Captain Morgan) "], ["5246","29",120,"4 oz Tonic water "], ["5246","445",3.7,"1 splash Orange juice "], ["3195","85",20,"2/3 oz Bacardi 151 proof rum "], ["3195","71",20,"2/3 oz Everclear "], ["3195","145",20,"2/3 oz Rumple Minze "], ["6011","54",30,"1 oz Chambord raspberry liqueur "], ["6011","297",30,"1 oz Blue Curacao "], ["6011","375",30,"1 oz Amaretto "], ["6011","335",30,"1 oz Spiced rum "], ["6011","266",30,"1 oz Sour mix "], ["5984","54",30,"1 oz Chambord raspberry liqueur "], ["5984","36",30,"1 oz Malibu rum "], ["5984","266",3.7,"1 splash Sour mix "], ["5984","261",3.7,"1 splash Pineapple juice "], ["5984","297",15,"1/2 oz Blue Curacao "], ["3711","316",15,"1/2 oz Vodka "], ["3711","375",15,"1/2 oz Amaretto "], ["3711","342",15,"1/2 oz Southern Comfort "], ["3711","146",15,"1/2 oz Midori melon liqueur "], ["3711","54",15,"1/2 oz Chambord raspberry liqueur "], ["3711","445",15,"1/2 oz Orange juice "], ["2572","205",30,"1 oz White Creme de Menthe "], ["2572","316",30,"1 oz Vodka "], ["2572","265",30,"1 oz Kahlua "], ["2572","270",30,"1 oz Bailey's irish cream "], ["3318","376",75,"2 1/2 oz Gin "], ["3318","329",3.7,"1 splash Olive juice "], ["2567","2",240,"8 oz Lemonade "], ["2567","316",120,"4 oz Vodka "], ["2567","323",60,"2 oz Sprite "], ["4661","480",45,"1 1/2 oz Irish cream "], ["4661","387",30,"1 oz Dark rum "], ["4661","3",45,"1 1/2 oz Cognac "], ["5448","192",45,"1 1/2 oz Brandy "], ["5448","265",15,"1/2 oz Kahlua "], ["312","12",15,"1/2 oz Blavod vodka "], ["312","297",15,"1/2 oz Blue Curacao "], ["312","157",15,"1/2 oz Passoa "], ["312","445",45,"1 1/2 oz Orange juice "], ["312","372",45,"1 1/2 oz Cranberry juice "], ["1955","108",45,"1 1/2 oz J�germeister "], ["1955","270",45,"1 1/2 oz Bailey's irish cream "], ["6145","146",30,"1 oz Midori melon liqueur "], ["6145","115",30,"1 oz Goldschlager "], ["315","249",45,"1 1/2 oz Bourbon "], ["315","205",2.5,"1/2 tsp White Creme de Menthe "], ["315","213",2.5,"1/2 tsp Triple sec "], ["317","249",60,"2 oz Bourbon "], ["317","205",2.5,"1/2 tsp White Creme de Menthe "], ["317","213",1.25,"1/4 tsp Triple sec "], ["317","236",2.5,"1/2 tsp Powdered sugar "], ["317","106",0.9,"1 dash Bitters "], ["5755","249",90,"3 oz Bourbon "], ["5755","205",15,"1/2 oz White Creme de Menthe "], ["5755","342",2.5,"1/2 tsp Southern Comfort "], ["2501","132",15,"1/2 oz Cinnamon schnapps "], ["2501","276",15,"1/2 oz Root beer schnapps "], ["2501","22",30,"1 oz 7-Up "], ["2501","270",15,"1/2 oz Bailey's irish cream "], ["1287","316",90,"3 oz Vodka "], ["1287","392",360,"12 oz Beer "], ["1287","342",120,"4 oz Southern Comfort "], ["3451","71",9.83,"1/3 shot Everclear "], ["3451","145",9.83,"1/3 shot Rumple Minze "], ["3451","115",9.83,"1/3 shot Goldschlager "], ["1629","270",22.5,"3/4 oz Bailey's irish cream "], ["1629","145",22.5,"3/4 oz Rumple Minze "], ["5699","119",60,"2 oz Absolut Vodka "], ["5699","427",257,"1 cup Ice "], ["5699","372",120,"4 oz Cranberry juice "], ["5699","266",120,"4 oz Sour mix "], ["1368","36",45,"1 1/2 oz Malibu rum "], ["1368","266",60,"2 oz Sour mix "], ["1368","443",60,"2 oz Soda water "], ["3856","256",45,"1 1/2 oz Vanilla schnapps (Dr. McGillicuddy's) "], ["3856","291",30,"1 oz unsweetened Cherry juice "], ["3856","372",15,"1/2 oz Cranberry juice "], ["3856","422",3.7,"1 splash Cream "], ["5475","376",15,"1/2 oz Gin "], ["5475","316",15,"1/2 oz Vodka "], ["5475","297",15,"1/2 oz Blue Curacao "], ["5475","333",15,"1/2 oz Creme de Cacao "], ["5475","146",15,"1/2 oz Midori melon liqueur "], ["5475","126",120,"4 oz Half-and-half "], ["5475","82",7.5,"1/4 oz Grenadine "], ["4782","376",30,"1 oz Tanqueray Gin "], ["4782","378",30,"1 oz Single malt Scotch "], ["4160","115",22.5,"3/4 oz Goldschlager "], ["4160","202",22.5,"3/4 oz Gold tequila (Cuervo) "], ["2654","375",15,"1/2 oz Amaretto "], ["2654","342",7.5,"1/4 oz Southern Comfort "], ["2654","10",7.5,"1/4 oz Creme de Banane "], ["4673","449",30,"1 oz Apple schnapps "], ["4673","251",30,"1 oz Watermelon schnapps "], ["5083","122",14.75,"1/2 shot Jack Daniels "], ["5083","62",14.75,"1/2 shot Yukon Jack "], ["4726","316",40,"4 cl Vodka "], ["4726","376",40,"4 cl Gin "], ["4726","142",40,"4 cl White rum "], ["4726","462",40,"4 cl Tequila "], ["4726","436",40,"4 cl white Curacao "], ["4726","186",40,"4 cl Lime juice "], ["4726","109",260,"26 cl Cola "], ["5148","375",30,"1 oz Amaretto "], ["5148","304",30,"1 oz Rum "], ["4935","445",60,"2 oz Orange juice "], ["4935","388",30,"1 oz Lemon-lime soda "], ["4935","211",30,"1 oz Sweet and sour mix "], ["4935","21",30,"1 oz Whiskey "], ["4935","309",30,"1 oz Peach schnapps "], ["4935","82",10,"1/3 oz Grenadine "], ["2723","392",240,"8 oz Beer "], ["2723","175",120,"4 oz Coca-Cola "], ["2723","265",30,"1 oz Kahlua "], ["2723","375",30,"1 oz Amaretto "], ["2723","179",15,"1/2 oz Cherry brandy "], ["3580","464",30,"1 oz Peppermint schnapps "], ["3580","344",360,"12 oz Dr. Pepper "], ["3706","130",90,"3 oz Club soda "], ["3706","119",90,"3 oz Absolut Vodka "], ["3706","198",120,"4 oz Aftershock "], ["4838","344",180,"6 oz Dr. Pepper "], ["4838","198",30,"1 oz Aftershock "], ["2962","1",15,"1/2 oz Firewater "], ["2962","85",15,"1/2 oz Bacardi 151 proof rum "], ["2055","192",45,"1 1/2 oz Brandy "], ["2055","213",22.5,"3/4 oz Triple sec "], ["2055","124",1.25,"1/4 tsp Anisette "], ["1360","375",30,"1 oz Amaretto "], ["1360","213",30,"1 oz Triple sec "], ["1360","445",60,"2 oz Orange juice "], ["1360","126",60,"2 oz Half-and-half "], ["3488","270",45,"1 1/2 oz Bailey's irish cream "], ["3488","445",105,"3 1/2 oz Orange juice "], ["323","192",45,"1 1/2 oz Brandy "], ["323","423",30,"1 oz Applejack "], ["323","383",30,"1 oz Sweet Vermouth "], ["324","214",45,"1 1/2 oz Light rum "], ["324","179",10,"2 tsp Cherry brandy "], ["324","213",10,"2 tsp Triple sec "], ["324","186",15,"1/2 oz Lime juice "], ["2899","170",45,"1 1/2 oz Anis "], ["2899","383",15,"1/2 oz Sweet Vermouth "], ["2899","88",15,"1/2 oz Dry Vermouth "], ["1392","265",22.5,"3/4 oz Kahlua "], ["1392","270",22.5,"3/4 oz Bailey's irish cream "], ["1392","173",22.5,"3/4 oz Canadian whisky (Canadian Club) "], ["4250","182",15,"1/2 oz Crown Royal "], ["4250","265",15,"1/2 oz Kahlua "], ["4250","270",10,"Float 1/3 oz Bailey's irish cream "], ["3170","316",90,"3 oz Vodka "], ["3170","376",60,"2 oz dry Gin "], ["3170","309",135,"4 1/2 oz Peach schnapps "], ["2484","270",29.5,"1 shot Bailey's irish cream "], ["2484","265",29.5,"1 shot Kahlua "], ["2484","85",29.5,"1 shot Bacardi 151 proof rum "], ["5157","122",60,"2 oz Jack Daniels "], ["5157","317",60,"2 oz Jose Cuervo "], ["5044","265",15,"1/2 oz Kahlua "], ["5044","146",15,"1/2 oz Midori melon liqueur "], ["5044","270",15,"1/2 oz Bailey's irish cream "], ["5044","462",15,"1/2 oz Tequila "], ["5404","198",15,"1/2 oz Aftershock "], ["5404","173",15,"1/2 oz Canadian whisky "], ["5161","297",10,"1/3 oz Blue Curacao "], ["5161","362",10,"1/3 oz Pi�a Colada "], ["5161","82",10,"1/3 oz Grenadine "], ["1053","36",20,"2 cl Malibu rum "], ["1053","362",10,"1 cl Pi�a Colada "], ["1053","157",10,"1 cl Passoa "], ["1053","425",10,"1 cl Pisang Ambon "], ["1053","261",60,"6 cl Pineapple juice "], ["3565","318",15,"1/2 oz Chocolate mint liqueur "], ["3565","227",15,"1/2 oz Banana liqueur "], ["3565","41",60,"2 oz Light cream "], ["3565","216",5,"1 tsp shaved sweet Chocolate "], ["6000","376",30,"1 oz Gin "], ["6000","249",30,"1 oz Bourbon "], ["6000","245",22.5,"3/4 oz Absinthe (Deva) "], ["4000","105",45,"1 1/2 oz dry Sherry "], ["4000","88",45,"1 1/2 oz Dry Vermouth "], ["4000","106",0.9,"1 dash Bitters "], ["1346","487",45,"1 1/2 oz Dark Creme de Cacao "], ["1346","316",15,"1/2 oz Vodka "], ["1346","287",5,"1 tsp Chocolate syrup "], ["1346","179",5,"1 tsp Cherry brandy "], ["3509","316",50,"5 cl Vodka "], ["3509","372",50,"5 cl Cranberry juice "], ["3509","297",25,"2 1/2 cl Blue Curacao "], ["5071","462",180,"6 oz Tequila "], ["5071","316",180,"6 oz Vodka "], ["5071","387",180,"6 oz Dark rum "], ["5071","376",180,"6 oz Gin "], ["5071","261",360,"12 oz sweetened Pineapple juice "], ["5071","21",180,"6 oz Whiskey "], ["4186","316",30,"1 oz Vodka (Stoli) "], ["4186","146",30,"1 oz Midori melon liqueur "], ["4186","297",30,"1 oz Blue Curacao (Bols) "], ["4186","404",30,"1 oz Grapefruit juice "], ["4186","261",60,"2 oz Pineapple juice "], ["4186","445",60,"2 oz Orange juice "], ["4958","297",15,"1/2 oz Blue Curacao "], ["4958","376",15,"1/2 oz Gin "], ["4958","22",30,"1 oz 7-Up or Sprite "], ["4958","372",15,"1/2 oz Cranberry juice "], ["3993","316",30,"1 oz Vodka "], ["3993","309",30,"1 oz Peach schnapps "], ["3993","297",15,"1/2 oz Blue Curacao "], ["3993","261",60,"2 oz Pineapple juice "], ["3993","445",60,"2 oz Orange juice "], ["3993","443",3.7,"1 splash Soda water "], ["333","387",44.5,"1 jigger Dark rum "], ["333","383",44.5,"1 jigger red Sweet Vermouth "], ["333","82",3.7,"1 splash Grenadine "], ["2063","214",45,"1 1/2 oz Light rum "], ["2063","186",15,"1/2 oz Lime juice "], ["2063","383",15,"1/2 oz Sweet Vermouth "], ["2063","333",0.9,"1 dash white Creme de Cacao "], ["2063","82",0.9,"1 dash Grenadine "], ["3255","375",30,"1 oz Amaretto "], ["3255","342",30,"1 oz Southern Comfort "], ["3255","227",30,"1 oz Banana liqueur "], ["3255","261",150,"5 oz Pineapple juice "], ["3079","297",22.5,"3/4 oz Blue Curacao "], ["3079","214",22.5,"3/4 oz Light rum "], ["3079","211",60,"2 oz Sweet and sour mix "], ["3079","175",3.7,"1 splash Coca-Cola "], ["3940","462",45,"1 1/2 oz Tequila "], ["3940","297",15,"1/2 oz Blue Curacao "], ["3940","200",15,"1/2 oz Rose's sweetened lime juice "], ["5168","316",37.5,"1 1/4 oz Vodka "], ["5168","297",15,"1/2 oz Blue Curacao "], ["5168","211",60,"2 oz Sweet and sour "], ["5168","22",3.7,"1 splash 7-Up "], ["4734","21",60,"2 oz Whiskey "], ["4734","323",180,"6 oz Sprite "], ["4734","297",60,"2 oz Blue Curacao "], ["4734","274",30,"1 oz Melon liqueur "], ["5366","480",15,"1/2 oz Irish cream "], ["5366","115",15,"1/2 oz Goldschlager "], ["5366","108",10,"1/3 oz J�germeister "], ["5366","145",10,"1/3 oz Rumple Minze "], ["4188","387",45,"1 1/2 oz Dark rum "], ["4188","10",15,"1/2 oz Creme de Banane "], ["4188","424",15,"1/2 oz Lemon juice "], ["3512","36",240,"8 oz Malibu rum "], ["3512","146",120,"4 oz Midori melon liqueur "], ["3512","297",120,"4 oz Blue Curacao "], ["3512","211",3.7,"1 splash Sweet and sour "], ["3512","323",3.7,"1 splash Sprite "], ["3739","85",15,"1/2 oz Bacardi 151 proof rum "], ["3739","232",15,"1/2 oz Wild Turkey 101 proof "], ["3739","316",15,"1/2 oz Vodka "], ["341","387",60,"2 oz Dark rum "], ["341","424",15,"1/2 oz Lemon juice "], ["341","29",120,"4 oz Tonic water "], ["3749","146",60,"2 oz Midori melon liqueur "], ["3749","468",30,"1 oz Coconut rum (Hiram Walker) "], ["3749","373",180,"6 oz Pina colada mix "], ["4553","204",30,"1 oz cold Espresso "], ["4553","316",45,"1 1/2 oz Vodka (Absolut) "], ["4553","265",45,"1 1/2 oz Kahlua "], ["4553","333",30,"1 oz white Creme de Cacao "], ["342","205",22.5,"3/4 oz White Creme de Menthe "], ["342","231",22.5,"3/4 oz Apricot brandy "], ["342","213",22.5,"3/4 oz Triple sec "], ["344","333",45,"1 1/2 oz Creme de Cacao "], ["344","297",30,"1 oz Blue Curacao "], ["344","214",15,"1/2 oz Light rum "], ["4800","316",90,"3 oz Vodka "], ["4800","161",150,"5 oz Iced tea "], ["3460","376",45,"1 1/2 oz Gin (Tanqueray) "], ["3460","146",30,"1 oz Midori melon liqueur "], ["3460","266",3.7,"1 splash Sour mix "], ["3460","22",3.7,"1 splash 7-Up "], ["345","202",45,"1 1/2 oz Gold tequila "], ["345","445",120,"4 oz fresh Orange juice "], ["345","473",10,"2 tsp Creme de Cassis "], ["6112","335",60,"2 oz Spiced rum (Captain Morgan's) "], ["6112","161",300,"10 oz Iced tea (very sweet) "], ["1643","111",15,"2/4 oz Advocaat "], ["1643","252",7.5,"1/4 oz Whisky "], ["1643","333",7.5,"1/4 oz white Creme de Cacao "], ["1643","213",0.9,"1 dash Triple sec, blue "], ["1643","366",0.9,"1 dash Angostura bitters "], ["1643","433",0.9,"1 dash Orange bitters "], ["6148","462",30,"1 oz Tequila "], ["6148","316",15,"1/2 oz Vodka "], ["6148","108",7.5,"1/4 oz J�germeister "], ["6148","372",7.5,"1/4 oz Cranberry juice "], ["6148","82",7.5,"1/4 oz Grenadine "], ["346","335",210,"7 oz Spiced rum (Captain Morgan's) "], ["346","175",300,"10 oz Coca-Cola "], ["346","186",30,"1 oz Lime juice "], ["5078","387",6,"1/5 oz Dark rum "], ["5078","265",6,"1/5 oz Kahlua "], ["5078","375",6,"1/5 oz Amaretto "], ["5078","270",12,"2/5 oz Bailey's irish cream "], ["5758","1",15,"1/2 oz Firewater "], ["5758","212",15,"1/2 oz Absolut Peppar "], ["5758","131",0.9,"1 dash Tabasco sauce "], ["1256","342",15,"1/2 oz Southern Comfort "], ["1256","182",15,"1/2 oz Crown Royal "], ["1256","375",15,"1/2 oz Amaretto "], ["1256","445",15,"1/2 oz Orange juice "], ["1256","261",15,"1/2 oz Pineapple juice "], ["1256","372",15,"1/2 oz Cranberry juice "], ["1256","82",3.7,"1 splash Grenadine "], ["347","119",60,"6 cl Absolut Vodka "], ["347","287",40,"4 cl Chocolate syrup (light chocolate preferably) "], ["347","347",20,"2 cl crushed Strawberries "], ["347","427",30,"3 cl crushed Ice "], ["1488","387",11.8,"2/5 shot Dark rum "], ["1488","399",11.8,"2/5 shot Margarita mix, Strawberry "], ["1488","424",5.9,"1/5 shot Lemon juice "], ["5401","192",30,"1 oz Brandy "], ["5401","88",22.5,"3/4 oz Dry Vermouth "], ["5401","205",5,"1 tsp White Creme de Menthe "], ["5401","176",5,"1 tsp Maraschino liqueur "], ["356","376",60,"2 oz Gin "], ["356","332",15,"1/2 oz Pernod "], ["356","445",30,"1 oz Orange juice "], ["356","82",2.5,"1/2 tsp Grenadine "], ["357","462",60,"2 oz Tequila, almond flavored "], ["357","22",120,"4 oz 7-Up "], ["4706","10",7.5,"1/4 oz Creme de Banane "], ["4706","297",7.5,"1/4 oz Blue Curacao "], ["4706","36",7.5,"1/4 oz Malibu rum "], ["4706","261",15,"1/2 oz Pineapple juice "], ["358","270",30,"1 oz Bailey's irish cream "], ["358","375",15,"1/2 oz Amaretto "], ["358","227",15,"1/2 oz Banana liqueur "], ["6169","62",10,"1/3 oz Yukon Jack "], ["6169","108",10,"1/3 oz J�germeister "], ["6169","85",10,"1/3 oz 151 proof rum "], ["359","231",22.5,"3/4 oz Apricot brandy "], ["359","88",22.5,"3/4 oz Dry Vermouth "], ["359","376",22.5,"3/4 oz Gin "], ["359","424",1.25,"1/4 tsp Lemon juice "], ["3181","316",10,"1 cl Vodka "], ["3181","82",10,"1 cl Grenadine "], ["3181","295",100,"10 cl Champagne "], ["4407","265",15,"Layer 1/2 oz Kahlua "], ["4407","270",15,"1/2 oz Bailey's irish cream "], ["4407","358",15,"1/2 oz Ouzo "], ["4407","232",15,"1/2 oz Wild Turkey "], ["4407","85",15,"1/2 oz Bacardi 151 proof rum "], ["2663","146",10,"1 cl Midori melon liqueur "], ["2663","269",15,"1 1/2 cl Strawberry liqueur "], ["2663","167",15,"1 1/2 cl Frangelico "], ["2663","479",15,"1 1/2 cl Galliano "], ["2663","422",45,"4 1/2 cl Cream "], ["1804","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["1804","71",9.83,"1/3 shot Everclear "], ["1804","213",9.83,"1/3 shot Triple sec "], ["3845","227",15,"1/2 oz Banana liqueur "], ["3845","297",15,"1/2 oz Blue Curacao "], ["3845","71",15,"1/2 oz Everclear "], ["362","36",45,"1 1/2 oz Malibu rum "], ["362","261",30,"1 oz Pineapple juice "], ["362","372",30,"1 oz Cranberry juice "], ["361","88",45,"1 1/2 oz Dry Vermouth "], ["361","376",45,"1 1/2 oz Gin "], ["5843","376",30,"1 oz Gin "], ["5843","464",30,"1 oz Peppermint schnapps "], ["5843","29",30,"1 oz Tonic water "], ["2038","214",45,"1 1/2 oz Light rum "], ["2038","387",60,"2 oz Dark rum "], ["2038","261",30,"1 oz Pineapple juice "], ["2038","404",30,"1 oz Grapefruit juice "], ["2038","445",60,"2 oz Orange juice "], ["2744","1",14.75,"1/2 shot Firewater "], ["2744","145",14.75,"1/2 shot Rumple Minze "], ["2301","249",30,"3 cl Bourbon (Four Roses) "], ["2301","231",10,"1 cl Apricot brandy (Bols) "], ["2301","88",20,"2 cl Dry Vermouth (Cinzano) "], ["363","316",40,"4 cl Finlandia Vodka "], ["363","454",20,"2 cl Passion fruit syrup (Monin) "], ["363","445",40,"4 cl Orange juice "], ["363","211",60,"6 cl Sweet and sour mix "], ["5509","316",37.5,"1 1/4 oz Vodka "], ["5509","404",60,"2 oz Grapefruit juice "], ["5509","82",0.9,"1 dash Grenadine "], ["1570","85",30,"1 oz 151 proof rum "], ["1570","131",0.9,"1 dash Tabasco sauce "], ["3311","132",30,"1 oz Cinnamon schnapps "], ["3311","131",0.9,"1 dash Tabasco sauce "], ["4593","316",66.75,"1 1/2 jigger Vodka "], ["4593","375",15,"1/2 oz Amaretto "], ["4593","213",15,"1/2 oz Triple sec "], ["4593","424",3.7,"1 splash freshly squeezed Lemon juice "], ["1791","108",40,"2-4 cl J�germeister "], ["1791","83",40,"2-4 cl Ginger ale or Red Soda Water "], ["5330","36",30,"1 oz Malibu rum "], ["5330","297",30,"1 oz Blue Curacao "], ["5330","146",30,"1 oz Midori melon liqueur "], ["5330","445",60,"2 oz Orange juice "], ["5330","266",60,"2 oz Sour mix "], ["5330","22",30,"1 oz 7-Up "], ["5668","108",15,"1/2 oz J�germeister "], ["5668","85",15,"1/2 oz 151 proof rum "], ["5668","145",15,"1/2 oz Rumple Minze "], ["5668","115",15,"1/2 oz Goldschlager "], ["5668","462",15,"1/2 oz Tequila "], ["3812","82",15,"1/2 oz Grenadine "], ["3812","15",15,"1/2 oz Green Creme de Menthe "], ["3812","10",15,"1/2 oz Creme de Banane "], ["3812","304",15,"1/2 oz Rum (Overproof is best) "], ["4755","85",30,"1 oz Bacardi 151 proof rum "], ["4755","464",15,"1/2 oz Peppermint schnapps "], ["4755","342",15,"1/2 oz Southern Comfort "], ["4755","462",15,"1/2 oz Tequila "], ["3379","124",15,"1/2 oz Anisette "], ["3379","408",15,"1/2 oz Vermouth "], ["3379","85",3.7,"1 splash Bacardi 151 proof rum "], ["6052","375",14.75,"1/2 shot Amaretto "], ["6052","21",14.75,"1/2 shot Whiskey "], ["6052","392",240,"8 oz Beer "], ["6052","71",0.9,"1 dash Everclear "], ["3266","82",0.9,"1 dash Grenadine "], ["3266","224",15,"1/2 oz Godiva liqueur "], ["3266","85",0.9,"1 dash 151 proof rum (Bacardi) "], ["1375","375",30,"1 oz Amaretto "], ["1375","316",30,"1 oz Vodka "], ["1375","85",30,"1 oz Bacardi 151 proof rum "], ["1375","344",30,"1 oz Dr. Pepper "], ["1375","392",30,"1 oz Beer "], ["1647","1",150,"1.5 oz Firewater "], ["1647","344",360,"12 oz Dr. Pepper "], ["1322","375",15,"1/2 oz Amaretto "], ["1322","85",15,"1/2 oz Bacardi 151 proof rum "], ["1322","94",180,"6 oz Lager "], ["1988","309",15,"1/2 oz Peach schnapps "], ["1988","227",15,"1/2 oz Banana liqueur "], ["1988","71",15,"1/2 oz Everclear "], ["3843","68",30,"1 oz Green Chartreuse "], ["3843","85",30,"1 oz 151 proof rum (Bacardi) "], ["5639","265",60,"2 oz Kahlua "], ["5639","114",30,"1 oz Butterscotch schnapps "], ["5639","85",30,"1 oz 151 proof rum "], ["2162","36",30,"1 oz Malibu rum "], ["2162","316",15,"1/2 oz Vodka "], ["2162","270",15,"1/2 oz Bailey's irish cream "], ["2162","445",180,"4-6 oz Orange juice "], ["1344","342",29.5,"1 shot Southern Comfort "], ["1344","344",3.7,"1 splash Dr. Pepper "], ["1648","392",30,"1 oz Blackened Voodoo Beer "], ["1648","342",60,"2 oz Southern Comfort "], ["1648","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["1648","71",7.5,"1/4 oz Everclear "], ["1648","304",15,"1/2 oz Rum (Captain Morgan's) "], ["1648","443",120,"4 oz Soda water "], ["1648","199",30,"1 oz Mountain Dew "], ["1648","427",720,"24 oz Ice "], ["4217","316",45,"1 1/2 oz Vodka (Absolut) "], ["4217","186",3.7,"1 splash Lime juice "], ["4217","82",3.7,"1 splash Grenadine "], ["4217","85",15,"Float 1/2 oz Bacardi 151 proof rum "], ["3307","265",30,"1 oz Kahlua "], ["3307","475",30,"1 oz Sambuca "], ["3307","297",30,"1 oz Blue Curacao "], ["3307","270",30,"1 oz Bailey's irish cream "], ["2966","265",30,"1 oz Kahlua "], ["2966","375",30,"1 oz Amaretto "], ["2966","316",30,"1 oz Vodka "], ["2966","207",15,"1/2 oz Yellow Chartreuse "], ["2966","297",30,"1 oz Blue Curacao "], ["2966","259",15,"1/2 oz Milk "], ["5853","476",600,"20 oz Diet Pepsi Cola "], ["5853","71",30,"1 oz Everclear "], ["2709","108",30,"1 oz J�germeister "], ["2709","444",30,"1 oz Hot Damn "], ["2645","316",30,"1 oz Vodka "], ["2645","85",6,"1/5 oz Bacardi 151 proof rum "], ["365","85",30,"1 oz Bacardi 151 proof rum "], ["365","265",30,"1 oz Kahlua "], ["3219","304",37.5,"1 1/4 oz Bacardi Rum "], ["3219","304",18.75,"5/8 oz Meyers Rum "], ["3219","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["3219","261",45,"1 1/2 oz Pineapple juice "], ["3219","445",45,"1 1/2 oz Orange juice "], ["3219","211",30,"1 oz Sweet and sour "], ["3257","376",45,"1 1/2 oz Gin "], ["3257","383",15,"1/2 oz Sweet Vermouth "], ["3257","88",5,"1 tsp Dry Vermouth "], ["3257","213",5,"1 tsp Triple sec "], ["3257","424",5,"1 tsp Lemon juice "], ["5239","464",30,"1 oz Peppermint schnapps "], ["5239","375",30,"1 oz Amaretto "], ["5239","480",90,"3 oz Irish cream "], ["5239","482",90,"Fill with 3 oz Coffee "], ["368","359",30,"1 oz Cointreau "], ["368","270",30,"1 oz Bailey's irish cream "], ["3677","376",15,"1/2 oz Gin "], ["3677","121",7.5,"1 1/2 tsp Kirschwasser "], ["3677","213",7.5,"1 1/2 tsp Triple sec "], ["3677","445",30,"1 oz Orange juice "], ["3677","424",5,"1 tsp Lemon juice "], ["3925","376",60,"2 oz Gin "], ["3925","213",15,"1/2 oz Triple sec "], ["5283","146",30,"1 oz Midori melon liqueur "], ["5283","304",30,"1 oz Rum (Bacardi) "], ["5283","323",60,"2 oz Sprite "], ["5283","261",90,"3 oz Pineapple juice "], ["369","265",10,"1/3 oz Kahlua "], ["369","227",10,"1/3 oz Banana liqueur "], ["369","270",10,"1/3 oz Bailey's irish cream "], ["3146","274",5,"1/6 oz Melon liqueur "], ["3146","304",5,"1/6 oz Rum "], ["3146","316",5,"1/6 oz Vodka "], ["3146","323",10,"1/3 oz Sprite "], ["3146","82",5,"1/6 oz Grenadine "], ["5233","378",30,"1 oz Scotch "], ["5233","383",30,"1 oz Sweet Vermouth "], ["5233","106",0.9,"1 dash Bitters "], ["5233","357",1.25,"1/4 tsp Sugar syrup "], ["371","479",29.5,"1 shot Galliano "], ["371","205",29.5,"1 shot White Creme de Menthe "], ["371","316",29.5,"1 shot Vodka "], ["371","445",128.5,"1/2 cup Orange juice "], ["4163","36",60,"2 oz Malibu rum "], ["4163","261",120,"4 oz Pineapple juice "], ["1796","376",30,"1 oz Gin "], ["1796","355",15,"1/2 oz Passion fruit juice "], ["1796","82",0.9,"1 dash Grenadine "], ["3839","280",40,"4 cl Fernet Branca "], ["3839","422",3.7,"1 splash Cream (whipped) "], ["4784","192",30,"1 oz Brandy "], ["4784","124",30,"1 oz Anisette "], ["4784","88",15,"1/2 oz Dry Vermouth "], ["2754","375",15,"1/2 oz Amaretto "], ["2754","261",15,"1/2 oz Pineapple juice "], ["5910","71",23.6,"4/5 shot Everclear "], ["5910","131",5.9,"1/5 shot Tabasco sauce "], ["5899","142",30,"1 oz White rum "], ["5899","304",30,"1 oz amber Rum "], ["5899","316",30,"1 oz Vodka "], ["5899","82",30,"1 oz Grenadine "], ["5899","297",30,"1 oz Blue Curacao "], ["5899","2",210,"7 oz Lemonade "], ["1784","142",20,"2 cl White rum "], ["1784","210",10,"1 cl Lakka "], ["1784","205",10,"1 cl White Creme de Menthe "], ["1784","445",20,"2 cl Orange juice "], ["1784","424",20,"2 cl Lemon juice "], ["4852","317",7.5,"1/4 oz Jose Cuervo "], ["4852","471",7.5,"1/4 oz Jim Beam "], ["4852","122",7.5,"1/4 oz Jack Daniels "], ["4852","263",7.5,"1/4 oz Johnnie Walker "], ["4960","249",7.5,"1/4 oz Bourbon (Jim Beam) "], ["4960","159",7.5,"1/4 oz Tennessee whiskey (Jack Daniel's) "], ["4960","378",7.5,"1/4 oz Scotch (Johnnie Walker Red) "], ["4960","462",7.5,"1/4 oz Tequila (Jose Cuervo) "], ["3681","5",40,"4 cl Coconut milk "], ["3681","316",60,"6 cl Vodka "], ["3681","462",40,"4 cl Tequila "], ["3681","205",50,"5 cl White Creme de Menthe "], ["3681","227",40,"4 cl Banana liqueur "], ["1705","202",22.5,"3/4 oz Gold tequila (Jose Cuervo) "], ["1705","108",22.5,"3/4 oz J�germeister "], ["1705","145",22.5,"3/4 oz Rumple Minze "], ["1705","85",22.5,"3/4 oz Bacardi 151 proof rum "], ["374","82",15,"1/2 oz Grenadine "], ["374","297",15,"1/2 oz Blue Curacao "], ["374","422",15,"1/2 oz Cream "], ["2712","375",15,"1/2 oz Amaretto "], ["2712","333",15,"1/2 oz Creme de Cacao "], ["2712","41",60,"2 oz Light cream "], ["5381","295",105,"3 1/2 oz Champagne "], ["5381","26",22.5,"3/4 oz Creme de Fraise des Bois (Marie Brizard) "], ["5381","3",15,"1/2 oz Cognac "], ["377","278",257,"1 cup Ice-cream "], ["377","167",37.5,"1 1/4 oz Frangelico "], ["377","333",30,"1 oz Creme de Cacao "], ["377","259",64.25,"1/4 cup Milk "], ["377","287",30,"1 oz Chocolate syrup "], ["1105","482",128.5,"1/2 cup strong black Coffee "], ["1105","259",128.5,"1/2 cup Milk "], ["1105","477",10,"1-2 tsp Sugar or honey "], ["5549","265",10,"1/3 oz Kahlua "], ["5549","333",10,"1/3 oz white Creme de Cacao "], ["5549","405",10,"1/3 oz Tequila Rose (or Baja Rosa Tequila) "], ["378","462",60,"2 oz Tequila "], ["378","445",120,"4 oz Orange juice "], ["378","479",15,"1/2 oz Galliano "], ["2066","108",15,"1/2 oz J�germeister "], ["2066","475",15,"1/2 oz Sambuca "], ["2066","316",15,"1/2 oz Vodka "], ["379","462",15,"1/2 oz Tequila "], ["379","122",15,"1/2 oz Jack Daniels "], ["3973","3",45,"1 1/2 oz Cognac "], ["3973","375",22.5,"3/4 oz Amaretto "], ["6165","3",30,"1 oz Cognac "], ["6165","315",30,"1 oz Grand Marnier "], ["2382","3",45,"1 1/2 oz Cognac "], ["2382","424",30,"1 oz Lemon juice "], ["2382","477",5,"1 tsp Sugar "], ["2382","295",180,"6 oz Champagne "], ["5667","265",20,"2 cl Kahlua "], ["5667","332",20,"2 cl Pernod "], ["4427","54",37.5,"1 1/4 oz Chambord raspberry liqueur "], ["4427","315",22.5,"3/4 oz Grand Marnier "], ["4427","445",60,"2 oz Orange juice "], ["4427","443",30,"1 oz Soda water "], ["2518","316",30,"1 oz Vodka "], ["2518","54",15,"1/2 oz Chambord raspberry liqueur "], ["2518","261",15,"1/2 oz Pineapple juice "], ["2464","391",30,"1 oz Vanilla vodka (Stoli Vanil) "], ["2464","224",15,"1/2 oz Godiva liqueur "], ["2464","475",7.5,"1/4 oz Sambuca "], ["2464","204",30,"1 oz chilled Espresso "], ["2464","422",30,"1 oz Cream "], ["4863","199",180,"6 oz Mountain Dew "], ["4863","387",30,"1 oz Dark rum "], ["4863","309",30,"1 oz Peach schnapps "], ["3734","450",60,"2 oz Rye whiskey "], ["3734","351",7.5,"1/4 oz Benedictine "], ["3734","424",22.5,"3/4 oz Lemon juice "], ["4334","316",30,"1 oz Skyy Vodka "], ["4334","309",30,"1 oz Peach schnapps "], ["4334","261",90,"3 oz Pineapple juice "], ["4334","372",90,"3 oz Cranberry juice "], ["4079","142",60,"2 oz White rum "], ["4079","297",15,"1/2 oz Blue Curacao "], ["4079","186",15,"1/2 oz Lime juice "], ["4079","427",85.67,"1/3 cup Ice "], ["387","232",15,"1/2 oz Wild Turkey "], ["387","145",15,"1/2 oz Rumple Minze "], ["392","316",60,"2 oz Vodka "], ["392","265",60,"2 oz Kahlua "], ["392","270",60,"2 oz Bailey's irish cream "], ["392","503",180,"6 oz Vanilla ice-cream "], ["3699","214",30,"1 oz Light rum "], ["3699","174",15,"1/2 oz Blackberry brandy "], ["3699","227",15,"1/2 oz Banana liqueur "], ["3699","82",15,"1/2 oz Grenadine "], ["3699","200",7.5,"1/4 oz Rose's sweetened lime juice "], ["3699","261",3.7,"1 splash Pineapple juice "], ["3699","266",3.7,"1 splash Sour mix "], ["3699","85",7.5,"Float 1/4 oz 151 proof rum (optional) "], ["6151","347",240,"8 oz Strawberries in sugar sauce "], ["6151","211",120,"4 oz Sweet and sour "], ["6151","462",60,"2 oz Tequila "], ["1057","163",257,"1 cup Yoghurt "], ["1057","346",257,"1 cup Fruit juice "], ["4429","375",15,"1/2 oz Amaretto "], ["4429","297",15,"1/2 oz Blue Curacao "], ["4429","82",15,"1/2 oz Grenadine "], ["4429","259",15,"1/2 oz Milk "], ["4471","227",7.5,"1/4 oz Banana liqueur "], ["4471","274",7.5,"1/4 oz Melon liqueur "], ["4471","179",7.5,"1/4 oz Cherry brandy "], ["4471","468",7.5,"1/4 oz Coconut rum "], ["1058","353",30,"1 oz Orange liqueur "], ["1058","309",30,"1 oz Peach schnapps "], ["1058","445",60,"2 oz Orange juice "], ["1058","261",60,"2 oz Pineapple juice "], ["4345","375",29.5,"1 shot Amaretto "], ["4345","36",29.5,"1 shot Malibu rum "], ["4345","226",29.5,"1 shot Bacardi Limon "], ["4345","261",30,"1 oz Pineapple juice "], ["4345","445",30,"1 oz Orange juice "], ["4345","82",0.9,"1 dash Grenadine "], ["2178","261",90,"3 oz Pineapple juice "], ["2178","445",45,"1 1/2 oz Orange juice "], ["2178","372",30,"1 oz Cranberry juice "], ["2178","82",3.7,"1 splash Grenadine "], ["4893","240",15,"1/2 oz Coffee liqueur "], ["4893","480",15,"1/2 oz Irish cream "], ["4893","227",15,"1/2 oz Banana liqueur "], ["4244","115",15,"1/2 oz Goldschlager "], ["4244","146",15,"1/2 oz Midori melon liqueur "], ["4244","145",15,"1/2 oz Rumple Minze "], ["4244","108",15,"1/2 oz J�germeister "], ["4244","85",15,"1/2 oz 151 proof rum "], ["3025","316",45,"1 1/2 oz Vodka "], ["3025","309",45,"1 1/2 oz Peach schnapps "], ["3025","387",15,"1/2 oz Dark rum "], ["3025","375",15,"1/2 oz Amaretto "], ["3025","372",15,"1/2 oz Cranberry juice "], ["3025","261",15,"1/2 oz Pineapple juice "], ["2052","462",30,"1 oz Tequila "], ["2052","122",30,"1 oz Jack Daniels "], ["2052","232",30,"1 oz Wild Turkey "], ["2052","115",30,"1 oz Goldschlager "], ["2052","304",30,"1 oz Rum "], ["2052","243",30,"1 oz Blueberry schnapps "], ["2083","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["2083","36",30,"1 oz Malibu rum "], ["2083","445",60,"2 oz Orange juice (Dole) "], ["2083","261",60,"2 oz Pineapple juice (Dole) "], ["2083","82",5,"1 tsp Grenadine "], ["3920","462",14.75,"1/2 shot Tequila (Cuervo) "], ["3920","232",14.75,"1/2 shot Wild Turkey "], ["3736","316",22.5,"3/4 oz Vodka (Absolut) "], ["3736","274",22.5,"3/4 oz Melon liqueur (Midori) "], ["3736","247",22.5,"3/4 oz Cherry liqueur (Wild Cherry) "], ["3736","213",22.5,"3/4 oz Triple sec "], ["3736","372",60,"2 oz Cranberry juice "], ["3736","388",60,"2 oz Lemon-lime soda "], ["3736","186",44.5,"1 jigger Lime juice "], ["2249","309",8.83,"1/3 measure Peach schnapps "], ["2249","323",17.67,"2/3 measure Sprite "], ["5724","392",1200,"40 oz Beer "], ["5724","83",360,"12 oz Ginger ale "], ["5724","316",7.38,"1/4 shot Vodka (Absolut) "], ["5724","214",7.38,"1/4 shot Light rum "], ["5724","375",14.75,"1/2 shot Amaretto "], ["4794","14",60,"2 oz Peach nectar "], ["4794","445",180,"6 oz Orange juice "], ["6186","437",2.5,"1/2 tsp Tang mix, powdered "], ["6186","316",14.75,"1/2 shot Vodka "], ["6186","309",14.75,"1/2 shot Peach schnapps "], ["3136","309",22.5,"3/4 oz Peach schnapps "], ["3136","167",22.5,"3/4 oz Frangelico "], ["4170","304",45,"1 1/2 oz Rum or vodka "], ["4170","368",15,"1/2 oz Sloe gin "], ["4170","342",15,"1/2 oz Southern Comfort "], ["4170","309",15,"1/2 oz Peach schnapps "], ["4170","445",120,"Fill with 4 oz Orange juice "], ["4484","309",30,"1 oz Peach schnapps "], ["4484","274",30,"1 oz Melon liqueur "], ["4484","372",180,"6 oz Cranberry juice "], ["2343","316",22.5,"3/4 oz Vodka "], ["2343","309",22.5,"3/4 oz Peach schnapps "], ["2343","10",22.5,"3/4 oz Creme de Banane "], ["2343","445",15,"1-1/2 oz Orange juice "], ["5361","462",30,"1 oz Tequila "], ["5361","309",45,"1 1/2 oz Peach schnapps "], ["5361","445",180,"6 oz Orange juice "], ["2627","316",30,"1 oz Vodka "], ["2627","309",30,"1 oz Peach schnapps "], ["2627","445",180,"4-6 oz Orange juice "], ["4514","316",30,"1 oz Vodka "], ["4514","309",15,"1/2 oz Peach schnapps "], ["4514","213",15,"1/2 oz Triple sec "], ["5072","316",14.75,"1/2 shot Vodka (Skyy) "], ["5072","309",14.75,"1/2 shot Peach schnapps "], ["4218","115",14.75,"1/2 shot Goldschlager "], ["4218","119",14.75,"1/2 shot 100 proof Absolut Vodka "], ["3120","316",30,"1 oz Vodka "], ["3120","304",30,"1 oz Rum "], ["3120","376",30,"1 oz Gin "], ["3120","342",30,"1 oz Southern Comfort "], ["3120","445",120,"4 oz Orange juice "], ["3120","375",30,"1 oz Amaretto "], ["3120","82",30,"1 oz Grenadine "], ["2172","316",29.5,"1 shot Vodka (Absolut) "], ["2172","462",29.5,"1 shot Tequila (Jose Cuervo) "], ["2172","387",29.5,"1 shot Dark rum (Meyers) "], ["2172","131",3.7,"1 splash Tabasco sauce "], ["1100","375",15,"1/2 oz Amaretto "], ["1100","480",15,"1/2 oz Irish cream "], ["1447","119",60,"6 cl Absolut Vodka "], ["1447","323",60,"6 cl Sprite "], ["1447","424",10,"1 cl Lemon juice "], ["3196","15",30,"1 oz Green Creme de Menthe "], ["3196","108",30,"1 oz J�germeister "], ["3196","270",30,"1 oz Bailey's irish cream "], ["2154","214",45,"1 1/2 oz Light rum "], ["2154","333",15,"1/2 oz white Creme de Cacao "], ["2154","155",30,"1 oz Heavy cream "], ["2154","179",5,"1 tsp Cherry brandy "], ["5196","214",30,"1 oz Light rum "], ["5196","213",15,"1/2 oz Triple sec "], ["5196","372",60,"2 oz Cranberry juice "], ["393","199",360,"12 oz Mountain Dew "], ["393","335",29.5,"1 shot Spiced rum (Captain Morgan's) "], ["393","263",29.5,"1 shot Johnnie Walker red label "], ["2024","335",150,"1.5 oz Spiced rum (Captain Morgan's) "], ["2024","445",150,"5 oz Orange juice "], ["2024","261",90,"3 oz Pineapple juice "], ["2024","213",750,"0.25 oz Triple sec "], ["5978","304",30,"3 cl Rum (Ron Bacardi Superior) "], ["5978","10",10,"1 cl Creme de Banane "], ["5978","424",10,"1 cl fresh Lemon juice "], ["396","316",60,"2 oz Vodka (Russian) "], ["396","115",15,"1/2 oz Goldschlager "], ["396","71",15,"1/2 oz Everclear (190 proof) "], ["2324","316",30,"3 cl Vodka "], ["2324","376",30,"3 cl Gin "], ["2324","462",30,"3 cl Tequila "], ["2324","445",3.7,"1 splash Orange juice "], ["397","376",45,"1 1/2 oz Gin "], ["397","192",30,"1 oz Brandy "], ["397","383",30,"1 oz Sweet Vermouth "], ["397","130",30,"1 oz Club soda "], ["5065","342",22.5,"3/4 oz Southern Comfort "], ["5065","309",30,"1 oz Peach schnapps "], ["5065","445",120,"4 oz Orange juice "], ["5065","82",0.9,"1 dash Grenadine "], ["5550","376",30,"1 oz Gin "], ["5550","179",15,"1/2 oz Cherry brandy "], ["5550","261",120,"4 oz Pineapple juice "], ["5550","186",15,"1/2 oz Lime juice "], ["5550","359",7.5,"1/4 oz Cointreau "], ["5550","351",7.5,"1/4 oz Benedictine "], ["5550","82",10,"1/3 oz Grenadine "], ["5550","366",0.9,"1 dash Angostura bitters "], ["5887","76",60,"2 oz George Dickel "], ["5887","83",60,"2 oz Ginger ale "], ["1576","462",22.5,"3/4 oz Tequila "], ["1576","309",7.5,"1/4 oz Peach schnapps "], ["1576","269",15,"1/2 oz Strawberry liqueur "], ["1576","211",90,"3 oz Sweet and sour, mix "], ["2721","237",22.5,"3/4 oz Raspberry liqueur "], ["2721","316",30,"1 oz Vodka "], ["2721","261",180,"6 oz Pineapple juice "], ["2721","372",3.7,"1 splash Cranberry juice "], ["6044","316",120,"4 oz Vodka (Aristocrat) "], ["6044","505",600,"20 oz Malt liquor (Colt 45) "], ["399","376",45,"1 1/2 oz Gin "], ["399","424",15,"1/2 oz Lemon juice "], ["399","477",2.5,"1/2 tsp superfine Sugar "], ["399","29",120,"4 oz Tonic water "], ["400","376",60,"2 oz Gin "], ["400","383",30,"1 oz Sweet Vermouth "], ["403","376",45,"1 1/2 oz Gin "], ["403","445",30,"1 oz Orange juice "], ["403","424",30,"1 oz Lemon juice "], ["403","82",2.5,"1/2 tsp Grenadine "], ["420","186",45,"1 1/2 oz Lime juice "], ["420","477",5,"1 tsp superfine Sugar "], ["420","376",60,"2 oz Gin "], ["420","106",0.9,"1 dash Bitters "], ["420","130",90,"3 oz Club soda "], ["421","376",75,"2 1/2 oz Gin "], ["421","424",45,"1 1/2 oz Lemon juice "], ["421","477",5,"1 tsp superfine Sugar "], ["421","130",120,"4 oz Club soda "], ["421","473",15,"1/2 oz Creme de Cassis "], ["4196","115",10,"1/3 oz Goldschlager "], ["4196","114",10,"1/3 oz Butterscotch schnapps "], ["4196","270",10,"1/3 oz Bailey's irish cream "], ["2054","310",257,"1 cup Hot chocolate "], ["2054","205",30,"1 oz White Creme de Menthe "], ["4776","265",30,"1 oz Kahlua "], ["4776","115",30,"1 oz Goldschlager "], ["4776","270",30,"1 oz Bailey's irish cream "], ["5193","88",3.7,"1 splash Dry Vermouth "], ["5193","316",120,"4 oz Vodka "], ["5193","295",90,"3 oz chilled Champagne "], ["5193","176",0.9,"1 dash Maraschino liqueur "], ["4285","375",15,"1/2 oz Amaretto "], ["4285","342",15,"1/2 oz Southern Comfort "], ["4285","445",60,"2 oz Orange juice "], ["4285","22",60,"2 oz 7-Up "], ["4180","274",45,"1 1/2 oz Melon liqueur "], ["4180","342",45,"1 1/2 oz Southern Comfort "], ["4180","445",90,"3 oz Orange juice "], ["4180","261",90,"3 oz Pineapple juice "], ["4180","297",45,"Float 1 1/2 oz Blue Curacao "], ["424","316",30,"1 oz Vodka "], ["424","375",30,"1 oz Amaretto "], ["424","155",30,"1 oz Heavy cream "], ["1501","304",7.38,"1/4 shot Rum "], ["1501","316",7.38,"1/4 shot Vodka "], ["1501","237",7.38,"1/4 shot Raspberry liqueur or Creme de Cassis "], ["1501","186",0.9,"1 dash Lime juice "], ["1501","85",0.9,"1 dash 151 proof rum "], ["5767","310",128.5,"1/2 cup Hot chocolate "], ["5767","464",29.5,"1 shot Peppermint schnapps (Rumple Minze) "], ["5767","224",29.5,"1 shot Godiva liqueur "], ["3653","378",45,"1 1/2 oz Scotch "], ["3653","375",22.5,"3/4 oz Amaretto "], ["1194","316",45,"1 1/2 oz Vodka "], ["1194","375",22.5,"3/4 oz Amaretto "], ["2067","462",90,"3 oz Tequila "], ["2067","359",45,"1 1/2 oz Cointreau "], ["2067","291",30,"1 oz Cherry juice "], ["2067","424",22.5,"3/4 oz Lemon juice "], ["6068","145",22.5,"3/4 oz Rumple Minze "], ["6068","115",7.5,"1/4 oz Goldschlager "], ["5754","115",15,"1/2 oz Goldschlager "], ["5754","40",30,"1 oz Sour Apple Pucker "], ["3251","122",15,"1/2 oz Jack Daniels "], ["3251","115",15,"1/2 oz Goldschlager "], ["5743","175",360,"12 oz Coca-Cola "], ["5743","115",30,"1 oz Goldschlager "], ["427","391",45,"1 1/2 oz Vanilla vodka (Stoli Vanil) "], ["427","465",45,"1 1/2 oz White chocolate liqueur "], ["427","479",15,"1/2 oz Galliano "], ["427","333",45,"1 1/2 oz white Creme de Cacao "], ["427","422",30,"1 oz Cream "], ["427","357",3.7,"1 splash Sugar syrup "], ["3369","479",30,"1 oz Galliano "], ["3369","333",60,"2 oz white Creme de Cacao "], ["3369","41",30,"1 oz Light cream "], ["4270","324",257,"1 cup sparkling Apple cider "], ["4270","115",29.5,"1 shot Goldschlager "], ["5316","376",45,"1 1/2 oz Gin "], ["5316","92",15,"1/2 oz Peach brandy "], ["5316","445",30,"1 oz Orange juice "], ["429","115",29.5,"1 shot Goldschlager "], ["429","131",3.7,"1 splash Tabasco sauce "], ["5898","462",44.25,"1 1/2 shot Tequila "], ["5898","315",44.25,"1 1/2 shot Grand Marnier "], ["5898","200",29.5,"1 shot Rose's sweetened lime juice "], ["5898","266",29.5,"1 shot Sour mix (homemade) "], ["4696","115",30,"1 oz Goldschlager "], ["4696","2",60,"2 oz Lemonade "], ["6149","124",22.5,"3/4 oz Anisette "], ["6149","265",22.5,"3/4 oz Kahlua "], ["4873","312",37.5,"1 1/4 oz Absolut Citron "], ["4873","238",22.5,"3/4 oz Aliz� "], ["4873","2",180,"6 oz Lemonade "], ["2306","214",30,"1 oz Light rum "], ["2306","387",30,"1 oz Dark rum "], ["2306","468",30,"1 oz Coconut rum "], ["2306","261",120,"4 oz Pineapple juice "], ["2155","232",15,"1/2 oz Wild Turkey "], ["2155","85",15,"1/2 oz Bacardi 151 proof rum "], ["4582","316",30,"1 oz Vodka "], ["4582","342",30,"1 oz Southern Comfort "], ["4582","297",60,"2 oz Blue Curacao "], ["4582","445",180,"6 oz Orange juice "], ["1585","335",30,"1 oz Spiced rum "], ["1585","36",30,"1 oz Malibu rum "], ["1585","231",7.5,"1/4 oz Apricot brandy "], ["1585","261",60,"2 oz Pineapple juice "], ["1585","445",60,"2 oz Orange juice "], ["2365","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["2365","342",9.83,"1/3 shot Southern Comfort "], ["2365","122",9.83,"1/3 shot Jack Daniels "], ["2565","122",30,"1 oz Jack Daniels "], ["2565","232",30,"1 oz Wild Turkey "], ["2565","182",30,"1 oz Crown Royal "], ["3455","85",30,"1 oz Bacardi 151 proof rum "], ["3455","62",30,"1 oz Yukon Jack "], ["5880","108",14.75,"1/2 shot J�germeister "], ["5880","115",14.75,"1/2 shot Goldschlager "], ["2957","274",15,"1/2 oz Melon liqueur "], ["2957","10",15,"1/2 oz Creme de Banane "], ["2957","111",6,"1/5 oz Advocaat "], ["3518","316",9.83,"1/3 shot Vodka (Absolut) "], ["3518","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["3518","227",9.83,"1/3 shot Banana liqueur "], ["1606","85",29.5,"1 shot Bacardi 151 proof rum "], ["1606","108",29.5,"1 shot J�germeister "], ["2590","265",30,"1 oz Kahlua "], ["2590","62",30,"1 oz Yukon Jack "], ["2590","85",30,"1 oz Bacardi 151 proof rum "], ["2470","232",30,"1 oz Wild Turkey, 101 proof "], ["2470","85",30,"1 oz Bacardi 151 proof rum "], ["5290","36",15,"1 1/2 cl Malibu rum "], ["5290","309",15,"1 1/2 cl Peach schnapps "], ["5290","297",15,"1 1/2 cl Blue Curacao "], ["5290","211",30,"3 cl Sweet and sour "], ["2433","375",15,"1/2 oz Amaretto "], ["2433","342",45,"1 1/2 oz Southern Comfort "], ["2433","261",30,"1 oz Pineapple juice "], ["4901","270",20,"2 cl Bailey's irish cream "], ["4901","316",20,"2 cl Koskenkorva salmiac Vodka "], ["1042","445",20,"2 cl Orange juice "], ["1042","404",60,"6 cl Grapefruit juice "], ["2250","316",10,"1/3 oz Vodka "], ["2250","54",10,"1/3 oz Chambord raspberry liqueur "], ["2250","266",10,"1/3 oz Sour mix "], ["1011","404",300,"10 oz Grapefruit juice "], ["1011","36",120,"4 oz Malibu rum "], ["1011","186",3.7,"1 splash Lime juice "], ["2983","297",90,"3 oz Blue Curacao "], ["2983","316",30,"1 oz Vodka "], ["2983","372",60,"2 oz Cranberry juice "], ["2983","416",60,"2 oz Grape juice "], ["2983","175",30,"1 oz Coca-Cola "], ["2983","261",3.7,"1 splash of Pineapple juice "], ["434","15",22.5,"3/4 oz Green Creme de Menthe "], ["434","333",22.5,"3/4 oz white Creme de Cacao "], ["434","41",22.5,"3/4 oz Light cream "], ["435","416",257,"1 cup Grape juice "], ["435","324",257,"1 cup Apple cider (or apple juice) "], ["435","424",5,"1 tsp Lemon juice "], ["435","409",1.25,"1/4 tsp Cinnamon "], ["1545","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["1545","21",14.75,"1/2 shot Whiskey (James B. Beam) "], ["6138","226",40,"4 cl Bacardi Limon "], ["6138","157",20,"2 cl Passoa "], ["6138","186",10,"1 cl Lime juice "], ["6138","355",80,"8 cl Passion fruit juice "], ["6138","323",40,"4 cl Sprite "], ["1653","358",10,"1/3 oz Ouzo "], ["1653","316",10,"1/3 oz Vodka "], ["1653","54",10,"1/3 oz Chambord raspberry liqueur (Cr.de Cassis) "], ["5191","376",60,"2 oz Gin (Tanqueray Malacca) "], ["5191","354",30,"1 oz Metaxa "], ["2101","342",29.5,"1 shot Southern Comfort "], ["2101","146",3.7,"1 splash Midori melon liqueur "], ["2101","266",3.7,"1 splash Sour mix "], ["2674","449",30,"1 oz Apple schnapps "], ["2674","146",30,"1 oz Midori melon liqueur "], ["2674","316",30,"1 oz Vodka "], ["2674","266",3.7,"1 splash Sour mix "], ["2674","22",29.5,"1 shot 7-Up "], ["5004","316",14.75,"1/2 shot Vodka "], ["5004","464",14.75,"1/2 shot green Peppermint schnapps "], ["3397","333",15,"1/2 oz Creme de Cacao "], ["3397","15",15,"1/2 oz Green Creme de Menthe "], ["3397","270",15,"1/2 oz Bailey's irish cream "], ["4461","376",15,"1/2 oz Gin "], ["4461","274",7.5,"1/4 oz Melon liqueur "], ["4461","304",7.5,"1/4 oz Rum or vodka "], ["5535","119",22.5,"3/4 oz Absolut Vodka "], ["5535","146",22.5,"3/4 oz Midori melon liqueur "], ["5535","36",22.5,"3/4 oz Malibu rum "], ["2527","316",20,"2 cl Vodka (Absolut) "], ["2527","425",20,"2 cl Pisang Ambon "], ["2527","323",60,"6 cl Sprite light "], ["2527","445",60,"6 cl Orange juice "], ["436","316",30,"1 oz Vodka "], ["436","213",7.5,"1/4 oz Triple sec "], ["436","230",60,"2 oz Limeade "], ["2217","316",60,"2 oz Vodka "], ["2217","376",60,"2 oz Gin "], ["2217","304",60,"2 oz Rum "], ["2217","146",60,"2 oz Midori melon liqueur "], ["2217","213",60,"2 oz Triple sec "], ["2217","266",60,"2 oz Sour mix "], ["2217","22",60,"2 oz 7-Up "], ["2394","316",15,"1/2 oz Vodka "], ["2394","376",15,"1/2 oz Gin "], ["2394","146",15,"1/2 oz Midori melon liqueur "], ["438","462",30,"1 oz Tequila "], ["438","316",30,"1 oz Vodka "], ["438","304",30,"1 oz Rum "], ["438","146",30,"1 oz Midori melon liqueur "], ["438","2",60,"2 oz yellow Lemonade "], ["2927","146",22.5,"3/4 oz Midori melon liqueur "], ["2927","304",30,"1 oz Rum "], ["2927","200",15,"1/2 oz Rose's sweetened lime juice "], ["2927","55",15,"1/2 oz Cream of coconut "], ["2927","261",45,"1 1/2 oz Pineapple juice "], ["439","274",10,"1/3 oz Melon liqueur "], ["439","227",10,"1/3 oz Banana liqueur "], ["439","270",10,"1/3 oz Bailey's irish cream "], ["1369","32",240,"8 oz green Kool-Aid "], ["1369","71",29.5,"1 shot Everclear "], ["5847","316",30,"3 cl Vodka (Cossack) "], ["5847","46",5,"1/2 cl Green Curacao (Bols) "], ["5847","10",5,"1/2 cl Creme de Banane (Bols) "], ["5847","404",5,"1/2 cl Grapefruit juice "], ["5847","424",15,"1 1/2 cl Lemon juice "], ["2792","146",15,"1/2 oz Midori melon liqueur "], ["2792","462",30,"1 oz Tequila (Two Fingers) "], ["2792","211",60,"2 oz Sweet and sour mix "], ["6182","146",15,"1/2 oz Midori melon liqueur "], ["6182","342",15,"1/2 oz Southern Comfort "], ["6182","266",3.7,"1 splash Sour mix "], ["1273","274",30,"1 oz Melon liqueur "], ["1273","36",22.5,"3/4 oz Malibu rum "], ["1273","359",7.5,"1/4 oz Cointreau "], ["1273","261",90,"3 oz Pineapple juice "], ["3508","316",40,"4 cl Vodka "], ["3508","142",40,"4 cl White rum "], ["3508","319",20,"2 cl Black rum "], ["3508","473",10,"1 cl Creme de Cassis "], ["3508","297",10,"1 cl Blue Curacao "], ["3508","359",20,"2 cl Cointreau "], ["3508","261",260,"26 cl Pineapple juice "], ["3486","376",20,"2 cl Gin "], ["3486","425",20,"2 cl Pisang Ambon "], ["3486","266",20,"2 cl Sour mix "], ["3486","355",20,"2 cl Passion fruit juice "], ["3486","445",100,"10 cl Orange juice "], ["4004","85",15,"1/2 oz Bacardi 151 proof rum "], ["4004","15",15,"1/2 oz Green Creme de Menthe "], ["440","124",15,"1/2 oz Anisette "], ["440","376",15,"1/2 oz Gin "], ["440","170",30,"1 oz Anis "], ["1823","316",20,"2 cl Vodka "], ["1823","10",20,"2 cl Creme de Banane "], ["1823","297",30,"3 cl Blue Curacao "], ["1823","445",60,"6 cl Orange juice "], ["4041","146",14.75,"1/2 shot Midori melon liqueur "], ["4041","186",29.5,"1 shot Lime juice "], ["4041","316",29.5,"1 shot Vodka "], ["4041","211",14.75,"1/2 shot Sweet and sour "], ["4041","29",300,"10 oz Tonic water "], ["4377","425",20,"2 cl Pisang Ambon "], ["4377","21",20,"2 cl Whiskey "], ["4377","445",20,"2 cl Orange juice "], ["3907","85",29.5,"1 shot Bacardi 151 proof rum "], ["3907","15",14.75,"1/2 shot Green Creme de Menthe "], ["4583","468",15,"1/2 oz Coconut rum "], ["4583","146",15,"1/2 oz Midori melon liqueur "], ["4583","261",30,"1 oz Pineapple juice "], ["4629","146",30,"1 oz Midori melon liqueur "], ["4629","316",30,"1 oz Vodka "], ["4629","376",30,"1 oz Gin "], ["4629","213",15,"1/2 oz Triple sec "], ["5646","274",30,"1 oz Melon liqueur "], ["5646","36",30,"1 oz Malibu rum "], ["5646","213",3.7,"1 splash Triple sec "], ["5646","211",3.7,"1 splash Sweet and sour "], ["5646","323",29.5,"1 shot Sprite "], ["3788","462",120,"4 oz Tequila "], ["3788","425",120,"4 oz Pisang Ambon "], ["3788","445",240,"8 oz Orange juice "], ["2830","376",45,"1 1/2 oz Gin "], ["2830","15",30,"1 oz Green Creme de Menthe "], ["2830","424",30,"1 oz Lemon juice "], ["3111","123",7.38,"1/4 shot Kiwi liqueur "], ["3111","316",22.13,"3/4 shot Vodka "], ["441","376",60,"2 oz Gin "], ["441","192",30,"1 oz Brandy "], ["441","478",10,"2 tsp Orgeat syrup "], ["441","424",10,"2 tsp Lemon juice "], ["4450","376",45,"1 1/2 oz Gin "], ["4450","404",150,"5 oz Grapefruit juice "], ["2043","146",30,"1 oz Midori melon liqueur "], ["2043","227",30,"1 oz Banana liqueur "], ["2043","36",30,"1 oz Malibu rum "], ["2043","22",3.7,"1 splash 7-Up "], ["5953","265",30,"1 oz Kahlua "], ["5953","85",30,"1 oz Bacardi 151 proof rum "], ["5953","82",0.9,"1 dash Grenadine "], ["1102","387",60,"2 oz Dark rum "], ["1102","352",90,"3 oz Water "], ["1525","376",40,"4 cl Gin "], ["1525","259",160,"16 cl skimmed Milk "], ["1525","477",5,"1 tsp Sugar "], ["4090","272",15,"1/2 oz Razzmatazz "], ["4090","227",15,"1/2 oz Banana liqueur "], ["4090","404",15,"1/2 oz Grapefruit juice "], ["446","250",257,"1 cup strong black Tea "], ["446","387",29.5,"1 shot Dark rum (Bundaberg) "], ["445","365",15,"1-1/2 oz Absolut Kurant "], ["445","213",15,"1/2 oz Triple sec "], ["445","372",3.7,"1 splash Cranberry juice "], ["2854","392",360,"12 oz Beer "], ["2854","352",180,"6 oz Water "], ["2854","316",3.75,"1/8 oz Vodka "], ["4357","445",180,"6 oz Orange juice "], ["4357","316",60,"2 oz Vodka (Finlandia) "], ["4357","97",60,"2 oz RedRum "], ["4357","293",30,"1 oz Lemon liqueur "], ["4357","186",15,"1/2 oz Lime juice "], ["5235","359",50,"5 cl Cointreau "], ["5235","68",50,"5 cl Green Chartreuse "], ["2588","365",60,"2 oz Absolut Kurant "], ["2588","270",30,"1 oz Bailey's irish cream "], ["2588","376",60,"2 oz Gin "], ["2588","263",30,"1 oz Johnnie Walker "], ["3490","114",14.75,"1/2 shot Butterscotch schnapps "], ["3490","270",14.75,"1/2 shot Bailey's irish cream "], ["3490","62",3.7,"1 splash Yukon Jack "], ["1499","358",20,"2 cl Ouzo "], ["1499","131",20,"2 cl Tabasco sauce "], ["1764","214",30,"1 oz Light rum "], ["1764","387",60,"2 oz Dark rum "], ["1764","445",60,"2 oz Orange juice "], ["1764","261",60,"2 oz Pineapple juice "], ["1764","82",15,"1/2 oz Grenadine "], ["1764","85",15,"1/2 oz Bacardi 151 proof rum "], ["1654","359",20,"2 cl Cointreau "], ["1654","270",20,"2 cl Bailey's irish cream "], ["1654","21",20,"2 cl Whiskey "], ["1654","259",70,"7 cl Milk "], ["2584","62",14.75,"1/2 shot Yukon Jack "], ["2584","122",14.75,"1/2 shot Jack Daniels "], ["2894","376",37.5,"1 1/4 oz Gin (Bombay Sapphire) "], ["2894","68",15,"1/2 oz Green Chartreuse "], ["451","316",30,"1 oz Vodka "], ["451","479",15,"1/2 oz Galliano "], ["451","259",120,"4 oz Milk "], ["4712","462",15,"1/2 oz Tequila "], ["4712","108",15,"1/2 oz J�germeister "], ["1405","462",60,"2 oz Tequila "], ["1405","213",30,"1 oz Triple sec "], ["1405","445",90,"3 oz Orange juice "], ["1405","261",90,"3 oz Pineapple juice "], ["1405","82",10,"2 tsp Grenadine "], ["2396","316",30,"1 oz Vodka "], ["2396","479",15,"1/2 oz Galliano "], ["2396","445",120,"4 oz Orange juice "], ["453","376",45,"1 1/2 oz Gin "], ["453","88",22.5,"3/4 oz Dry Vermouth "], ["453","170",1.25,"1/4 tsp Anis "], ["453","82",5,"1 tsp Grenadine "], ["455","387",15,"1/2 oz Dark rum "], ["455","214",15,"1/2 oz Light rum "], ["455","383",15,"1/2 oz Sweet Vermouth "], ["5428","214",60,"2 oz Light rum "], ["5428","297",60,"2 oz Blue Curacao "], ["5428","211",30,"1 oz Sweet and sour "], ["5428","261",90,"3 oz Pineapple juice "], ["456","214",30,"1 oz Light rum "], ["456","261",30,"1 oz Pineapple juice "], ["456","424",5,"1 tsp Lemon juice "], ["6009","316",15,"1/2 oz Vodka "], ["6009","342",15,"1/2 oz Southern Comfort "], ["6009","375",15,"1/2 oz Amaretto "], ["6009","368",15,"1/2 oz Sloe gin "], ["6009","445",30,"1 oz Orange juice "], ["6009","261",30,"1 oz Pineapple juice "], ["5928","319",60,"2 oz Black rum (Bacardi) "], ["5928","342",60,"2 oz Southern Comfort "], ["5928","261",180,"6 oz Pineapple juice "], ["5928","82",3.7,"1 splash Grenadine to taste "], ["1589","114",9.83,"1/3 shot Butterscotch schnapps "], ["1589","375",9.83,"1/3 shot Amaretto "], ["1589","468",9.83,"1/3 shot Coconut rum "], ["2147","375",15,"1/2 oz Amaretto "], ["2147","316",15,"1/2 oz Vodka "], ["2147","304",15,"1/2 oz Rum "], ["2147","10",15,"1/2 oz Creme de Banane "], ["2147","445",60,"2 oz Orange juice "], ["2147","261",60,"2 oz Pineapple juice "], ["2147","82",45,"1 1/2 oz Grenadine "], ["6168","316",45,"1 1/2 oz Vodka "], ["6168","372",75,"2 1/2 oz Cranberry juice "], ["6168","445",75,"2 1/2 oz Orange juice "], ["6168","443",45,"1 1/2 oz Soda water "], ["3400","468",60,"2 oz Coconut rum (Parrot Bay) "], ["3400","78",15,"1/2 oz Absolut Mandrin "], ["3400","261",210,"7 oz Pineapple juice (Dole) "], ["3400","82",3.7,"1 splash Grenadine (Rose's) "], ["5702","316",15,"1/2 oz Vodka "], ["5702","342",15,"1/2 oz Southern Comfort "], ["5702","375",7.5,"1/4 oz Amaretto "], ["5702","445",3.7,"1 splash Orange juice "], ["5702","22",3.7,"1 splash 7-Up "], ["5702","82",3.7,"1 splash Grenadine "], ["1442","316",22.5,"3/4 oz Vodka "], ["1442","342",22.5,"3/4 oz Southern Comfort "], ["1442","375",22.5,"3/4 oz Amaretto "], ["1442","445",45,"1 1/2 oz Orange juice "], ["1442","261",45,"1 1/2 oz Pineapple juice "], ["1442","82",3.7,"1 splash Grenadine "], ["2703","304",37.5,"1 1/4 oz Rum (Malibu) "], ["2703","322",15,"1/2 oz Peachtree schnapps (Dekuyper) "], ["2703","297",15,"1/2 oz Blue Curacao (Dekuyper) "], ["2703","211",90,"3 oz Sweet and sour "], ["2703","388",3.7,"1 splash Lemon-lime soda "], ["1965","316",30,"1 oz Vodka (Ketel One) "], ["1965","167",15,"1/2 oz Frangelico "], ["5391","214",45,"1 1/2 oz Light rum "], ["5391","176",7.5,"1/4 oz Maraschino liqueur "], ["5391","186",22.5,"3/4 oz Lime juice "], ["5391","404",7.5,"1/4 oz Grapefruit juice "], ["459","316",20,"2 cl Vodka "], ["459","146",40,"4 cl Midori melon liqueur "], ["459","266",120,"10-12 cl Sour mix "], ["3234","21",30,"1 oz Whiskey "], ["3234","316",30,"1 oz Vodka "], ["3234","376",30,"1 oz Gin "], ["3234","214",30,"1 oz Light rum "], ["3234","297",15,"1/2 oz Blue Curacao "], ["3234","221",15,"1/2 oz Raspberry schnapps "], ["3234","274",15,"1/2 oz Melon liqueur "], ["3234","213",15,"1/2 oz Triple sec "], ["3234","372",30,"1 oz Cranberry juice "], ["3234","261",30,"1 oz Pineapple juice "], ["3234","211",30,"1 oz Sweet and sour "], ["461","376",45,"1 1/2 oz Gin "], ["461","213",15,"1/2 oz Triple sec "], ["461","296",30,"1 oz Sake "], ["1197","316",45,"1 1/2 oz Vodka (Skyy) "], ["1197","54",45,"1 1/2 oz Chambord raspberry liqueur "], ["1197","213",30,"1 oz Triple sec "], ["1197","200",3.7,"1 splash Rose's sweetened lime juice "], ["5753","378",52.5,"1 3/4 oz Scotch "], ["5753","408",22.5,"3/4 oz Vermouth "], ["5753","424",1.25,"1/4 tsp Lemon juice "], ["5753","433",0.9,"1 dash Orange bitters "], ["4619","270",37.5,"1 1/4 oz Bailey's irish cream "], ["4619","375",37.5,"1 1/4 oz Amaretto "], ["5376","146",60,"2 oz Midori melon liqueur "], ["5376","462",60,"2 oz Tequila "], ["5376","372",60,"2 oz Cranberry juice "], ["5376","108",30,"1 oz J�germeister "], ["464","376",22.5,"3/4 oz Gin "], ["464","351",22.5,"3/4 oz Benedictine "], ["464","176",22.5,"3/4 oz Maraschino liqueur "], ["4678","342",30,"1 oz Southern Comfort "], ["4678","316",30,"1 oz Vodka (Finlandia) "], ["4678","445",15,"1/2 oz Orange juice "], ["4678","186",15,"1/2 oz Lime juice "], ["4678","464",3.7,"1 splash Peppermint schnapps "], ["4678","323",3.7,"1 splash Sprite or 7-up "], ["465","378",45,"1 1/2 oz Scotch "], ["465","33",15,"1/2 oz Lillet "], ["465","383",15,"1/2 oz Sweet Vermouth "], ["4267","230",180,"6 oz frozen Limeade concentrate "], ["4267","2",180,"6 oz frozen Lemonade concentrate "], ["4267","309",180,"6 oz Peach schnapps "], ["4267","85",180,"6 oz Bacardi 151 proof rum "], ["3656","462",9.83,"1/3 shot Tequila "], ["3656","142",9.83,"1/3 shot White rum "], ["3656","316",9.83,"1/3 shot Vodka (Smirnoff) "], ["3657","462",14.75,"1/2 shot Tequila "], ["3657","304",14.75,"1/2 shot Rum "], ["4389","462",14.75,"1/2 shot Tequila "], ["4389","342",14.75,"1/2 shot Southern Comfort "], ["2636","139",45,"1 1/2 oz Tuaca "], ["2636","324",180,"6 oz Apple cider "], ["3185","270",14.75,"1/2 shot Bailey's irish cream "], ["3185","115",14.75,"1/2 shot Goldschlager "], ["3185","409",0.9,"1 dash Cinnamon (optional) "], ["2558","309",15,"1/2 oz Peach schnapps "], ["2558","265",15,"1/2 oz Kahlua "], ["3724","316",25,"2 1/2 cl Vodka "], ["3724","252",25,"2 1/2 cl Whisky "], ["3724","376",25,"2 1/2 cl Gin "], ["3724","131",0.9,"1 dash Tabasco sauce "], ["1012","132",45,"1 1/2 oz Cinnamon schnapps "], ["1012","146",45,"1 1/2 oz Midori melon liqueur "], ["1061","42",29.5,"1 shot Irish whiskey (Bushmill's) "], ["1061","270",22.13,"3/4 shot Bailey's irish cream "], ["1061","482",180,"6 oz hot Coffee "], ["1687","21",15,"1/2 oz Whiskey "], ["1687","445",60,"2 oz Orange juice "], ["1687","304",30,"1 oz Rum "], ["1687","316",30,"1 oz Vodka "], ["471","444",15,"1/2 oz Hot Damn "], ["471","309",15,"1/2 oz Peach schnapps "], ["4918","444",15,"1/2 oz Hot Damn "], ["4918","202",15,"1/2 oz Gold tequila (Cuervo) "], ["2673","85",60,"2 oz Bacardi 151 proof rum "], ["2673","131",0.9,"1 dash Tabasco sauce "], ["5470","316",15,"1/2 oz Vodka (Fris) "], ["5470","501",15,"1/2 oz Ice 101 "], ["5470","131",0.9,"1 dash Tabasco sauce "], ["5018","316",30,"1 oz Vodka (Habanero) "], ["5018","445",90,"3 oz Orange juice "], ["5018","83",90,"3 oz Ginger ale "], ["4233","309",30,"1 oz Peach schnapps "], ["4233","376",15,"1/2 oz Gin "], ["5409","312",37.5,"1 1/4 oz Absolut Citron "], ["5409","359",18.75,"5/8 oz Cointreau "], ["5409","211",30,"1 oz Sweet and sour "], ["5409","445",15,"1/2 oz Orange juice "], ["5409","372",15,"1/2 oz Cranberry juice "], ["4874","270",45,"1 1/2 oz Bailey's irish cream "], ["4874","167",22.5,"3/4 oz Frangelico "], ["4874","316",60,"2 oz Vodka (Absolute or Belvedere) "], ["1649","316",30,"1 oz Vodka "], ["1649","375",15,"1/2 oz Amaretto "], ["1649","368",15,"1/2 oz Sloe gin "], ["1649","146",3.7,"1 splash Midori melon liqueur "], ["1649","342",3.7,"1 splash Southern Comfort "], ["1649","445",30,"1 oz Orange juice "], ["1649","372",15,"1/2 oz Cranberry juice "], ["5705","387",30,"1 oz Dark rum (Bacardi) "], ["5705","355",30,"1 oz Passion fruit juice "], ["5705","82",15,"1/2 oz Grenadine "], ["5705","445",15,"1/2 oz Orange juice with pulp "], ["2157","214",7.5,"1/4 oz Light rum "], ["2157","376",7.5,"1/4 oz Gin "], ["2157","316",7.5,"1/4 oz Vodka "], ["2157","462",7.5,"1/4 oz Tequila "], ["2157","297",7.5,"1/4 oz Blue Curacao "], ["2157","179",0.9,"1 dash Cherry brandy "], ["2157","266",90,"3 oz Sour mix "], ["2157","445",90,"3 oz Orange juice "], ["4023","145",60,"2 oz Rumple Minze "], ["4023","475",60,"2 oz Sambuca "], ["4023","304",15,"1/2 oz Rum (Bacardi) "], ["4023","372",60,"2 oz Cranberry juice "], ["4023","326",90,"3 oz Orange "], ["5473","198",29.5,"1 shot Aftershock "], ["5473","115",29.5,"1 shot Goldschlager "], ["5267","122",30,"1 oz Jack Daniels "], ["5267","375",45,"1 1/2 oz Amaretto "], ["5267","476",15,"1/2 oz Pepsi Cola "], ["4255","198",18.75,"5/8 oz Aftershock "], ["4255","316",15,"4/8 oz Vodka (Absolut) "], ["4255","85",3.75,"1/8 oz 151 proof rum "], ["3147","375",20,"2/3 oz Amaretto "], ["3147","376",10,"1/3 oz Gin (Tanqueray) "], ["2270","227",20,"2 cl Banana liqueur "], ["2270","133",20,"2 cl Aquavit linie "], ["2270","186",50,"1,5 cl Lime juice "], ["2270","22",50,"2,5 cl 7-Up "], ["2469","265",30,"1 oz Kahlua "], ["2469","29",45,"1 1/2 oz Tonic water "], ["4376","375",60,"2 oz Amaretto "], ["4376","445",128.5,"1/2 cup Orange juice "], ["4376","503",128.5,"1/2 cup Vanilla ice-cream "], ["479","316",45,"1 1/2 oz Vodka "], ["479","161",105,"3 1/2 oz Iced tea, pre-sweetened "], ["2007","316",10,"1/3 oz Vodka "], ["2007","462",10,"1/3 oz Tequila "], ["2007","265",10,"1/3 oz Kahlua "], ["3489","450",90,"3 oz Rye whiskey "], ["3489","83",240,"8 oz Ginger ale "], ["3489","186",5,"1 tsp Lime juice "], ["482","214",45,"1 1/2 oz Light rum "], ["482","375",15,"1/2 oz Amaretto "], ["482","186",15,"1/2 oz Lime juice "], ["482","424",5,"1 tsp Lemon juice "], ["482","477",2.5,"1/2 tsp superfine Sugar "], ["1074","186",40,"4 cl Lime juice "], ["1074","376",20,"2 cl Gin "], ["1074","248",40,"4 cl Aperol "], ["6082","496",60,"2 oz Hpnotiq "], ["6082","3",60,"2 oz Cognac (Hennessy) "], ["3253","146",60,"2 oz Midori melon liqueur "], ["3253","316",30,"1 oz Vodka "], ["3253","199",60,"2 oz Mountain Dew "], ["3847","462",14.75,"1/2 shot Tequila "], ["3847","252",14.75,"1/2 shot Whisky "], ["3847","295",29.5,"1 shot Champagne "], ["3836","85",90,"3 oz Bacardi 151 proof rum "], ["3836","71",90,"3 oz Everclear "], ["3836","108",90,"3 oz J�germeister "], ["3836","352",150,"5 oz Water "], ["3836","51",0.9,"1 dash Salt "], ["4203","312",7.5,"1-1/4 oz Absolut Citron "], ["4203","365",7.5,"1-1/4 oz Absolut Kurant "], ["4203","315",3.7,"1 splash Grand Marnier "], ["5285","480",60,"2 oz Irish cream "], ["5285","462",30,"1 oz Tequila "], ["1274","482",240,"8 oz Coffee "], ["1274","270",60,"2 oz Bailey's irish cream "], ["1274","126",60,"2 oz Half-and-half "], ["1274","477",5,"1 tsp Sugar "], ["5264","119",30,"1 oz Absolut Vodka "], ["5264","270",45,"1 1/2 oz Bailey's irish cream "], ["5264","41",45,"1 1/2 oz Light cream "], ["4781","270",22.5,"3/4 oz Bailey's irish cream "], ["4781","249",22.5,"3/4 oz Bourbon "], ["4781","316",22.5,"3/4 oz Vodka "], ["4781","445",90,"2-3 oz Orange juice "], ["4454","270",15,"1/2 oz Bailey's irish cream "], ["4454","115",15,"1/2 oz Goldschlager "], ["5673","147",30,"1 oz Irish Mist "], ["5673","15",3.7,"1 splash Green Creme de Menthe "], ["4469","146",30,"1 oz Midori melon liqueur "], ["4469","295",90,"3 oz Champagne "], ["4469","445",30,"1 oz Orange juice "], ["3051","15",90,"3 oz Green Creme de Menthe "], ["3051","375",90,"3 oz Amaretto "], ["3051","424",60,"2 oz Lemon juice "], ["4289","316",29.5,"1 shot Vodka "], ["4289","265",29.5,"1 shot Kahlua "], ["4289","480",29.5,"1 shot Irish cream "], ["4496","173",30,"1 oz Canadian whisky "], ["4496","383",30,"1 oz Sweet Vermouth "], ["4496","375",30,"1 oz Amaretto "], ["4496","106",0.9,"1 dash Bitters "], ["1294","316",40,"4 cl Vodka "], ["1294","425",20,"2 cl Pisang Ambon "], ["1294","266",20,"2 cl Sour mix "], ["1294","443",100,"10 cl Soda water "], ["4253","3",60,"2 oz Cognac "], ["4253","54",30,"1 oz Chambord raspberry liqueur "], ["2882","316",45,"1 1/2 oz Stoli Vodka "], ["2882","65",120,"4 oz Guava juice "], ["2882","372",3.7,"1 splash Cranberry juice "], ["2882","445",0.9,"1 dash Orange juice "], ["5534","227",22.5,"3/4 oz Banana liqueur "], ["5534","36",22.5,"3/4 oz Malibu rum "], ["5534","122",15,"1/2 oz Jack Daniels "], ["5534","261",30,"1 oz Pineapple juice "], ["5534","211",30,"1 oz Sweet and sour "], ["5534","175",60,"2 oz Coca-Cola "], ["1815","316",30,"1 oz Vodka "], ["1815","297",30,"1 oz Blue Curacao "], ["1815","54",30,"1 oz Chambord raspberry liqueur "], ["1815","266",30,"1 oz Sour mix "], ["1815","22",60,"2 oz 7-Up "], ["5819","36",30,"1 oz Malibu rum "], ["5819","375",30,"1 oz Amaretto "], ["5819","445",120,"4 oz Orange juice "], ["5819","82",3.7,"1 splash Grenadine "], ["5185","375",30,"1 oz Amaretto "], ["5185","266",60,"2 oz Sour mix "], ["5185","462",15,"1/2 oz Tequila (Cuervo) "], ["5185","213",15,"1/2 oz Triple sec "], ["5573","167",15,"1/2 oz Frangelico "], ["5573","375",15,"1/2 oz Amaretto "], ["5573","139",30,"1 oz Tuaca "], ["4411","375",45,"1 1/2 oz Amaretto "], ["4411","41",90,"3 oz Light cream "], ["5187","316",37.5,"1 1/4 oz Vodka "], ["5187","327",22.5,"3/4 oz Campari "], ["5187","356",7.5,"1/4 oz Limoncello "], ["5187","445",22.5,"3/4 oz Orange juice "], ["5187","211",22.5,"3/4 oz Sweet and sour "], ["5771","375",60,"2 oz Amaretto "], ["5771","445",90,"3 oz Orange juice "], ["5771","130",90,"3 oz Club soda "], ["5771","82",0.9,"1 dash Grenadine "], ["4876","192",22.5,"3/4 oz Brandy "], ["4876","479",15,"1/2 oz Galliano "], ["1253","293",30,"1 oz Lemon liqueur "], ["1253","404",20,"2/3 oz Grapefruit juice "], ["1253","316",5,"1/6 oz Vodka "], ["1253","424",5,"1/6 oz Lemon juice "], ["1253","82",5,"1/6 oz Grenadine syrup "], ["489","249",60,"2 oz Bourbon "], ["489","375",15,"1/2 oz Amaretto "], ["489","259",30,"1 oz Milk "], ["491","249",60,"2 oz Bourbon "], ["491","375",15,"1/2 oz Amaretto "], ["2833","122",30,"1 oz Jack Daniels "], ["2833","202",30,"1 oz Gold tequila (Jose Cuervo) "], ["5301","423",60,"2 oz Applejack "], ["5301","424",30,"1 oz Lemon juice "], ["5301","82",30,"1 oz Grenadine "], ["5260","335",14.75,"1/2 shot Spiced rum (Captain Morgan's) "], ["5260","375",7.38,"1/4 shot Amaretto "], ["5260","10",7.38,"1/4 shot Creme de Banane "], ["2861","182",75,"2 1/2 oz Crown Royal "], ["2861","114",22.5,"3/4 oz Butterscotch schnapps (Buttershots) "], ["4266","122",15,"1/2 oz Jack Daniels "], ["4266","462",15,"1/2 oz Tequila "], ["1645","448",30,"1 oz Apple brandy "], ["1645","261",30,"1 oz Pineapple juice "], ["1645","106",0.9,"1 dash Bitters "], ["5203","122",30,"1 oz Jack Daniels "], ["5203","375",30,"1 oz Amaretto "], ["494","108",30,"1 oz J�germeister (ice cold) "], ["494","261",60,"2 oz Pineapple juice "], ["494","373",60,"2 oz Pina colada mix "], ["4149","198",15,"1/2 oz Aftershock "], ["4149","108",15,"1/2 oz J�germeister "], ["1205","431",30,"1 oz Coffee brandy "], ["1205","333",30,"1 oz white Creme de Cacao "], ["1205","41",30,"1 oz Light cream "], ["6016","85",60,"2 oz 151 proof rum (Bacardi) "], ["6016","494",180,"6 oz chilled Jolt Cola "], ["3644","445",120,"4 oz Orange juice "], ["3644","468",120,"4 oz Coconut rum "], ["3644","372",60,"1 - 2 oz Cranberry juice "], ["5614","214",30,"1 oz Light rum "], ["5614","36",15,"1/2 oz Malibu rum "], ["5614","261",15,"1/2 oz Pineapple juice "], ["2810","36",30,"1 oz Malibu rum "], ["2810","167",30,"1 oz Frangelico "], ["2810","270",30,"1 oz Bailey's irish cream "], ["2810","259",30,"1 oz Milk "], ["3454","304",30,"1 oz Rum (Bacardi) "], ["3454","36",30,"1 oz Malibu rum "], ["3454","227",30,"1 oz Banana liqueur "], ["3454","372",3.7,"Add 1 splash Cranberry juice "], ["3454","261",3.7,"Add 1 splash Pineapple juice "], ["3594","316",60,"2 oz Vodka "], ["3594","309",60,"2 oz Peach schnapps "], ["3594","445",135,"4 1/2 oz Orange juice "], ["3594","372",30,"1 oz Cranberry juice "], ["4878","304",37.5,"1 1/4 oz Captain Morgan's Rum "], ["4878","304",15,"1/2 oz Meyers Rum "], ["4878","445",45,"1 1/2 oz Orange juice "], ["4878","261",45,"1 1/2 oz Pineapple juice "], ["4878","211",30,"1 oz Sweet and sour "], ["5037","316",30,"1 oz Vodka (Skyy) "], ["5037","146",22.5,"3/4 oz Midori melon liqueur "], ["5037","126",15,"1/2 oz Half-and-half "], ["5037","36",7.5,"1/4 oz Malibu rum "], ["5648","59",120,"4 oz Fanta "], ["5648","323",120,"4 oz Sprite "], ["5648","226",120,"4 oz Bacardi Limon "], ["498","378",60,"2 oz Scotch "], ["498","451",15,"1/2 oz Tawny port "], ["498","88",15,"1/2 oz Dry Vermouth "], ["498","106",0.9,"1 dash Bitters "], ["6170","134",1050,"0.35 oz (small boxI) Jello, any flavor "], ["6170","352",257,"1 cup boiling Water "], ["6170","316",257,"1 cup Vodka "], ["4457","82",30,"1 oz Grenadine "], ["4457","335",90,"3 oz Spiced rum "], ["4457","342",60,"2 oz Southern Comfort "], ["4457","83",360,"12 oz Ginger ale "], ["5829","213",15,"1/2 oz Triple sec "], ["5829","316",30,"1 oz Vodka "], ["5829","106",0.9,"1 dash Bitters "], ["5829","51",0.9,"1 dash Salt "], ["6054","376",22.5,"3/4 oz Gin "], ["6054","231",22.5,"3/4 oz Apricot brandy "], ["6054","359",22.5,"3/4 oz Cointreau "], ["2437","265",14.75,"1/2 shot Kahlua "], ["2437","124",14.75,"1/2 shot Anisette "], ["2437","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["1609","174",30,"1 oz Blackberry brandy "], ["1609","170",30,"1 oz Anis "], ["1440","310",257,"1 cup Hot chocolate "], ["1440","114",29.5,"1 shot Butterscotch schnapps "], ["1440","480",3.7,"1 splash Irish cream (Bailey's) "], ["3676","316",150,"0.5 oz Vodka "], ["3676","124",150,"0.5 oz Anisette "], ["3676","445",150,"0,5 oz Orange juice "], ["5620","226",60,"6 cl Bacardi Limon "], ["5620","323",80,"8 cl Sprite "], ["5620","484",120,"12 cl Red Bull or Battery "], ["3122","290",200,"20 cl Schweppes Russchian "], ["3122","316",190,"19 cl Vodka "], ["502","335",30,"1 oz Spiced rum "], ["502","36",30,"1 oz Malibu rum "], ["502","304",30,"1 oz Rum (Bacardi) "], ["502","226",30,"1 oz Bacardi Limon "], ["502","372",60,"2 oz Cranberry juice "], ["502","445",60,"2 oz Orange juice "], ["502","261",60,"2 oz Pineapple juice "], ["502","82",5,"1 tsp Grenadine "], ["502","342",60,"2 oz Southern Comfort "], ["3070","376",45,"1 1/2 oz Gin "], ["3070","383",10,"2 tsp Sweet Vermouth "], ["3070","267",5,"1 tsp Black Sambuca "], ["504","316",29.5,"1 shot Vodka "], ["504","506",120,"4 oz White grape juice "], ["1891","316",75,"2 1/2 oz Finlandia Vodka "], ["1891","323",90,"3 oz Sprite "], ["1891","445",60,"2 oz Orange juice "], ["505","376",45,"1 1/2 oz Gin "], ["505","68",15,"1/2 oz Green Chartreuse "], ["505","207",15,"1/2 oz Yellow Chartreuse "], ["3832","122",15,"1/2 oz Jack Daniels "], ["3832","471",15,"1/2 oz Jim Beam "], ["3832","232",15,"1/2 oz Wild Turkey "], ["3832","53",15,"1/2 oz Seagram 7 "], ["4530","471",30,"1 oz Jim Beam "], ["4530","375",30,"1 oz Amaretto "], ["3678","316",45,"1 1/2 oz Vodka (Ketel One) "], ["3678","333",30,"1 oz white Creme de Cacao "], ["3678","167",15,"1/2 oz Frangelico "], ["3658","316",600,"20 oz Vodka (Absolut) "], ["3658","323",900,"30 oz Sprite "], ["3658","243",300,"10 oz Blueberry schnapps "], ["3658","270",150,"5 oz Bailey's irish cream "], ["3658","416",300,"10 oz Grape juice "], ["510","182",15,"1/2 oz Crown Royal "], ["510","122",15,"1/2 oz Jack Daniels "], ["510","232",15,"1/2 oz Wild Turkey "], ["510","85",15,"Float 1/2 oz Bacardi 151 proof rum "], ["510","211",90,"3 oz Sweet and sour "], ["510","372",3.7,"1 splash Cranberry juice "], ["511","312",10,"1 cl Absolut Citron "], ["511","169",10,"1 cl Lime vodka (Hammer) "], ["511","445",10,"1 cl Orange juice "], ["511","479",10,"1 cl Galliano "], ["512","368",45,"1 1/2 oz Sloe gin "], ["512","213",22.5,"3/4 oz Triple sec "], ["512","124",5,"1 tsp Anisette "], ["4222","449",29.5,"1 shot Apple schnapps (Apple Barrell) "], ["4222","322",29.5,"1 shot Peachtree schnapps "], ["4222","372",257,"1 cup Cranberry juice "], ["514","383",7.5,"1 1/2 tsp Sweet Vermouth "], ["514","88",7.5,"1 1/2 tsp Dry Vermouth "], ["514","376",45,"1 1/2 oz Gin "], ["514","213",2.5,"1/2 tsp Triple sec "], ["514","424",2.5,"1/2 tsp Lemon juice "], ["514","106",0.9,"1 dash Bitters "], ["4560","387",60,"2 oz Dark rum "], ["4560","487",15,"1/2 oz Dark Creme de Cacao "], ["515","317",15,"1/2 oz Jose Cuervo "], ["515","1",15,"1/2 oz Firewater "], ["517","316",29.5,"1 shot Vodka "], ["517","257",14.75,"1/2 shot Tropical fruit schnapps "], ["517","445",90,"3 oz Orange juice "], ["517","372",45,"1 1/2 oz Cranberry juice "], ["3441","349",45,"1 1/2 oz A�ejo rum "], ["3441","249",15,"1/2 oz Bourbon "], ["3441","487",15,"1/2 oz Dark Creme de Cacao "], ["2613","316",29.5,"1 shot Vodka "], ["2613","214",29.5,"1 shot Light rum "], ["2613","342",14.75,"1/2 shot Southern Comfort "], ["2613","387",3.7,"1 splash Dark rum "], ["2613","82",3.7,"1 splash Grenadine "], ["2613","261",60,"2 oz Pineapple juice "], ["2613","445",60,"2 oz Orange juice "], ["2613","404",30,"1 oz Grapefruit juice "], ["2700","316",40,"4 cl Vodka "], ["2700","266",20,"2 cl Sour mix "], ["2700","175",60,"6 cl Coca-Cola "], ["5855","316",30,"1 oz Vodka "], ["5855","468",30,"1 oz Coconut rum "], ["3340","179",30,"1 oz Cherry brandy "], ["3340","493",30,"1 oz Taboo "], ["3340","330",15,"1/2 oz Port "], ["3340","82",30,"1 oz Grenadine "], ["3340","261",90,"3 oz Pineapple juice "], ["5905","122",60,"2 oz Jack Daniels "], ["5905","174",60,"2 oz Blackberry brandy "], ["2504","36",15,"1/2 oz Malibu rum "], ["2504","333",30,"1 oz white Creme de Cacao "], ["2504","205",30,"1 oz White Creme de Menthe "], ["1065","471",10,"1/3 oz Jim Beam "], ["1065","122",10,"1/3 oz Jack Daniels "], ["1065","263",10,"1/3 oz Johnnie Walker "], ["1065","317",10,"1/3 oz Jose Cuervo "], ["1065","108",10,"1/3 oz J�germeister "], ["1065","85",10,"1/3 oz 151 proof rum "], ["2219","265",9.83,"1/3 shot Kahlua "], ["2219","479",9.83,"1/3 shot Galliano "], ["2219","270",9.83,"1/3 shot Bailey's irish cream "], ["520","108",29.5,"1 shot J�germeister "], ["520","82",29.5,"1 shot Grenadine "], ["520","445",150,"5 oz Orange juice "], ["4626","265",15,"1/2 oz Kahlua "], ["4626","316",7.5,"1/4 oz Vodka "], ["4626","29",7.5,"1/4 oz Tonic water "], ["4605","265",45,"1 1/2 oz Kahlua "], ["4605","424",30,"1 oz Lemon juice "], ["4605","477",7.5,"1 1/2 tsp Sugar "], ["5327","179",10,"1/3 oz Cherry brandy "], ["5327","231",10,"1/3 oz Apricot brandy "], ["5327","213",10,"1/3 oz Triple sec "], ["1824","301",100,"10 cl Red wine "], ["1824","175",100,"10 cl Coca-Cola "], ["3540","85",30,"1 oz 151 proof rum "], ["3540","297",15,"1/2 oz Blue Curacao "], ["3540","261",90,"3 oz Pineapple juice "], ["3540","445",60,"2 oz Orange juice "], ["3540","150",10,"1/3 oz Pimm's No. 1 "], ["1406","475",30,"1 oz Sambuca "], ["1406","270",30,"1 oz Bailey's irish cream "], ["521","462",30,"1 oz Tequila "], ["521","213",30,"1 oz Triple sec "], ["521","186",30,"1 oz Lime juice "], ["1015","316",30,"1 oz Vodka "], ["1015","213",30,"1 oz Triple sec "], ["1015","186",30,"1 oz Lime juice "], ["2174","425",30,"3 cl Pisang Ambon "], ["2174","270",30,"3 cl Bailey's irish cream "], ["2174","36",30,"3 cl Malibu rum "], ["2416","335",15,"1/2 oz Bacardi Spiced rum "], ["2416","319",15,"1/2 oz Bacardi Black rum "], ["2416","468",15,"1/2 oz Coconut rum (Parrot Bay) "], ["2416","412",15,"1/2 oz Creme de Noyaux "], ["2416","445",22.5,"3/4 oz Orange juice "], ["2416","372",22.5,"3/4 oz Cranberry juice "], ["4995","194",20,"2 cl Peach Vodka "], ["4995","323",30,"3 cl Sprite "], ["524","249",60,"2 oz Bourbon "], ["524","351",15,"1/2 oz Benedictine "], ["4313","122",15,"1/2 oz Jack Daniels "], ["4313","182",15,"1/2 oz Crown Royal "], ["4313","232",15,"1/2 oz Wild Turkey "], ["4313","471",15,"1/2 oz Jim Beam "], ["4313","175",3.7,"1 splash Coca-Cola "], ["5108","122",15,"1/2 oz Jack Daniels "], ["5108","342",15,"1/2 oz Southern Comfort "], ["5108","62",15,"1/2 oz Yukon Jack "], ["5108","471",15,"1/2 oz Jim Beam "], ["5108","266",60,"2 oz Sour mix "], ["5108","109",60,"2 oz Cola "], ["1537","450",60,"2 oz Rye whiskey (Crown Royal or Gibson's finest) "], ["1537","161",7.5,"1 1/2 tsp Iced tea mix "], ["1537","352",360,"12 oz cold Water "], ["4439","304",15,"1 1/2 cl Rum (Bacardi) "], ["4439","425",15,"1 1/2 cl Pisang Ambon "], ["4439","297",15,"1 1/2 cl Blue Curacao "], ["4439","227",15,"1 1/2 cl Banana liqueur "], ["1373","85",10,"1/3 oz Bacardi 151 proof rum "], ["1373","115",10,"1/3 oz Goldschlager "], ["1373","145",10,"1/3 oz Rumple Minze "], ["1515","271",30,"1 oz Key Largo schnapps "], ["1515","335",15,"1/2 oz Spiced rum (Captain Morgan's) "], ["1515","445",120,"4 oz Orange juice "], ["1515","261",120,"4 oz Pineapple juice "], ["1515","372",60,"2 oz Cranberry juice "], ["1515","85",15,"1/2 oz Bacardi 151 proof rum "], ["5624","223",22.5,"3/4 oz Licor 43 "], ["5624","316",3.7,"1 splash Vodka "], ["5624","200",7.5,"1/4 oz Rose's sweetened lime juice "], ["5624","259",15,"1/2 oz Milk or cream "], ["1806","223",30,"1 oz Licor 43 "], ["1806","142",15,"1/2 oz White rum (good quality) "], ["1806","211",30,"1 oz Sweet and sour "], ["1806","200",7.5,"1/4 oz Rose's sweetened lime juice (or Nellie & Joe's) "], ["1806","126",15,"1/2 oz Half-and-half "], ["5802","108",15,"1/2 oz J�germeister "], ["5802","122",15,"1/2 oz Jack Daniels "], ["5802","317",15,"1/2 oz Jose Cuervo "], ["5802","1",15,"1/2 oz Firewater "], ["6014","388",200,"20 cl Lemon-lime soda (7-up or Sprite) "], ["6014","82",30,"3 cl Grenadine syrup "], ["2112","462",90,"3 oz Tequila "], ["2112","85",90,"3 oz 151 proof rum "], ["2112","316",90,"3 oz Vodka "], ["2112","376",90,"3 oz Gin "], ["2112","375",60,"2 oz Amaretto "], ["1081","36",30,"1 oz Malibu rum "], ["1081","227",15,"1/2 oz Banana liqueur "], ["1081","237",15,"1/2 oz Raspberry liqueur "], ["1081","274",15,"1/2 oz Melon liqueur "], ["1081","297",15,"1/2 oz Blue Curacao "], ["1081","375",15,"1/2 oz Amaretto "], ["1081","213",15,"1/2 oz Triple sec "], ["1081","211",15,"1/2 oz Sweet and sour "], ["1081","445",15,"1/2 oz Orange juice "], ["1081","261",15,"1/2 oz Pineapple juice "], ["1081","372",15,"1/2 oz Cranberry juice "], ["3005","108",15,"1/2 oz J�germeister "], ["3005","340",15,"1/2 oz Barenjager "], ["1509","316",45,"1 1/2 oz Vodka "], ["1509","309",15,"1/2 oz Peach schnapps "], ["1509","375",15,"1/2 oz Amaretto "], ["1509","372",90,"3 oz Cranberry juice cocktail "], ["1752","475",40,"4 cl Sambuca "], ["1752","297",20,"2 cl Blue Curacao "], ["2406","475",30,"3 cl Sambuca "], ["2406","82",10,"1 cl Grenadine "], ["3988","270",15,"1/2 oz Bailey's irish cream "], ["3988","333",15,"1/2 oz Creme de Cacao "], ["3988","316",15,"1/2 oz Vodka "], ["3988","265",7.5,"1/4 oz Kahlua "], ["3761","179",22.5,"3/4 oz Cherry brandy "], ["3761","88",22.5,"3/4 oz Dry Vermouth "], ["3761","376",22.5,"3/4 oz Gin "], ["2367","471",10,"1/3 oz Jim Beam "], ["2367","17",10,"1/3 oz Mezcal "], ["2367","132",10,"1/3 oz Cinnamon schnapps "], ["2298","270",14.75,"1/2 shot Bailey's irish cream "], ["2298","108",14.75,"1/2 shot J�germeister "], ["2419","497",240,"8 oz Hawaiian Punch "], ["2419","462",29.5,"1 shot Tequila "], ["2419","304",29.5,"1 shot Rum "], ["3046","198",45,"1 1/2 oz Aftershock "], ["3046","32",45,"1 1/2 oz Cherry Kool-Aid "], ["1316","375",14.75,"1/2 shot Amaretto "], ["1316","342",14.75,"1/2 shot Southern Comfort "], ["1316","372",14.75,"1/2 shot Cranberry juice "], ["1316","82",3.7,"1 splash Grenadine "], ["1945","85",60,"2 oz light 151 proof rum "], ["1945","32",2.5,"1/2 tsp Tropical Kool-Aid mix "], ["3868","32",15,"1/2 oz Grape Kool-Aid "], ["3868","316",15,"1/2 oz Vodka or rum "], ["2444","316",30,"1 oz Vodka (Stolichnaya) "], ["2444","333",30,"1 oz Creme de Cacao "], ["2444","424",15,"1/2 oz Lemon juice "], ["2444","82",2.5,"1/2 tsp Grenadine "], ["4773","469",15,"1/2 oz Creme de Almond "], ["4773","276",15,"1/2 oz Root beer schnapps "], ["4773","126",7.5,"1/4 oz Half-and-half "], ["5694","323",60,"2 oz Sprite "], ["5694","445",60,"2 oz Orange juice "], ["5694","396",30,"1 oz Orange soda (Orangina) "], ["5694","424",0.9,"1 dash Lemon juice "], ["3256","146",29.5,"1 shot Midori melon liqueur "], ["3256","145",14.75,"1/2 shot Rumple Minze "], ["3256","115",14.75,"1/2 shot Goldschlager "], ["3256","85",29.5,"Layer 1 shot 151 proof rum (Bacardi) "], ["2823","304",45,"1 1/2 oz Rum (Bacardi) "], ["2823","34",90,"3 oz Maui "], ["2823","261",180,"6 oz Pineapple juice "], ["5659","376",60,"2 oz Gin "], ["5659","213",15,"1/2 oz Triple sec "], ["5659","261",15,"1/2 oz Pineapple juice "], ["5139","365",15,"1/2 oz Absolut Kurant "], ["5139","146",15,"1/2 oz Midori melon liqueur "], ["5139","309",15,"1/2 oz Peach schnapps "], ["5139","261",15,"1/2 oz Pineapple juice "], ["5139","211",15,"1/2 oz Sweet and sour "], ["4854","365",60,"2 oz Absolut Kurant "], ["4854","424",30,"1 oz Lemon juice "], ["4854","236",5,"1 tsp Powdered sugar "], ["4854","130",90,"3 oz Club soda "], ["532","378",45,"1 1/2 oz Scotch "], ["532","332",15,"1/2 oz Pernod "], ["532","261",90,"3 oz Pineapple juice "], ["3799","316",22.5,"3/4 oz Coffee Vodka (Stolichnya) "], ["3799","361",22.5,"3/4 oz Royale Chocolate liqueur (Marie Brizard) "], ["3799","126",22.5,"3/4 oz Half-and-half "], ["3799","357",7.5,"1/4 oz Sugar syrup "], ["5008","192",60,"2 oz Brandy "], ["5008","10",15,"1/2 oz Creme de Banane "], ["5008","445",5,"1 tsp Orange juice "], ["5008","424",15,"1/2 oz Lemon juice "], ["5997","376",45,"1 1/2 oz Gin "], ["5997","213",15,"1/2 oz Triple sec "], ["5997","383",15,"1/2 oz Sweet Vermouth "], ["5997","106",0.9,"1 dash Bitters "], ["6120","424",7.5,"1/4 oz Lemon juice "], ["6120","213",7.5,"1/4 oz Triple sec "], ["6120","445",30,"1 oz Orange juice "], ["6120","192",30,"1 oz Brandy "], ["536","464",15,"1/2 oz Peppermint schnapps "], ["536","309",15,"1/2 oz Peach schnapps "], ["536","316",15,"1/2 oz Vodka "], ["536","82",15,"1/2 oz Grenadine "], ["537","179",30,"1 oz Cherry brandy "], ["537","376",30,"1 oz Gin "], ["537","121",15,"1/2 oz Kirschwasser "], ["5663","192",45,"1 1/2 oz Brandy "], ["5663","205",15,"1/2 oz White Creme de Menthe "], ["5663","383",15,"1/2 oz Sweet Vermouth "], ["538","142",30,"1 oz White rum "], ["538","146",15,"1/2 oz Midori melon liqueur "], ["538","297",15,"1/2 oz Blue Curacao "], ["538","334",3.7,"1 splash Cherry syrup "], ["1207","376",20,"2 cl dry Gin (Gilbey's) "], ["1207","359",20,"2 cl Cointreau "], ["1207","88",10,"1 cl Dry Vermouth (Cinzano) "], ["1207","186",10,"1 cl Lime juice "], ["1207","509",10,"1 cl Monin bitter \"Sans Alcool\" "], ["2233","376",30,"1 oz Gin "], ["2233","359",15,"1/2 oz Cointreau "], ["2233","231",15,"1/2 oz Apricot brandy "], ["2233","355",60,"2 oz Passion fruit juice "], ["2233","261",60,"2 oz Pineapple juice "], ["5012","94",360,"12 oz Lager "], ["5012","186",60,"2 oz Lime juice "], ["5543","66",40,"4 cl Cachaca "], ["5543","55",40,"4 cl Cream of coconut "], ["5543","422",20,"2 cl Cream "], ["5543","291",100,"10 cl Cherry juice "], ["2303","387",45,"1 1/2 oz Dark rum "], ["2303","473",15,"1/2 oz Creme de Cassis "], ["2303","261",60,"2 oz Pineapple juice "], ["540","387",45,"1 1/2 oz Dark rum "], ["540","215",15,"1/2 oz Tia maria "], ["540","155",30,"1 oz Heavy cream "], ["6180","316",7.5,"1/4 oz Vodka (Absolut) "], ["6180","202",7.5,"1/4 oz Gold tequila (Cuervo) "], ["6180","304",7.5,"1/4 oz Rum (Cpt. Morgan) "], ["6180","213",7.5,"1/4 oz Triple sec "], ["6180","82",15,"1/2 oz Grenadine "], ["6180","445",128.5,"1/2 cup Orange juice "], ["6180","261",128.5,"1/2 cup Pineapple juice "], ["6007","471",50,"5 cl Jim Beam "], ["6007","205",20,"2 cl White Creme de Menthe "], ["6007","246",10,"1 cl Sirup of roses "], ["6007","213",0.9,"1 dash Triple sec "], ["4126","342",30,"1 oz Southern Comfort "], ["4126","375",15,"1/2 oz Amaretto "], ["4126","368",15,"1/2 oz Sloe gin "], ["4126","316",15,"1/2 oz Vodka "], ["4126","213",15,"1/2 oz Triple sec "], ["4126","445",210,"7 oz Orange juice "], ["2025","265",30,"1 oz Kahlua "], ["2025","270",30,"1 oz Bailey's irish cream "], ["2025","167",15,"1/2 oz Frangelico "], ["2025","316",45,"1 1/2 oz Vodka (Absolut) "], ["541","376",22.5,"3/4 oz Gin "], ["541","416",22.5,"3/4 oz Grape juice "], ["541","288",22.5,"3/4 oz Swedish Punsch "], ["1066","163",128.5,"1/2 cup plain Yoghurt "], ["1066","352",321.25,"1 1/4 cup cold Water "], ["1066","190",2.5,"1/2 tsp ground roasted Cumin seed "], ["1066","51",1.25,"1/4 tsp Salt "], ["1066","30",1.25,"1/4 tsp dried Mint "], ["1068","387",45,"1 1/2 oz Dark rum "], ["1068","383",45,"1 1/2 oz Sweet Vermouth "], ["1068","88",45,"1 1/2 oz Dry Vermouth "], ["1068","106",0.9,"1 dash Bitters "], ["3923","303",240,"8 oz White wine "], ["3923","323",90,"3 oz Sprite "], ["3923","237",60,"2 oz Raspberry liqueur "], ["4724","56",45,"1 1/2 oz Blended whiskey "], ["4724","88",22.5,"3/4 oz Dry Vermouth "], ["4724","170",1.25,"1/4 tsp Anis "], ["4724","176",1.25,"1/4 tsp Maraschino liqueur "], ["4724","106",0.9,"1 dash Bitters "], ["2906","265",60,"2 oz Kahlua "], ["2906","316",60,"2 oz Vodka "], ["2906","377",180,"6 oz Chocolate milk ( Yoo-Hoo works best) "], ["6110","108",15,"1/2 oz J�germeister "], ["6110","444",15,"1/2 oz Hot Damn "], ["6110","265",15,"1/2 oz Kahlua "], ["6110","422",3.7,"1 splash Cream "], ["4485","316",30,"1 oz Vodka "], ["4485","265",60,"2 oz Kahlua "], ["4485","375",30,"1 oz Amaretto "], ["4485","377",180,"6 oz Chocolate milk "], ["543","376",37.5,"1 1/4 oz Gin "], ["543","315",15,"1/2 oz Grand Marnier "], ["543","383",15,"1/2 oz Sweet Vermouth "], ["543","424",1.25,"1/4 tsp Lemon juice "], ["545","376",60,"2 oz Gin "], ["545","383",15,"1/2 oz Sweet Vermouth "], ["545","315",15,"1/2 oz Grand Marnier "], ["545","424",7.5,"1/4 oz Lemon juice "], ["2053","376",45,"1 1/2 oz Gin "], ["2053","292",5,"1 tsp Raspberry syrup "], ["2053","424",5,"1 tsp Lemon juice "], ["2053","176",1.25,"1/4 tsp Maraschino liqueur "], ["1785","54",30,"1 oz Chambord raspberry liqueur "], ["1785","226",30,"1 oz Bacardi Limon "], ["1785","295",90,"3 oz Champagne "], ["5306","462",30,"1 oz Tequila "], ["5306","316",30,"1 oz Vodka "], ["5306","376",30,"1 oz Gin "], ["5306","304",30,"1 oz Rum "], ["1016","445",20,"2 cl Orange juice "], ["1016","424",60,"6 cl Lemon juice "], ["2697","356",15,"1/2 oz Limoncello "], ["2697","378",30,"1 oz Scotch "], ["2697","381",15,"1/2 oz Drambuie "], ["3191","356",15,"1/2 oz Limoncello "], ["3191","253",15,"1/2 oz Grappa "], ["3850","115",14.75,"1/2 shot Goldschlager "], ["3850","480",14.75,"1/2 shot Irish cream "], ["5043","339",360,"12 oz Zima "], ["5043","468",45,"1 1/2 oz Coconut rum (Parrot bay/Malibu) "], ["4711","108",15,"1/2 oz J�germeister "], ["4711","422",15,"1/2 oz Cream "], ["4853","265",9.83,"1/3 shot Kahlua "], ["4853","259",9.83,"1/3 shot Milk "], ["4853","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["4630","316",30,"1 oz Vodka "], ["4630","424",7.5,"1/4 oz Lemon juice "], ["4630","315",0.9,"1 dash Grand Marnier "], ["4630","297",0.9,"1 dash Blue Curacao "], ["6046","146",30,"1 oz Midori melon liqueur "], ["6046","214",30,"1 oz Light rum "], ["6046","261",90,"3 oz Pineapple juice "], ["2133","214",45,"1 1/2 oz Light rum (Bacardi) "], ["2133","387",45,"1 1/2 oz Dark rum (Myers) "], ["2133","427",30,"1 oz crushed Ice "], ["5416","265",10,"1/3 oz Kahlua "], ["5416","270",10,"1/3 oz Bailey's irish cream "], ["5416","85",10,"1/3 oz 151 proof rum "], ["1994","316",22.5,"3/4 oz Vodka "], ["1994","304",15,"1/2 oz Rum "], ["1994","186",15,"1/2 oz Lime juice "], ["1994","82",7.5,"1/4 oz Grenadine "], ["3853","316",60,"2 oz Vodka "], ["3853","274",30,"1 oz Melon liqueur "], ["3853","404",3.7,"1 splash Grapefruit juice "], ["4479","392",330,"33 cl Beer "], ["4479","186",50,"5 cl Lime juice "], ["4479","341",50,"5 cl Hoopers Hooch "], ["5567","56",30,"1 oz Blended whiskey "], ["5567","261",30,"1 oz Pineapple juice "], ["5567","477",2.5,"1/2 tsp Sugar "], ["5567","170",1.25,"1/4 tsp Anis "], ["5567","424",1.25,"1/4 tsp Lemon juice "], ["2397","475",22.5,"3/4 oz Sambuca, Chilled "], ["2397","108",22.5,"3/4 oz J�germeister, Chilled "], ["1351","316",90,"3 oz Vodka "], ["1351","309",90,"3 oz Peach schnapps "], ["1351","109",180,"6 oz Cola "], ["1514","315",7.38,"1/4 shot Grand Marnier "], ["1514","342",7.38,"1/4 shot Southern Comfort "], ["1514","316",7.38,"1/4 shot Vodka (Absolut) "], ["1514","375",7.38,"1/4 shot Amaretto "], ["1514","261",3.7,"1 splash Pineapple juice "], ["2803","462",15,"1/2 oz Silver Tequila "], ["2803","316",15,"1/2 oz Vodka "], ["2803","376",15,"1/2 oz Gin "], ["2803","214",15,"1/2 oz Light rum "], ["2803","71",15,"1/2 oz Everclear "], ["3551","342",14.75,"1/2 shot Southern Comfort "], ["3551","62",14.75,"1/2 shot Yukon Jack "], ["3551","122",14.75,"1/2 shot Jack Daniels "], ["3551","375",14.75,"1/2 shot Amaretto "], ["3551","445",128.5,"1/2 cup Orange juice "], ["3551","65",128.5,"1/2 cup Guava juice "], ["6004","316",7.5,"1/4 oz Vodka "], ["6004","375",7.5,"1/4 oz Amaretto "], ["6004","342",7.5,"1/4 oz Southern Comfort "], ["6004","359",7.5,"1/4 oz Cointreau "], ["6004","261",22.5,"3/4 oz Pineapple juice "], ["6004","22",3.7,"1 splash 7-Up "], ["5987","119",15,"1/2 oz Absolut Vodka "], ["5987","146",60,"2 oz Midori melon liqueur "], ["5987","352",30,"1 oz Water "], ["5987","338",60,"2 oz Mello Yello "], ["1946","145",150,"1.5 oz Rumple Minze "], ["1946","108",150,"1.5 oz J�germeister "], ["5172","490",45,"1 1/2 oz Citrus vodka "], ["5172","32",195,"6 1/2 oz Black Cherry Kool-Aid "], ["5237","333",45,"1 1/2 oz Creme de Cacao "], ["5237","167",22.5,"3/4 oz Frangelico "], ["5237","61",0.9,"1 dash Vanilla liqueur "], ["5034","487",30,"1 oz Dark Creme de Cacao "], ["5034","480",15,"1/2 oz Irish cream "], ["5034","167",15,"1/2 oz Frangelico "], ["5034","41",15,"1/2 oz Light cream "], ["5597","205",45,"1 1/2 oz White Creme de Menthe "], ["5597","387",45,"1 1/2 oz Dark rum "], ["3959","214",45,"1 1/2 oz Light rum "], ["3959","383",30,"1 oz Sweet Vermouth "], ["1676","146",10,"1/3 oz Midori melon liqueur "], ["1676","270",10,"1/3 oz Bailey's irish cream "], ["1676","108",10,"1/3 oz J�germeister "], ["550","316",150,"1.5 oz Vodka "], ["550","304",150,"1.5 oz Rum "], ["550","342",150,"1.5 oz Southern Comfort "], ["550","375",150,"1.5 oz Amaretto "], ["550","469",150,"1.5 oz Creme de Almond "], ["550","237",150,"1.5 oz Raspberry liqueur "], ["550","445",90,"3 oz Orange juice "], ["550","261",90,"3 oz Pineapple juice "], ["550","266",30,"1 oz Sour mix (optional) "], ["4343","122",20,"2/3 oz Jack Daniels "], ["4343","315",10,"1/3 oz Grand Marnier "], ["551","376",45,"1 1/2 oz Gin "], ["551","245",7.5,"1/4 oz Absinthe (Deva) "], ["553","383",22.5,"3/4 oz Sweet Vermouth "], ["553","376",45,"1 1/2 oz Gin "], ["2856","213",22.5,"3/4 oz Triple sec "], ["2856","119",22.5,"3/4 oz Absolut Vodka "], ["2856","202",22.5,"3/4 oz Gold tequila "], ["2856","85",22.5,"3/4 oz Bacardi 151 proof rum "], ["2856","376",22.5,"3/4 oz Gin (Tanqueray) "], ["2856","211",120,"4 oz Sweet and sour "], ["2856","476",60,"2 oz Pepsi Cola "], ["556","387",45,"1 1/2 oz Dark rum "], ["556","215",15,"1/2 oz Tia maria "], ["5709","214",45,"1 1/2 oz Light rum "], ["5709","192",15,"1/2 oz Brandy "], ["5709","179",15,"1/2 oz Cherry brandy "], ["5709","186",5,"1 tsp Lime juice "], ["558","342",90,"3 oz Southern Comfort "], ["558","316",30,"1 oz Vodka "], ["558","215",30,"1 oz Tia maria "], ["5557","214",60,"2 oz Light rum "], ["5557","445",75,"2 1/2 oz Orange juice "], ["5557","461",60,"2 oz Apple juice "], ["5557","380",195,"6 1/2 oz Squirt (or any other citrus soda) "], ["1372","435",30,"1 oz Orange vodka (Stoli) "], ["1372","54",15,"1/2 oz Chambord raspberry liqueur "], ["1372","372",15,"1/2 oz Cranberry juice "], ["3363","316",29.5,"1 shot Vodka "], ["3363","342",29.5,"1 shot Southern Comfort "], ["3363","291",29.5,"1 shot Cherry juice or 1 tblsp of Grenadine "], ["3363","261",420,"14 oz Pineapple juice "], ["2975","316",22.5,"3/4 oz Vodka (Absolut) "], ["2975","480",22.5,"3/4 oz Irish cream (Bailey's) "], ["1020","417",10,"1 cl Coconut liqueur (or coconut concentrate) "], ["1020","424",20,"2 cl Lemon juice "], ["1020","261",50,"5 cl Pineapple juice "], ["1020","404",50,"5 cl Grapefruit juice "], ["1020","445",50,"5 cl Orange juice "], ["1020","357",150,"15 cl Sugar syrup "], ["4823","376",60,"2 oz Gin "], ["4823","166",60,"2 oz Orange Curacao "], ["4823","372",120,"4 oz Cranberry juice "], ["3112","316",15,"1/2 oz Vodka (Skyy) "], ["3112","375",15,"1/2 oz Amaretto "], ["3112","213",15,"1/2 oz Triple sec "], ["3112","85",15,"1/2 oz 151 proof rum (Bacardi) "], ["3112","122",15,"1/2 oz Jack Daniels "], ["3112","342",15,"1/2 oz Southern Comfort "], ["3112","368",15,"1/2 oz Sloe gin "], ["3112","372",3.7,"1 splash Cranberry juice "], ["3112","186",3.7,"1 splash Lime juice "], ["3112","445",3.7,"1 splash Orange juice "], ["3968","354",15,"1/2 oz Metaxa "], ["3968","479",15,"1/2 oz Galliano "], ["559","142",20,"2 cl White rum (Bacardi) "], ["559","36",20,"2 cl Malibu rum "], ["559","333",29.5,"1 shot Creme de Cacao "], ["559","308",29.5,"1 shot Almond syrup "], ["559","397",15,"1 1/2 cl Coconut cream "], ["559","261",60,"6 cl Pineapple juice "], ["2074","365",40,"4 cl Absolut Kurant "], ["2074","324",50,"5 cl Apple cider "], ["4239","392",75,"2 1/2 oz Beer "], ["4239","445",75,"2 1/2 oz Orange juice "], ["4239","375",29.5,"Drop in 1 shot Amaretto "], ["1911","448",30,"1 oz Apple brandy "], ["1911","192",30,"1 oz Brandy "], ["1911","231",0.9,"1 dash Apricot brandy "], ["1927","304",10,"1 cl Rum "], ["1927","131",10,"2 tsp Tabasco sauce "], ["1927","462",20,"2 cl Tequila "], ["2165","146",15,"1/2 oz Midori melon liqueur "], ["2165","36",15,"1/2 oz Malibu rum "], ["2165","312",15,"1/2 oz Absolut Citron "], ["2165","309",15,"1/2 oz Peach schnapps "], ["2165","261",3.7,"1 splash Pineapple juice "], ["2165","211",3.7,"1 splash Sweet and sour "], ["2165","22",3.7,"1 splash 7-Up "], ["4951","375",45,"1 1/2 oz Amaretto "], ["4951","396",90,"3 oz Orange soda "], ["4951","211",90,"3 oz Sweet and sour "], ["1872","342",40,"4 cl Southern Comfort "], ["1872","424",20,"2 cl Lemon juice "], ["1872","109",60,"6 cl Cola "], ["5116","316",80,"8 cl Vodka "], ["5116","445",100,"10 cl Orange juice "], ["5116","290",120,"12 cl Schweppes Russchian "], ["4058","378",45,"1 1/2 oz Scotch "], ["4058","105",15,"1/2 oz cream Sherry "], ["4058","445",15,"1/2 oz Orange juice "], ["4058","424",15,"1/2 oz Lemon juice "], ["4058","82",5,"1 tsp Grenadine "], ["3523","167",15,"1/2 oz Frangelico "], ["3523","333",15,"1/2 oz Creme de Cacao "], ["561","378",45,"1 1/2 oz Scotch "], ["561","105",15,"1/2 oz dry Sherry "], ["561","445",15,"1/2 oz Orange juice "], ["561","424",15,"1/2 oz Lemon juice "], ["561","82",5,"1 tsp Grenadine "], ["1498","445",30,"1 oz Orange juice "], ["1498","316",15,"1/2 oz Vodka "], ["4697","316",30,"1 oz Vodka (Skyy) "], ["4697","309",30,"1 oz Peach schnapps "], ["4697","2",30,"1 oz Lemonade "], ["4697","175",30,"1 oz Coca-Cola "], ["564","157",20,"2 cl Passoa "], ["564","376",10,"1 cl Gin "], ["564","417",10,"1 cl Coconut liqueur "], ["564","261",120,"12 cl Pineapple juice "], ["4577","375",30,"1 oz Amaretto "], ["4577","342",30,"1 oz Southern Comfort "], ["4577","266",60,"2 oz Sour mix "], ["4993","342",40,"4 cl Southern Comfort "], ["4993","316",40,"4 cl Vodka (Absolut) "], ["4993","308",30,"3 cl Almond syrup "], ["4993","200",30,"3 cl Rose's sweetened lime juice "], ["4993","424",20,"2 cl fresh Lemon juice "], ["567","376",22.5,"3/4 oz Gin "], ["567","214",22.5,"3/4 oz Light rum "], ["567","359",22.5,"3/4 oz Cointreau "], ["567","424",22.5,"3/4 oz Lemon juice "], ["568","376",45,"1 1/2 oz Gin "], ["568","213",15,"1/2 oz Triple sec "], ["568","192",5,"1 tsp Brandy "], ["568","424",30,"1 oz Lemon juice "], ["2237","376",45,"1 1/2 oz Gin "], ["2237","213",15,"1/2 oz Triple sec "], ["2237","424",30,"1 oz Lemon juice "], ["1315","36",45,"1 1/2 oz Malibu rum "], ["1315","372",60,"2 oz Cranberry juice "], ["1315","261",60,"2 oz Pineapple juice "], ["2684","36",30,"1 oz Malibu rum "], ["2684","214",30,"1 oz Light rum "], ["2684","22",60,"2 oz 7-Up "], ["2684","261",150,"5 oz Pineapple juice "], ["1282","36",15,"1/2 oz Malibu rum "], ["1282","333",15,"1/2 oz white Creme de Cacao "], ["1282","323",60,"2 oz Sprite "], ["1282","259",30,"1 oz Milk "], ["1282","419",10,"1/3 oz Coconut syrup "], ["1282","213",7.5,"1/4 oz Triple sec "], ["3482","36",30,"1 oz Malibu rum "], ["3482","297",30,"1 oz Blue Curacao "], ["3482","261",3.7,"1 splash Pineapple juice "], ["3482","372",3.7,"1 splash Cranberry juice "], ["4261","36",30,"1 oz Malibu rum "], ["4261","316",30,"1 oz Vodka "], ["4261","445",90,"3 oz Orange juice "], ["571","214",45,"1 1/2 oz Light rum "], ["571","315",15,"1/2 oz Grand Marnier "], ["571","445",60,"2 oz Orange juice "], ["5228","316",29.5,"1 shot Vodka "], ["5228","95",0.9,"1 dash Soy sauce "], ["5609","78",45,"1 1/2 oz Absolut Mandrin "], ["5609","372",60,"2 oz Cranberry juice "], ["5609","294",15,"1/2 oz Lime juice cordial "], ["5685","378",45,"1 1/2 oz Scotch "], ["5685","315",30,"1 oz Grand Marnier "], ["5685","424",30,"1 oz Lemon juice "], ["5685","82",5,"1 tsp Grenadine "], ["574","214",30,"1 oz Light rum "], ["574","387",30,"1 oz Dark rum "], ["574","124",5,"1 tsp Anisette "], ["574","424",15,"1/2 oz Lemon juice "], ["574","82",2.5,"1/2 tsp Grenadine "], ["574","175",30,"1 oz Coca-Cola "], ["6066","375",45,"1 1/2 oz Amaretto "], ["6066","213",15,"1/2 oz Triple sec "], ["6066","266",30,"1 oz Sour mix "], ["6066","445",30,"1 oz Orange juice "], ["6066","261",30,"1 oz Pineapple juice "], ["6066","82",7.5,"1/4 oz Grenadine "], ["6066","22",7.5,"1/4 oz 7-Up "], ["3672","304",30,"1 oz Rum "], ["3672","184",45,"1 1/2 oz Mango nectar "], ["3672","205",10,"2 tsp White Creme de Menthe "], ["3672","427",90,"3 oz crushed Ice "], ["575","480",30,"1 oz Irish cream "], ["575","265",30,"1 oz Kahlua "], ["575","319",15,"1/2 oz Bacardi Black rum "], ["575","387",15,"1/2 oz Myer's Dark rum "], ["575","482",330,"11 oz Coffee "], ["3949","383",90,"3 oz Sweet Vermouth "], ["3949","249",90,"3 oz Bourbon "], ["4674","202",37.5,"1 1/4 oz Gold tequila (Cuervo 1800) "], ["4674","315",22.5,"3/4 oz Grand Marnier "], ["4674","359",22.5,"3/4 oz Cointreau "], ["4674","211",37.5,"1 1/4 oz Sweet and sour "], ["580","349",60,"2 oz A�ejo rum "], ["580","186",10,"2 tsp Lime juice "], ["580","82",5,"1 tsp Grenadine "], ["580","41",15,"1/2 oz Light cream "], ["1364","316",10,"1 cl Vodka "], ["1364","342",20,"2 cl Southern Comfort "], ["1364","385",10,"1 cl Safari "], ["1364","359",50,"0.5 cl Cointreau "], ["5888","146",30,"1 oz Midori melon liqueur "], ["5888","376",60,"2 oz Gin "], ["5076","376",90,"2 - 3 oz Gin "], ["5076","186",45,"1 - 1 1/2 oz Lime juice "], ["5076","408",0.9,"1 dash Vermouth "], ["3660","270",90,"3 oz Bailey's irish cream "], ["3660","342",30,"1 oz Southern Comfort "], ["3660","114",30,"1 oz Butterscotch schnapps "], ["1473","435",52.5,"1 3/4 oz Orange vodka (Stoli) "], ["1473","359",52.5,"1 3/4 oz Cointreau "], ["588","28",45,"1 1/2 oz Dubonnet Rouge "], ["588","88",22.5,"3/4 oz Dry Vermouth "], ["5975","462",60,"2 oz Tequila "], ["5975","327",15,"1/2 oz Campari "], ["5975","83",120,"4 oz Ginger ale "], ["2012","304",37.5,"1 1/4 oz Rum (Captain Morgan's) "], ["2012","309",22.5,"3/4 oz Peach schnapps "], ["2012","404",60,"2 oz Grapefruit juice "], ["2012","372",60,"2 oz Cranberry juice "], ["5140","376",45,"1 1/2 oz Gin "], ["5140","88",30,"1 oz Dry Vermouth "], ["5140","333",0.9,"1 dash white Creme de Cacao "], ["592","349",30,"1 oz A�ejo rum "], ["592","192",15,"1/2 oz Brandy "], ["592","423",15,"1/2 oz Applejack "], ["592","124",5,"1 tsp Anisette "], ["3780","368",45,"1 1/2 oz Sloe gin "], ["3780","213",22.5,"3/4 oz Triple sec "], ["3780","433",0.9,"1 dash Orange bitters "], ["1495","263",30,"3 cl Johnnie Walker "], ["1495","327",20,"2 cl Campari "], ["1495","445",10,"1 cl Orange juice "], ["5772","146",30,"1 oz Midori melon liqueur "], ["5772","213",30,"1 oz Triple sec "], ["5772","119",30,"1 oz Absolut Vodka "], ["5772","186",30,"1 oz Lime juice "], ["5297","378",15,"1/2 oz Scotch "], ["5297","480",7.5,"1/4 oz Irish cream "], ["5297","114",7.5,"1/4 oz Butterscotch schnapps "], ["1144","445",257,"1 cup Orange juice "], ["1144","316",30,"1 oz Vodka (Skyy) "], ["1144","146",30,"1 oz Midori melon liqueur "], ["1144","297",30,"1 oz Blue Curacao "], ["2604","146",30,"1 oz Midori melon liqueur "], ["2604","153",30,"1 oz Watermelon liqueur "], ["2604","227",15,"1/2 oz Banana liqueur (optional) "], ["2604","468",30,"1 oz Coconut rum "], ["2604","199",90,"3 oz Mountain Dew "], ["6143","122",50,"5 cl Jack Daniels "], ["6143","83",150,"15 cl Ginger ale "], ["6143","445",50,"5 cl Orange juice "], ["596","462",60,"2 oz Tequila (Juarez) "], ["596","266",60,"2 oz Sour mix "], ["596","274",60,"2 oz Melon liqueur "], ["596","186",30,"1 oz Lime juice "], ["3746","274",7.5,"1/4 oz Melon liqueur "], ["3746","71",7.5,"1/4 oz Everclear "], ["3746","211",30,"1 oz Sweet and sour "], ["5653","316",30,"1 oz Vodka "], ["5653","274",15,"1/2 oz Melon liqueur "], ["5666","316",30,"1 oz Vodka "], ["5666","146",30,"1 oz Midori melon liqueur "], ["5666","424",0.9,"1 dash Lemon juice "], ["5666","29",30,"1 oz Tonic water or club soda "], ["3751","146",30,"1 oz Midori melon liqueur "], ["3751","36",30,"1 oz Malibu rum "], ["3751","261",30,"1 oz Pineapple juice "], ["3751","445",90,"3 oz Orange juice "], ["2171","387",30,"1 oz Dark rum "], ["2171","213",30,"1 oz Triple sec "], ["2171","41",30,"1 oz Light cream "], ["4136","479",20,"2 cl Galliano "], ["4136","157",20,"2 cl Passoa "], ["4136","372",20,"2 cl Cranberry juice "], ["598","316",150,"5 oz Vodka (Vox) "], ["598","297",60,"2 oz Blue Curacao (Dekyper) "], ["598","272",30,"1 oz Razzmatazz "], ["598","463",15,"1/2 oz Cranberry vodka (Finlandia) "], ["601","383",37.5,"1 1/4 oz Sweet Vermouth "], ["601","192",37.5,"1 1/4 oz Brandy "], ["601","357",2.5,"1/2 tsp Sugar syrup "], ["601","106",0.9,"1 dash Bitters "], ["600","462",15,"1/2 oz Tequila "], ["600","247",15,"1/2 oz Cherry liqueur "], ["5651","462",14.75,"1/2 shot Tequila "], ["5651","424",14.75,"1/2 shot Lemon juice "], ["1145","82",30,"1 oz Grenadine "], ["1145","15",30,"1 oz Green Creme de Menthe "], ["1145","462",30,"1 oz Tequila "], ["2815","492",480,"16 oz Corona "], ["2815","122",29.5,"1 shot Jack Daniels "], ["5371","372",90,"3 oz Cranberry juice "], ["5371","445",15,"1/2 oz Orange juice "], ["5371","202",30,"1 oz Gold tequila "], ["5371","186",0.9,"1 dash Lime juice "], ["6064","202",22.5,"3/4 oz Gold tequila (Jose Cuervo) "], ["6064","145",22.5,"3/4 oz Rumple Minze "], ["4746","202",15,"1/2 oz Gold tequila "], ["4746","322",15,"1/2 oz Peachtree schnapps "], ["4746","200",3.7,"1 splash Rose's sweetened lime juice "], ["5791","122",20,"2/3 oz Jack Daniels "], ["5791","471",20,"2/3 oz Jim Beam "], ["5791","317",20,"2/3 oz Jose Cuervo "], ["3698","316",10,"1 cl Vodka (Finlandia) "], ["3698","462",20,"2 cl white Tequila (Jose Cuervo) "], ["3698","157",10,"1 cl Passoa "], ["3002","462",20,"2/3 oz Tequila "], ["3002","165",10,"1/3 oz Strawberry schnapps "], ["3002","259",45,"1 1/2 oz Milk "], ["3002","82",15,"1/2 oz Grenadine "], ["5680","462",60,"2 oz Tequila "], ["5680","420",90,"3 oz cherry Cider "], ["602","88",22.5,"3/4 oz Dry Vermouth "], ["602","378",22.5,"3/4 oz Scotch "], ["602","404",22.5,"3/4 oz Grapefruit juice "], ["3719","316",30,"1 oz Vodka "], ["3719","304",30,"1 oz Rum "], ["3719","376",30,"1 oz Gin "], ["3719","213",30,"1 oz Triple sec "], ["3719","388",30,"1 oz Lemon-lime soda "], ["3719","445",60,"2 oz Orange juice "], ["3719","309",15,"1/2 oz Peach schnapps "], ["1093","249",60,"2 oz Bourbon "], ["1093","387",30,"1 oz Dark rum "], ["1093","155",15,"1/2 oz Heavy cream "], ["2143","375",45,"1 1/2 oz Amaretto "], ["2143","108",15,"1/2 oz J�germeister "], ["5781","270",30,"1 oz Bailey's irish cream "], ["5781","205",22.5,"3/4 oz White Creme de Menthe "], ["5781","422",22.5,"3/4 oz double Cream "], ["2562","146",60,"2 oz Midori melon liqueur "], ["2562","312",15,"1/2 oz Absolut Citron "], ["2562","211",120,"4 oz Sweet and sour "], ["2562","261",3.7,"1 splash Pineapple juice (maybe 1/2 oz) "], ["5439","146",30,"1 oz Midori melon liqueur "], ["5439","211",10,"1/3 oz Sweet and sour "], ["5439","295",120,"4 oz Champagne "], ["1646","146",30,"1 oz Midori melon liqueur "], ["1646","211",60,"2 oz Sweet and sour "], ["5824","192",45,"1 1/2 oz Brandy "], ["5824","213",15,"1/2 oz Triple sec "], ["5824","412",5,"1 tsp Creme de Noyaux "], ["5824","82",5,"1 tsp Grenadine "], ["5824","106",0.9,"1 dash Bitters "], ["605","192",30,"1 oz Brandy "], ["605","213",0.9,"1 dash Triple sec "], ["605","82",0.9,"1 dash Grenadine "], ["605","412",0.9,"1 dash Creme de Noyaux "], ["605","106",0.9,"1 dash Bitters "], ["1434","36",15,"1/2 oz Malibu rum "], ["1434","54",15,"1/2 oz Chambord raspberry liqueur "], ["1434","213",15,"1/2 oz Triple sec (op. Triple Cognac) "], ["1434","261",75,"2 1/2 oz Pineapple juice "], ["1434","424",3.7,"1 splash sweetened Lemon juice "], ["5318","215",20,"2 cl Tia maria "], ["5318","108",20,"2 cl J�germeister "], ["5318","332",20,"2 cl Pernod "], ["2832","295",150,"4-5 oz Champagne "], ["2832","54",89,"1-2 jigger Chambord raspberry liqueur to taste "], ["5169","223",30,"1 oz Licor 43 "], ["5169","259",120,"4 oz Milk "], ["4618","391",60,"2 oz Vanilla vodka "], ["4618","361",60,"2 oz Chocolate liqueur "], ["4618","480",30,"1 oz Irish cream "], ["3983","376",30,"3 cl dry Gin (Beefeater) "], ["3983","375",30,"3 cl Amaretto di saronno (ILLVA Saronno S.p.a.) "], ["3983","269",10,"1 cl Strawberry liqueur (Greizer) "], ["3983","91",50,"1.5 cl Strawberry syrup (Monin) "], ["3983","261",30,"Fill up 3 cl fresh Pineapple juice "], ["6026","270",45,"1 1/2 oz Bailey's irish cream "], ["6026","276",30,"1 oz Root beer schnapps "], ["6026","115",15,"1/2 oz Goldschlager "], ["3473","270",14.75,"1/2 shot Bailey's irish cream "], ["3473","265",14.75,"1/2 shot Kahlua "], ["3473","167",14.75,"1/2 shot Frangelico "], ["3473","482",180,"6 oz Coffee "], ["4029","198",29.5,"1 shot Aftershock "], ["4029","108",29.5,"1 shot J�germeister "], ["4029","115",29.5,"1 shot Goldschlager "], ["1262","316",60,"2 oz Vodka "], ["1262","265",60,"2 oz Kahlua "], ["1262","29",60,"2 oz Tonic water "], ["6147","67",7.5,"1/4 oz Ricard "], ["6147","297",7.5,"1/4 oz Blue Curacao "], ["6147","259",15,"1/2 oz Milk "], ["609","15",15,"1/2 oz Green Creme de Menthe "], ["609","265",7.5,"1/4 oz Kahlua "], ["609","270",7.5,"1/4 oz Bailey's irish cream "], ["611","376",30,"1 oz mint flavored Gin "], ["611","196",30,"1 oz White port "], ["611","88",7.5,"1 1/2 tsp Dry Vermouth "], ["4987","99",60,"2 oz Melon vodka "], ["4987","261",60,"2 oz Pineapple juice "], ["4987","424",30,"1 oz Lemon juice "], ["4987","19",30,"1 oz Strawberry juice "], ["3651","36",30,"1 oz Malibu rum "], ["3651","274",30,"1 oz Melon liqueur "], ["3651","372",60,"2 oz Cranberry juice "], ["3651","261",60,"2 oz Pineapple juice "], ["614","387",45,"1 1/2 oz Dark rum "], ["614","315",15,"1/2 oz Grand Marnier "], ["614","487",10,"2 tsp Dark Creme de Cacao "], ["2634","214",45,"1 1/2 oz Light rum "], ["2634","192",15,"1/2 oz Brandy "], ["2634","445",30,"1 oz Orange juice "], ["2634","424",15,"1/2 oz Lemon juice "], ["2634","186",15,"1/2 oz Lime juice "], ["2634","82",5,"1 tsp Grenadine "], ["3915","316",30,"1 oz Vodka "], ["3915","249",60,"2 oz Bourbon "], ["3915","388",90,"3 oz Lemon-lime soda "], ["3915","445",0.9,"1 dash Orange juice "], ["3074","316",120,"4 oz Vodka "], ["3074","331",240,"8 oz Surge "], ["5894","378",45,"1 1/2 oz Scotch "], ["5894","213",15,"1/2 oz Triple sec "], ["5894","445",30,"1 oz Orange juice "], ["4240","215",60,"2 oz Tia maria "], ["4240","487",60,"2 oz Dark Creme de Cacao "], ["4240","270",60,"2 oz Bailey's irish cream "], ["4154","316",75,"2 1/2 oz Vodka (Stoli) "], ["4154","240",15,"1/2 oz Coffee liqueur (Kahlua) "], ["4154","333",30,"1 oz Creme de Cacao "], ["617","431",22.5,"3/4 oz Coffee brandy "], ["617","205",22.5,"3/4 oz White Creme de Menthe "], ["617","333",22.5,"3/4 oz white Creme de Cacao "], ["1656","182",22.5,"3/4 oz Crown Royal "], ["1656","270",22.5,"3/4 oz Bailey's irish cream "], ["1656","265",22.5,"3/4 oz Kahlua "], ["4920","316",45,"1 1/2 oz Vodka "], ["4920","85",3.7,"Float 1 splash 151 proof rum "], ["3247","270",22.13,"3/4 shot Bailey's irish cream "], ["3247","114",7.38,"1/4 shot Butterscotch schnapps "], ["619","376",60,"2 oz Gin "], ["619","351",5,"1 tsp Benedictine "], ["619","445",15,"1/2 oz Orange juice "], ["619","82",5,"1 tsp Grenadine "], ["1983","270",40,"4 cl Bailey's irish cream "], ["1983","59",150,"15 cl Fanta "], ["2786","214",37.5,"1 1/4 oz Light rum "], ["2786","211",120,"4 oz Sweet and sour "], ["2786","261",30,"1 oz Pineapple juice "], ["2786","355",30,"1 oz Passion fruit juice "], ["2786","387",22.5,"3/4 oz Dark rum (Meyers) "], ["1214","214",45,"1 1/2 oz Light rum "], ["1214","404",90,"3 oz Grapefruit juice "], ["1214","106",0.9,"1 dash Bitters "], ["621","192",45,"1 1/2 oz Brandy "], ["621","88",15,"1/2 oz Dry Vermouth "], ["621","330",30,"1 oz Port "], ["624","240",22.5,"3/4 oz Coffee liqueur (Kahlua) "], ["624","480",22.5,"3/4 oz Irish cream (Bailey's) "], ["624","227",15,"1/2 oz Banana liqueur (DeKuyper) "], ["625","376",45,"1 1/2 oz Gin "], ["625","170",15,"1/2 oz Anis "], ["2139","316",30,"1 oz Vodka "], ["2139","304",30,"1 oz Rum "], ["2139","368",30,"1 oz Sloe gin "], ["2139","36",30,"1 oz Malibu rum "], ["2139","375",15,"1/2 oz Amaretto "], ["2139","445",60,"2 oz Orange juice "], ["2139","261",90,"3 oz Pineapple juice "], ["3496","270",20,"2 cl Bailey's irish cream "], ["3496","316",20,"2 cl Vodka "], ["3496","36",20,"2 cl Malibu rum "], ["628","214",45,"1 1/2 oz Light rum "], ["628","333",15,"1/2 oz white Creme de Cacao "], ["628","155",30,"1 oz Heavy cream "], ["628","265",5,"1 tsp Kahlua "], ["630","71",240,"8 oz Everclear "], ["630","418",750,"25 oz Collins mix "], ["1348","316",60,"2 oz Vodka "], ["1348","186",60,"2 oz Lime juice "], ["1348","83",240,"8 oz Ginger ale "], ["1748","115",30,"1 oz Goldschlager "], ["1748","114",30,"1 oz Butterscotch schnapps "], ["1748","259",30,"1 oz Milk "], ["1295","108",30,"1 oz J�germeister "], ["1295","464",15,"1/2 oz Peppermint schnapps "], ["1295","115",15,"1/2 oz Goldschlager "], ["1295","36",15,"1/2 oz Malibu rum "], ["5773","462",45,"1 1/2 oz Tequila (Jose Cuervo) "], ["5773","186",15,"1/2 oz Lime juice "], ["5773","82",3.7,"1 splash Grenadine "], ["5773","199",90,"3 oz Mountain Dew "], ["633","108",30,"1 oz J�germeister "], ["633","36",30,"1 oz Malibu rum "], ["633","261",30,"1 oz Pineapple juice "], ["6123","376",30,"1 oz dry Gin "], ["6123","83",300,"10 oz Ginger ale "], ["6123","287",3.7,"1 splash Chocolate syrup "], ["5481","199",120,"4 oz Mountain Dew "], ["5481","296",120,"4 oz Sake "], ["1309","316",60,"2 oz Vodka "], ["1309","265",60,"2 oz Kahlua "], ["1309","270",60,"2 oz Bailey's irish cream "], ["3554","119",30,"1 oz Absolut Vodka "], ["3554","270",30,"1 oz Bailey's irish cream "], ["3554","265",30,"1 oz Kahlua "], ["3554","315",22.5,"3/4 oz Grand Marnier "], ["1731","215",60,"2 oz Tia maria "], ["1731","316",60,"2 oz Vodka "], ["1731","333",60,"2 oz Creme de Cacao "], ["1731","270",60,"2 oz Bailey's irish cream "], ["634","387",45,"1 1/2 oz Dark rum "], ["634","423",15,"1/2 oz Applejack "], ["634","424",15,"1/2 oz Lemon juice "], ["634","477",2.5,"1/2 tsp superfine Sugar "], ["634","409",0.63,"1/8 tsp ground Cinnamon "], ["634","20",0.63,"1/8 tsp grated Nutmeg "], ["635","173",45,"1 1/2 oz Canadian whisky "], ["635","146",30,"1 oz Midori melon liqueur "], ["635","422",45,"1 1/2 oz Cream "], ["635","445",90,"3 oz Orange juice "], ["635","424",5,"1 tsp Lemon juice "], ["635","82",5,"1 tsp Grenadine "], ["5892","108",30,"1 oz J�germeister "], ["5892","480",30,"1 oz Irish cream "], ["5892","464",15,"1/2 oz Peppermint schnapps "], ["636","375",60,"2 oz Amaretto "], ["636","333",30,"1 oz Creme de Cacao "], ["636","316",30,"1 oz Vodka "], ["636","126",60,"2 oz Half-and-half "], ["2896","405",29.5,"1 shot Tequila Rose, chilled "], ["2896","316",29.5,"1 shot Vodka (Absolut) "], ["2896","165",29.5,"1 shot Strawberry schnapps, chilled "], ["5809","274",15,"1/2 oz Melon liqueur "], ["5809","309",15,"1/2 oz Peach schnapps "], ["5809","468",15,"1/2 oz Coconut rum "], ["5809","115",15,"1/2 oz Goldschlager "], ["5809","261",90,"3 oz Pineapple juice "], ["3418","376",90,"3 oz Gin "], ["3418","314",360,"12 oz Cream soda "], ["4179","36",15,"1/2 oz Malibu rum "], ["4179","272",15,"1/2 oz Razzmatazz "], ["4179","146",15,"1/2 oz Midori melon liqueur "], ["4179","211",7.5,"1/4 oz Sweet and sour "], ["4179","372",7.5,"1/4 oz Cranberry juice "], ["2118","119",30,"1 oz Absolut Vodka "], ["2118","309",15,"1/2 oz Peach schnapps "], ["3913","214",7.5,"1/4 oz Light rum "], ["3913","387",7.5,"1/4 oz Dark rum "], ["3913","375",15,"1/2 oz Amaretto "], ["3913","309",15,"1/2 oz Peach schnapps "], ["3913","445",60,"2 oz Orange juice "], ["3913","323",3.7,"1 splash Sprite "], ["2718","482",180,"6 oz black brewed Coffee "], ["2718","270",60,"2 oz Bailey's irish cream "], ["2718","265",60,"2 oz Kahlua "], ["2718","167",3.7,"1 splash Frangelico "], ["2539","376",60,"2 oz Gin "], ["2539","436",2.5,"1/2 tsp Curacao "], ["2539","28",2.5,"1/2 tsp Dubonnet Rouge "], ["637","198",15,"1/2 oz Aftershock "], ["637","132",15,"1/2 oz Cinnamon schnapps (Fire and Ice) "], ["637","85",3.7,"1 splash 151 proof rum "], ["5891","316",60,"2 oz Vodka "], ["5891","309",45,"1 1/2 oz Peach schnapps "], ["5891","146",30,"1 oz Midori melon liqueur "], ["5891","22",90,"3 oz 7-Up "], ["4399","462",45,"1 1/2 oz Tequila "], ["4399","359",15,"1/2 oz Cointreau "], ["1317","304",15,"1/2 oz Rum "], ["1317","316",15,"1/2 oz Vodka "], ["1317","376",15,"1/2 oz Gin "], ["1317","297",15,"1/2 oz Blue Curacao "], ["1317","266",60,"2 oz Sour mix "], ["1317","388",3.7,"1 splash Lemon-lime soda "], ["5901","214",15,"1/2 oz Light rum (Bacardi) "], ["5901","25",15,"1/2 oz Gold rum (Bacardi) "], ["5901","387",15,"1/2 oz Dark rum (Meyer's) "], ["5901","315",15,"1/2 oz Grand Marnier "], ["5901","404",30,"1 oz Grapefruit juice "], ["5901","445",30,"1 oz Orange juice "], ["5901","261",30,"1 oz Pineapple juice "], ["1829","465",90,"3 oz White chocolate liqueur (Godet) "], ["1829","85",30,"1 oz 151 proof rum Bacardi "], ["3659","36",90,"3 oz Malibu rum "], ["3659","445",150,"5 oz Orange juice "], ["2309","108",14.75,"1/2 shot J�germeister "], ["2309","145",14.75,"1/2 shot Rumple Minze "], ["3116","376",30,"1 oz Gin "], ["3116","327",30,"1 oz Campari "], ["3116","383",30,"1 oz Sweet Vermouth "], ["1660","316",30,"3 cl Vodka shot, Hot n'sweet (white) "], ["1660","425",30,"3 cl Pisang Ambon "], ["5349","36",37.5,"1 1/4 oz Malibu rum "], ["5349","146",15,"1/2 oz Midori melon liqueur "], ["5349","297",7.5,"1/4 oz Blue Curacao "], ["5349","261",105,"3 1/2 oz Pineapple juice "], ["5931","249",15,"1/2 oz Bourbon (Jim Beam) "], ["5931","199",15,"1/2 oz Mountain Dew "], ["5931","132",30,"1 oz Cinnamon schnapps (Firewater) "], ["2776","463",45,"1 1/2 oz Finlandia Cranberry vodka "], ["2776","359",15,"1/2 oz Cointreau "], ["2776","54",3.7,"1 splash Chambord raspberry liqueur "], ["2776","200",0.9,"1 dash Rose's sweetened lime juice "], ["5352","212",30,"3 cl Absolut Peppar "], ["5352","146",30,"3 cl Midori melon liqueur "], ["2402","213",30,"1 oz Triple sec "], ["2402","192",30,"1 oz Brandy "], ["2402","106",0.9,"1 dash Bitters "], ["639","3",30,"1 oz Cognac "], ["639","249",30,"1 oz Bourbon "], ["639","316",30,"1 oz Vodka "], ["639","403",30,"1 oz Peach liqueur (Creme de peche) "], ["639","445",30,"1 oz Orange juice "], ["639","424",15,"1/2 oz Lemon juice "], ["639","91",0.9,"1 dash Strawberry syrup "], ["3888","21",60,"2 oz Whiskey "], ["3888","266",90,"3 oz Sour mix "], ["3888","83",90,"3 oz Ginger ale "], ["2787","114",10,"1/3 oz Butterscotch schnapps "], ["2787","270",10,"1/3 oz Bailey's irish cream "], ["2787","265",10,"1/3 oz Kahlua "], ["640","214",45,"1 1/2 oz Light rum "], ["640","404",45,"1 1/2 oz Grapefruit juice "], ["640","106",0.9,"1 dash Bitters "], ["640","186",30,"1 oz Lime juice "], ["640","477",10,"2 tsp superfine Sugar "], ["1323","312",60,"2 oz Absolut Citron "], ["1323","315",30,"1 oz Grand Marnier "], ["1323","424",60,"2 oz sweetened Lemon juice "], ["1323","130",30,"1 oz Club soda "], ["4850","192",30,"1 oz Brandy "], ["4850","359",30,"1 oz Cointreau "], ["4850","424",30,"1 oz Lemon juice "], ["4850","332",0.9,"1 dash Pernod "], ["4202","66",45,"1 1/2 oz Cachaca "], ["4202","359",15,"1/2 oz Cointreau "], ["4202","186",15,"1/2 oz Lime juice "], ["4202","277",15,"1/2 oz Batida de Coco "], ["5621","265",30,"1 oz Kahlua "], ["5621","20",0.9,"1 dash Nutmeg "], ["5621","259",180,"6 oz Milk "], ["5621","236",5,"1 tsp Powdered sugar "], ["2126","376",45,"1 1/2 oz Gin "], ["2126","179",15,"1/2 oz Cherry brandy "], ["2126","343",15,"1/2 oz Madeira "], ["2126","445",5,"1 tsp Orange juice "], ["1864","66",45,"1 1/2 oz Cachaca "], ["1864","213",15,"1/2 oz Triple sec "], ["1864","186",15,"1/2 oz Lime juice "], ["1864","277",15,"1/2 oz Batida de Coco "], ["4448","1",10,"1/3 oz Firewater "], ["4448","114",10,"1/3 oz Butterscotch schnapps "], ["4448","480",10,"1/3 oz Irish cream "], ["3155","186",15,"1/2 oz Lime juice "], ["3155","346",15,"1/2 oz Fruit juice of your choice "], ["3155","261",30,"1 oz Pineapple juice "], ["3155","404",30,"1 oz Grapefruit juice "], ["3155","445",30,"1 oz Orange juice "], ["3155","468",30,"1 oz Coconut rum "], ["3155","10",22.5,"3/4 oz Creme de Banane "], ["5703","146",30,"1 oz Midori melon liqueur "], ["5703","213",30,"1 oz Triple sec "], ["5703","214",30,"1 oz Light rum or vodka "], ["5703","261",120,"4 oz Pineapple juice "], ["2781","202",15,"1/2 oz Gold tequila "], ["2781","270",15,"1/2 oz Bailey's irish cream "], ["3588","316",30,"1 oz Vodka "], ["3588","214",30,"1 oz Light rum "], ["3588","182",30,"1 oz Crown Royal "], ["3588","261",60,"2 oz Pineapple juice "], ["3588","372",60,"2 oz Cranberry juice "], ["3588","274",3.7,"1 splash Melon liqueur (Midori) "], ["645","316",7.38,"1/4 shot Vodka "], ["645","270",14.75,"1/2 shot Bailey's irish cream "], ["645","392",3.7,"1 splash Beer "], ["2691","82",15,"1/2 oz Grenadine "], ["2691","145",15,"1/2 oz Rumple Minze "], ["2691","108",15,"1/2 oz J�germeister "], ["2691","146",15,"1/2 oz Midori melon liqueur "], ["2691","182",15,"1/2 oz Crown Royal "], ["2691","85",15,"1/2 oz Bacardi 151 proof rum "], ["2691","375",15,"1/2 oz Amaretto "], ["1094","57",10,"2 tsp Cocoa powder "], ["1094","477",5,"1 tsp Sugar "], ["1094","508",2.5,"1/2 tsp Vanilla extract "], ["1094","259",360,"12 oz Milk "], ["1216","340",22.5,"3/4 oz Barenjager "], ["1216","167",22.5,"3/4 oz Frangelico "], ["1216","422",60,"2 oz Cream "], ["6023","214",60,"2 oz Light rum "], ["6023","375",45,"1 1/2 oz Amaretto "], ["6023","167",45,"1 1/2 oz Frangelico "], ["6023","200",22.5,"3/4 oz Rose's sweetened lime juice "], ["5319","54",30,"1 oz Chambord raspberry liqueur "], ["5319","167",30,"1 oz Frangelico "], ["5319","259",90,"Add 3 oz Milk or half and half "], ["1941","54",150,"1.5 oz Chambord raspberry liqueur "], ["1941","167",150,"1.5 oz Frangelico "], ["1941","126",150,"1.5 oz Half-and-half "], ["2492","465",30,"1 oz White chocolate liqueur (Godet) "], ["2492","167",30,"1 oz Frangelico "], ["2492","316",15,"1/2 oz Vodka "], ["5474","227",30,"1 oz Banana liqueur "], ["5474","217",30,"1 oz Hazelnut liqueur "], ["5474","468",30,"1 oz Coconut rum "], ["5474","335",30,"1 oz Spiced rum "], ["5474","259",105,"3 1/2 oz Milk "], ["5474","427",150,"5 oz Ice "], ["2230","480",22.25,"1/2 jigger Irish cream "], ["2230","217",22.25,"1/2 jigger Hazelnut liqueur "], ["2230","259",257,"1 cup steamed Milk "], ["2230","204",257,"1 cup Espresso (small) "], ["1846","99",60,"6 cl Melon vodka (Artic) "], ["1846","36",40,"4 cl Malibu rum "], ["1846","425",30,"3 cl Pisang Ambon "], ["1846","424",70,"7 cl Lemon juice "], ["1846","422",3.7,"1 splash Cream "], ["3684","270",15,"1/2 oz Bailey's irish cream "], ["3684","114",15,"1/2 oz Butterscotch schnapps (Buttershots) "], ["3684","115",7.5,"1/4 oz Goldschlager "], ["3684","108",7.5,"1/4 oz J�germeister "], ["646","115",44.5,"1 jigger Goldschlager (or Hotdam) "], ["646","114",44.5,"1 jigger Butterscotch schnapps "], ["646","270",44.5,"1 jigger Bailey's irish cream "], ["1572","108",5.9,"1/5 shot J�germeister "], ["1572","115",5.9,"1/5 shot Goldschlager "], ["1572","85",5.9,"1/5 shot Bacardi 151 proof rum "], ["1572","265",5.9,"1/5 shot Kahlua "], ["1572","270",5.9,"1/5 shot Bailey's irish cream "], ["1947","115",22.13,"3/4 shot Goldschlager "], ["1947","108",7.38,"1/4 shot J�germeister "], ["4425","108",14.75,"1/2 shot J�germeister "], ["4425","145",14.75,"1/2 shot Rumple Minze "], ["4625","383",15,"1/2 oz Sweet Vermouth "], ["4625","56",37.5,"1 1/4 oz Blended whiskey "], ["4625","82",15,"1/2 oz Grenadine "], ["2403","85",30,"1 oz Bacardi 151 proof rum "], ["2403","232",30,"1 oz Wild Turkey Whiskey "], ["2317","387",75,"2 1/2 oz Dark rum "], ["2317","179",15,"1/2 oz Cherry brandy "], ["2317","186",15,"1/2 oz Lime juice "], ["650","335",37.5,"1 1/4 oz Spiced rum (Captain Morgan's) "], ["650","387",22.5,"3/4 oz Dark rum (Meyers) "], ["650","359",15,"1/2 oz Cointreau "], ["650","2",135,"4 1/2 oz Lemonade "], ["650","372",30,"1 oz Cranberry juice "], ["652","56",45,"1 1/2 oz Blended whiskey "], ["652","383",15,"1/2 oz Sweet Vermouth "], ["652","82",15,"1/2 oz Grenadine "], ["5832","445",257,"1 cup Orange juice "], ["5832","372",257,"1 cup Cranberry juice "], ["4117","435",45,"1 1/2 oz Orange vodka (Stoli) "], ["4117","315",30,"1 oz Grand Marnier "], ["4117","445",105,"3 1/2 oz Orange juice "], ["5249","400",30,"1 oz Mandarine Napoleon "], ["5249","361",15,"1/2 oz Truffles Chocolate liqueur "], ["5249","270",15,"1/2 oz Bailey's irish cream "], ["5249","126",15,"1/2 oz Half-and-half "], ["1618","424",20,"2 cl Lemon juice "], ["1618","445",60,"6 cl Orange juice "], ["1025","309",30,"1 oz Peach schnapps "], ["1025","261",60,"2 oz Pineapple juice "], ["1025","445",30,"1 oz Orange juice "], ["1025","122",15,"1/2 oz Jack Daniels "], ["2387","316",30,"1 oz Vodka "], ["2387","213",30,"1 oz Triple sec "], ["2387","445",30,"1 oz Orange juice "], ["4332","78",45,"1 1/2 oz Absolut Mandrin "], ["4332","357",22.5,"3/4 oz Sugar syrup "], ["4332","213",7.5,"1/4 oz Triple sec "], ["4332","445",3.7,"1 splash Orange juice "], ["6073","214",60,"2 oz Light rum "], ["6073","309",60,"2 oz Peach schnapps "], ["6073","213",30,"1 oz Triple sec "], ["6073","231",30,"1 oz Apricot brandy "], ["6073","422",30,"1 oz Cream "], ["6073","82",3.7,"1 splash Grenadine "], ["4494","316",40,"4 cl Vodka "], ["4494","421",40,"4 cl Cinzano Orancio "], ["4494","323",60,"5-6 cl Sprite "], ["5442","462",30,"1 oz Tequila "], ["5442","213",15,"1/2 oz Triple sec "], ["5442","445",180,"4-6 oz Orange juice "], ["5442","186",3.7,"1 splash Lime juice "], ["4526","335",150,"1.5 oz Spiced rum (Captain Morgan's) "], ["4526","82",150,"0.5 oz Grenadine "], ["4526","445",120,"4 oz Orange juice "], ["4526","266",3.7,"1 splash Sour mix "], ["656","78",29.5,"1 shot Absolut Mandrin "], ["656","322",29.5,"1 shot Peachtree schnapps "], ["656","445",44.25,"1 1/2 shot Orange juice "], ["1095","424",30,"3 cl Lemon juice "], ["1095","445",100,"10 cl Orange juice "], ["4088","422",20,"2 cl Cream "], ["4088","261",20,"2 cl Pineapple juice "], ["4088","445",50,"5 cl Orange juice "], ["3747","265",30,"1 oz Kahlua "], ["3747","333",30,"1 oz Creme de Cacao "], ["3747","270",30,"1 oz Bailey's irish cream "], ["3747","316",3.7,"1 splash Vodka "], ["2461","464",150,"0.5 oz Peppermint schnapps "], ["2461","270",150,"0.5 oz Bailey's irish cream "], ["2851","316",30,"1 oz Vodka "], ["2851","270",45,"1 1/2 oz Bailey's irish cream "], ["2851","265",15,"1/2 oz Kahlua "], ["2851","508",10,"2 tsp Vanilla extract "], ["3382","270",40,"4 cl Bailey's irish cream "], ["3382","316",20,"2 cl Vodka "], ["657","333",15,"1/2 oz white Creme de Cacao "], ["657","375",15,"1/2 oz Amaretto "], ["657","213",15,"1/2 oz Triple sec "], ["657","316",15,"1/2 oz Vodka "], ["657","41",30,"1 oz Light cream "], ["658","376",30,"1 oz Gin "], ["658","351",30,"1 oz Benedictine "], ["658","179",30,"1 oz Cherry brandy "], ["658","130",120,"4 oz Club soda "], ["2224","359",210,"0.7 oz Cointreau "], ["2224","424",1050,"0.35 oz Lemon juice "], ["2224","462",120,"1.4 oz Tequila "], ["4772","383",20,"2 cl red Sweet Vermouth "], ["4772","248",20,"2 cl Aperol "], ["4772","378",30,"3 cl Scotch "], ["3900","464",30,"1 oz Peppermint schnapps "], ["3900","482",240,"8 oz Coffee "], ["3900","477",10,"2 tsp Sugar "], ["2612","145",45,"1 1/2 oz Rumple Minze "], ["2612","267",45,"1 1/2 oz Black Sambuca (Romana) "], ["659","376",60,"2 oz Gin "], ["659","179",30,"1 oz Cherry brandy "], ["659","186",30,"1 oz Lime juice "], ["659","351",1.25,"1/4 tsp Benedictine "], ["659","192",1.25,"1/4 tsp Brandy "], ["4047","92",30,"1 oz Peach brandy "], ["4047","169",30,"1 oz Lime vodka "], ["4047","261",30,"1 oz Pineapple juice "], ["660","142",15,"1/2 oz White rum (Bacardi) "], ["660","297",15,"1/2 oz Blue Curacao "], ["660","211",7.5,"1/4 oz Sweet and sour "], ["660","22",7.5,"1/4 oz 7-Up "], ["1321","214",45,"1 1/2 oz Light rum "], ["1321","333",15,"1/2 oz white Creme de Cacao "], ["1321","155",30,"1 oz Heavy cream "], ["1321","297",5,"1 tsp Blue Curacao "], ["5033","21",360,"12 oz Whiskey "], ["5033","392",360,"12 oz Beer "], ["5033","2",360,"12 oz frozen Lemonade concentrate "], ["5033","427",257,"1 cup crushed Ice "], ["3019","85",60,"2 oz Bacardi 151 proof rum "], ["3019","227",60,"2 oz Banana liqueur "], ["3019","270",60,"2 oz Bailey's irish cream "], ["2422","376",60,"2 oz Gin "], ["2422","237",45,"1 1/2 oz Raspberry liqueur "], ["2422","61",30,"1 oz Vanilla liqueur "], ["2422","468",30,"1 oz Coconut rum (Coco Ribe) "], ["2422","424",30,"1 oz Lemon juice "], ["2422","130",90,"3 oz Club soda "], ["2422","236",5,"1 tsp Powdered sugar "], ["2142","378",60,"2 oz Scotch "], ["2142","121",15,"1/2 oz Kirschwasser "], ["2142","28",15,"1/2 oz Dubonnet Rouge "], ["2142","375",15,"1/2 oz Amaretto "], ["2142","110",5,"1 tsp Mint syrup "], ["2285","462",45,"1 1/2 oz Tequila "], ["2285","297",45,"1 1/2 oz Blue Curacao "], ["2285","266",45,"1 1/2 oz Sour mix "], ["2285","106",0.9,"1 dash Bitters "], ["4306","65",90,"3 oz pineapple Guava juice "], ["4306","316",30,"1 oz Vodka (Absolut) "], ["4306","297",30,"1 oz Blue Curacao "], ["4306","309",30,"1 oz Peach schnapps "], ["664","376",45,"1 1/2 oz Gin "], ["664","383",7.5,"1 1/2 tsp Sweet Vermouth "], ["664","404",7.5,"1 1/2 tsp Grapefruit juice "], ["666","56",60,"2 oz Blended whiskey "], ["666","424",2.5,"1/2 tsp Lemon juice "], ["666","106",0.9,"1 dash Bitters "], ["4882","304",37.5,"1 1/4 oz Bacardi silver Rum "], ["4882","231",15,"1/2 oz Apricot brandy "], ["4882","445",90,"3 oz Orange juice "], ["4882","304",7.5,"1/4 oz Meyers Rum "], ["4882","261",90,"3 oz Pineapple juice "], ["4911","462",45,"1 1/2 oz Tequila "], ["4911","211",15,"1/2 oz Sweet and sour "], ["667","462",30,"1 oz Tequila "], ["667","227",15,"1/2 oz Banana liqueur "], ["667","213",15,"1/2 oz Triple sec "], ["667","404",180,"6 oz Grapefruit juice "], ["2742","85",240,"8 oz Bacardi 151 proof rum "], ["2742","287",60,"2 oz Chocolate syrup (Hershey's) "], ["2742","270",60,"2 oz Bailey's irish cream (optional) "], ["3466","462",15,"1/2 oz Tequila "], ["3466","316",15,"1/2 oz Vodka "], ["3466","265",15,"1/2 oz Kahlua "], ["3466","41",120,"4 oz Light cream "], ["3466","175",135,"4 1/2 oz Coca-Cola "], ["6192","88",30,"1 oz Dry Vermouth "], ["6192","376",30,"1 oz Gin "], ["6192","473",7.5,"1/4 oz Creme de Cassis "], ["2042","145",7.5,"1/4 oz Rumple Minze "], ["2042","108",7.5,"1/4 oz J�germeister "], ["2042","202",7.5,"1/4 oz Gold tequila (Jose Cuervo) "], ["2042","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["4423","157",30,"3 cl Passoa "], ["4423","322",20,"2 cl Peachtree schnapps "], ["4423","226",20,"2 cl Bacardi Limon "], ["4423","404",80,"8 cl Grapefruit juice "], ["4423","445",20,"2 cl Orange juice "], ["5262","201",30,"1 oz Genever "], ["5262","280",5,"1 tsp Fernet Branca "], ["5262","266",0.9,"1 dash Sour mix "], ["4167","378",30,"1 oz Scotch whiskey (Cutty Sark) "], ["4167","396",120,"4 oz Orange soda (C'Plus) "], ["1339","342",60,"2 oz Southern Comfort "], ["1339","316",60,"2 oz Vodka "], ["1339","32",60,"2 oz Kool-Aid "], ["2128","316",15,"1/2 oz Vodka "], ["2128","54",15,"1/2 oz Chambord raspberry liqueur "], ["2128","167",15,"1/2 oz Frangelico "], ["4929","167",15,"1/2 oz Frangelico "], ["4929","82",15,"1/2 oz Grenadine "], ["674","92",22.5,"3/4 oz Peach brandy "], ["674","333",22.5,"3/4 oz white Creme de Cacao "], ["674","41",22.5,"3/4 oz Light cream "], ["2550","316",22.5,"3/4 oz Vodka "], ["2550","309",22.5,"3/4 oz Peach schnapps "], ["2550","375",22.5,"3/4 oz Amaretto "], ["3661","316",22.5,"3/4 oz Vodka "], ["3661","309",22.5,"3/4 oz Peach schnapps "], ["3661","500",22.5,"3/4 oz Cheri Beri Pucker "], ["3661","266",3.7,"1 splash Sour mix "], ["3661","261",3.7,"1 splash Pineapple juice "], ["3661","22",3.7,"1 splash 7-Up "], ["5383","161",270,"9 oz Iced tea "], ["5383","309",90,"3 oz Peach schnapps "], ["4945","309",30,"1 oz Peach schnapps "], ["4945","186",30,"1 oz Lime juice "], ["3000","54",15,"1/2 oz Chambord raspberry liqueur "], ["3000","167",15,"1/2 oz Frangelico "], ["1813","316",30,"1 oz Vodka "], ["1813","146",15,"1/2 oz Midori melon liqueur "], ["1813","261",150,"5 oz Pineapple juice "], ["4897","405",15,"1/2 oz Tequila Rose "], ["4897","270",15,"1/2 oz Bailey's irish cream "], ["5715","226",45,"1 1/2 oz Bacardi Limon "], ["5715","211",3.7,"1 splash Sweet and sour "], ["5715","22",60,"2 oz 7-Up "], ["5715","130",60,"2 oz Club soda "], ["4699","376",45,"1 1/2 oz Gin "], ["4699","88",22.5,"3/4 oz Dry Vermouth "], ["4699","170",1.25,"1/4 tsp Anis "], ["4699","28",1.25,"1/4 tsp Dubonnet Rouge "], ["1363","316",20,"2 cl Koskenkorva Vodka "], ["1363","424",20,"2 cl Lemon juice "], ["677","274",10,"1/3 oz Melon liqueur "], ["677","297",10,"1/3 oz Blue Curacao "], ["677","213",10,"1/3 oz Triple sec "], ["5372","214",29.5,"1 shot Light rum "], ["5372","359",29.5,"1 shot Cointreau or triple sec "], ["5372","29",180,"6 oz Tonic water "], ["2439","249",29.5,"1 shot Bourbon "], ["2439","316",29.5,"1 shot Vodka "], ["2439","22",180,"6 oz 7-Up "], ["3480","464",150,"1.5 oz Peppermint schnapps "], ["3480","36",150,"1.5 oz Malibu rum "], ["4277","333",30,"1 oz white Creme de Cacao "], ["4277","205",30,"1 oz White Creme de Menthe "], ["2798","270",15,"1/2 oz Bailey's irish cream "], ["2798","464",15,"1/2 oz Peppermint schnapps (Dr. McGuillicudys) "], ["2091","464",30,"1 oz Peppermint schnapps "], ["2091","333",45,"1 1/2 oz white Creme de Cacao "], ["2091","41",30,"1 oz Light cream "], ["678","387",30,"1 oz Dark rum "], ["678","186",5,"1 tsp Lime juice "], ["678","10",15,"1/2 oz Creme de Banane "], ["678","342",15,"1/2 oz Southern Comfort "], ["678","424",5,"1 tsp Lemon juice "], ["680","383",7.5,"1 1/2 tsp Sweet Vermouth "], ["680","88",7.5,"1 1/2 tsp Dry Vermouth "], ["680","376",45,"1 1/2 oz Gin "], ["680","106",0.9,"1 dash Bitters "], ["2596","202",60,"2 oz Gold tequila (Cuervo 1800) "], ["2596","359",15,"1/2 oz Cointreau "], ["2596","315",15,"1/2 oz Grand Marnier "], ["2596","445",15,"1/2 oz Orange juice (Tropicana) "], ["2596","200",30,"1 oz Rose's sweetened lime juice "], ["2596","211",120,"4 oz Sweet and sour mix (Lemate's) "], ["2610","198",15,"1/2 oz Aftershock "], ["2610","316",15,"1/2 oz Vodka (Absolut) "], ["4969","316",60,"2 oz Vodka "], ["4969","222",180,"6 oz Sunny delight (to taste) "], ["684","85",15,"1/2 oz Bacardi 151 proof rum "], ["684","317",15,"1/2 oz Jose Cuervo "], ["3353","376",45,"1 1/2 oz Gin "], ["3353","88",22.5,"3/4 oz Dry Vermouth "], ["3353","170",1.25,"1/4 tsp Anis "], ["3353","82",1.25,"1/4 tsp Grenadine "], ["3758","218",50,"5 cl Amer Picon "], ["3758","392",200,"20 cl Beer "], ["5086","475",30,"1 oz Sambuca "], ["5086","270",30,"1 oz Bailey's irish cream "], ["4172","462",15,"1/2 oz Tequila (Herradura reposado) "], ["4172","280",15,"1/2 oz Fernet Branca "], ["4172","124",15,"1/2 oz Anisette (Cadenas) "], ["5036","249",30,"1 oz Bourbon "], ["5036","218",30,"1 oz Amer Picon "], ["5036","357",0.9,"1 dash Sugar syrup "], ["1356","42",60,"2 oz Irish whiskey "], ["1356","265",15,"1/2 oz Kahlua "], ["1356","464",3.7,"1 splash Peppermint schnapps "], ["4113","316",60,"2 oz Vodka (Absolut) "], ["4113","297",30,"1 oz Blue Curacao "], ["4113","309",30,"1 oz Peach schnapps "], ["4113","445",150,"5 oz Orange juice (Sunny D) "], ["4331","71",29.5,"1 shot Everclear "], ["4331","359",29.5,"1 shot Cointreau "], ["4331","445",180,"6 oz Orange juice "], ["4331","424",14.75,"1/2 shot Lemon juice "], ["3432","221",30,"1 oz Raspberry schnapps "], ["3432","365",30,"1 oz Absolut Kurant "], ["3432","323",180,"6 oz Sprite "], ["2185","387",22.5,"3/4 oz Dark rum "], ["2185","167",22.5,"3/4 oz Frangelico "], ["1733","119",30,"1 oz Absolut Vodka "], ["1733","213",15,"1/2 oz Triple sec "], ["1733","211",45,"1 1/2 oz Sweet and sour "], ["1733","261",60,"2 oz Pineapple juice "], ["1733","22",3.7,"1 splash 7-Up "], ["1651","342",135,"4 1/2 oz Southern Comfort "], ["1651","85",3.7,"1 splash Bacardi 151 proof rum "], ["1651","22",90,"3 oz 7-Up "], ["1651","445",120,"4 oz Orange juice "], ["1651","175",120,"4 oz Coca-Cola "], ["2971","10",30,"1 oz Creme de Banane "], ["2971","178",150,"5 oz Pink lemonade "], ["4204","295",120,"4 oz chilled pink Champagne "], ["4204","445",120,"4 oz chilled Orange juice "], ["4204","473",0.9,"1 dash Creme de Cassis "], ["688","376",60,"2 oz Gin "], ["688","424",30,"1 oz Lemon juice "], ["688","477",5,"1 tsp superfine Sugar "], ["688","41",30,"1 oz Light cream "], ["688","82",5,"1 tsp Grenadine "], ["688","130",120,"4 oz Club soda "], ["5669","82",3.7,"1 splash Grenadine "], ["5669","376",60,"2 oz Gin "], ["5471","376",60,"2 oz Gin "], ["5471","424",60,"2 oz Lemon juice "], ["5471","82",22.5,"3/4 oz Grenadine "], ["2078","376",45,"1 1/2 oz dry Gin "], ["2078","372",3.7,"1 splash Cranberry juice "], ["4344","312",45,"1 1/2 oz Absolut Citron "], ["4344","54",15,"1/2 oz Chambord raspberry liqueur "], ["4344","266",60,"2 oz Sour mix "], ["1575","316",45,"1 1/2 oz Vodka "], ["1575","266",90,"3 oz Sour mix "], ["1575","372",3.7,"1 splash Cranberry juice "], ["1575","186",0.9,"1 dash Lime juice "], ["4881","226",45,"1 1/2 oz Bacardi Limon "], ["4881","211",60,"2 oz Sweet and sour "], ["4881","372",15,"1/2 oz Cranberry juice "], ["1489","316",20,"2 cl Vodka (Absolut) "], ["1489","223",40,"4 cl Licor 43 "], ["1489","259",60,"6 cl Milk "], ["1489","82",5,"1/2 cl Grenadine "], ["5560","316",90,"3 oz Vodka "], ["5560","82",0.9,"1 dash Grenadine "], ["5560","211",150,"5 oz Sweet and sour "], ["5560","83",150,"5 oz Ginger ale "], ["1701","392",360,"12 oz Beer (any beer will do) "], ["1701","178",360,"12 oz frozen Pink lemonade concentrate "], ["1701","316",360,"12 oz Vodka "], ["691","316",30,"1 oz Vodka "], ["691","468",15,"1/2 oz Coconut rum "], ["691","322",15,"1/2 oz Peachtree schnapps "], ["691","372",3.7,"1 splash Cranberry juice "], ["691","261",3.7,"1 splash Pineapple juice "], ["2267","376",60,"2 oz Gin "], ["2267","261",120,"4 oz Pineapple juice "], ["2267","179",5,"1 tsp Cherry brandy "], ["5458","316",22.5,"3/4 oz Vodka "], ["5458","10",22.5,"3/4 oz Creme de Banane "], ["5458","469",22.5,"3/4 oz Creme de Almond "], ["5458","261",30,"1 oz Pineapple juice "], ["5458","266",30,"1 oz Sour mix "], ["2111","82",14.75,"1/2 shot Grenadine "], ["2111","333",14.75,"1/2 shot white Creme de Cacao "], ["2111","259",29.5,"1 shot Milk "], ["1916","145",22.13,"3/4 shot Rumple Minze "], ["1916","1",7.38,"1/4 shot Firewater "], ["693","378",45,"1 1/2 oz Scotch "], ["693","265",30,"1 oz Kahlua "], ["693","176",15,"1/2 oz Maraschino liqueur "], ["693","155",30,"1 oz Heavy cream "], ["6191","335",45,"1 1/2 oz Spiced rum (Captain Morgan's) "], ["6191","497",240,"8 oz Hawaiian Punch "], ["3820","382",30,"1 oz Pistachio liqueur "], ["3820","192",30,"1 oz Brandy "], ["3820","503",150,"5 oz Vanilla ice-cream "], ["1801","108",30,"1 oz J�germeister "], ["1801","145",30,"1 oz Rumple Minze "], ["1801","202",30,"1 oz Gold tequila (Jose Cuervo) "], ["1544","117",30,"1 oz Wildberry schnapps "], ["1544","405",3.7,"1 splash Tequila Rose "], ["5684","231",20,"2 cl Apricot brandy "], ["5684","376",20,"2 cl Gin "], ["5684","82",10,"1 cl Grenadine "], ["2001","462",40,"4 cl Tequila "], ["2001","155",20,"2 cl Heavy cream "], ["3314","238",60,"2 oz Aliz� "], ["3314","3",60,"2 oz Cognac "], ["3314","295",120,"4 oz Champagne "], ["5551","239",40,"4 cl Pear liqueur (Poire au Cognac) "], ["5551","323",100,"10 cl Sprite "], ["2415","74",30,"1 oz Apfelkorn (Berentzen's) "], ["2415","119",30,"1 oz Absolut Vodka "], ["4327","198",14.75,"1/2 shot Aftershock "], ["4327","265",14.75,"1/2 shot Kahlua "], ["3462","108",14.75,"1/2 shot J�germeister "], ["3462","270",14.75,"1/2 shot Bailey's irish cream "], ["2408","333",15,"1/2 oz Creme de Cacao "], ["2408","464",15,"1/2 oz Peppermint schnapps or creme de menthe "], ["2616","71",60,"2 oz Everclear, 190 proof "], ["2616","396",60,"2 oz Orange soda "], ["3361","480",30,"1 oz Irish cream "], ["3361","425",30,"1 oz Pisang Ambon "], ["3361","316",15,"1/2 oz Vodka (Smirnoff) "], ["3361","259",30,"1 oz Milk "], ["1535","392",120,"4 oz Beer "], ["1535","445",120,"4 oz Orange juice "], ["1257","462",14.75,"1/2 shot Tequila "], ["1257","22",14.75,"1/2 shot 7-Up or Sprite "], ["701","376",45,"1 1/2 oz Gin "], ["701","333",22.5,"3/4 oz white Creme de Cacao "], ["1431","316",60,"2 oz Vodka "], ["1431","247",60,"2 oz Cherry liqueur "], ["1431","372",120,"4 oz Cranberry juice "], ["1431","445",120,"4 oz Orange juice "], ["702","284",15,"1/2 oz Maple syrup "], ["702","316",30,"1 oz Vodka "], ["702","198",30,"1 oz Aftershock "], ["702","265",75,"2 1/2 oz Kahlua "], ["703","330",75,"2 1/2 oz Port "], ["703","192",2.5,"1/2 tsp Brandy "], ["6080","270",15,"1/2 oz Bailey's irish cream "], ["6080","309",7.5,"1/4 oz Peach schnapps "], ["6080","205",7.5,"1/4 oz White Creme de Menthe "], ["3286","477",15,"3 tsp Sugar "], ["3286","316",50,"5 cl Vodka "], ["3286","259",150,"15 cl Milk "], ["1304","202",30,"1 oz Gold tequila "], ["1304","131",0.9,"1 dash Tabasco sauce "], ["3092","462",30,"1 oz Tequila "], ["3092","131",10,"2 tsp Tabasco sauce "], ["5588","462",30,"1 oz Tequila (Cuervo) "], ["5588","192",30,"1 oz Brandy (E&J) "], ["5588","378",30,"1 oz Scotch (Scoresby) "], ["5588","464",30,"1 oz Peppermint schnapps (Phillips) "], ["1975","376",45,"1 1/2 oz Gin "], ["1975","88",30,"1 oz Dry Vermouth "], ["1975","186",30,"1 oz Lime juice "], ["708","457",30,"1 oz chilled Cactus Juice liqueur "], ["708","462",15,"1/2 oz Cuervo Tequila "], ["709","448",15,"1/2 oz Apple brandy "], ["709","231",15,"1/2 oz Apricot brandy "], ["709","376",30,"1 oz Gin "], ["709","424",1.25,"1/4 tsp Lemon juice "], ["6051","462",40,"4 cl Tequila "], ["6051","131",40,"4 cl Tabasco sauce "], ["3631","378",10,"1/3 oz Scotch "], ["3631","422",10,"1/3 oz Cream "], ["3631","321",10,"1/3 oz Clamato juice "], ["3159","304",40,"4 cl Rum (Bacardi) "], ["3159","479",20,"2 cl Galliano "], ["3159","445",80,"8 cl Orange juice "], ["3159","261",80,"8 cl Pineapple juice "], ["3159","82",20,"2 cl Grenadine "], ["710","40",15,"1/2 oz Sour Apple Pucker "], ["710","240",15,"1/2 oz Coffee liqueur (Kamora) "], ["710","445",15,"1/2 oz Orange juice "], ["1418","265",15,"1/2 oz Kahlua "], ["1418","10",15,"1/2 oz Creme de Banane "], ["1418","85",3.75,"1/8 oz Bacardi 151 proof rum "], ["6090","214",60,"2 oz Light rum "], ["6090","445",60,"2 oz Orange juice "], ["6090","404",60,"2 oz Grapefruit juice "], ["6090","82",5,"1 tsp Grenadine "], ["3208","214",45,"1 1/2 oz Light rum "], ["3208","166",30,"1 oz Orange Curacao (Bols) "], ["3208","213",15,"1/2 oz Triple sec (Bols) "], ["3208","445",30,"1 oz Orange juice "], ["3208","422",15,"1/2 oz Cream "], ["2286","462",45,"1 1/2 oz Tequila "], ["2286","297",15,"1/2 oz Blue Curacao "], ["2286","436",15,"1/2 oz red Curacao "], ["2286","372",30,"1 oz Cranberry juice "], ["2286","266",30,"1 oz Sour mix "], ["2286","186",15,"1/2 oz Lime juice "], ["2770","375",30,"1 oz Amaretto "], ["2770","276",30,"1 oz Root beer schnapps "], ["2770","259",15,"1/2 oz Milk "], ["2770","86",15,"1/2 oz Grape soda "], ["2203","34",29.5,"1 shot blue Maui "], ["2203","34",29.5,"1 shot red Maui "], ["3811","316",37.5,"1 1/4 oz Vodka "], ["3811","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["3811","22",3.7,"1 splash 7-Up "], ["1521","54",15,"1/2 oz Chambord raspberry liqueur "], ["1521","22",10,"1/3 oz 7-Up "], ["1521","316",10,"1/3 oz Vodka "], ["2678","54",10,"1/3 oz Chambord raspberry liqueur "], ["2678","316",10,"1/3 oz Vodka "], ["2678","213",10,"1/3 oz Triple sec "], ["1228","316",45,"1 1/2 oz Vodka "], ["1228","200",15,"1/2 oz Rose's sweetened lime juice "], ["1228","54",0.9,"1 dash Chambord raspberry liqueur "], ["3680","54",30,"1 oz Chambord raspberry liqueur "], ["3680","36",15,"1/2 oz Malibu rum "], ["3680","261",15,"1/2 oz Pineapple juice "], ["4845","462",60,"2 oz Tequila (Hornitos) "], ["4845","266",60,"2 oz Sour mix "], ["4845","54",60,"2 oz Chambord raspberry liqueur "], ["4845","200",30,"1 oz Rose's sweetened lime juice "], ["4845","372",30,"1 oz Cranberry juice "], ["2982","316",30,"1 oz Vodka (Absolut) "], ["2982","462",30,"1 oz Tequila (Jose Cuervo) "], ["2982","315",30,"1 oz Grand Marnier "], ["5032","316",30,"1 oz Vodka "], ["5032","333",15,"1/2 oz white Creme de Cacao "], ["5032","416",30,"1 oz Grape juice "], ["5959","108",15,"1/2 oz J�germeister "], ["5959","146",45,"1 1/2 oz Midori melon liqueur "], ["5959","372",30,"1 oz Cranberry juice "], ["5959","445",3.7,"1 splash Orange juice "], ["5066","462",30,"1 oz Tequila "], ["5066","297",15,"1/2 oz Blue Curacao "], ["5066","368",15,"1/2 oz Sloe gin "], ["5066","186",60,"2 oz Lime juice "], ["5066","266",60,"2 oz Sour mix "], ["4095","54",60,"2 oz Chambord raspberry liqueur "], ["4095","174",30,"1 oz Blackberry brandy "], ["4095","179",30,"1 oz Cherry brandy "], ["4095","375",30,"1 oz Amaretto "], ["4095","312",30,"1 oz Absolut Citron "], ["4095","445",3.7,"1 splash Orange juice "], ["4095","261",3.7,"1 splash Pineapple juice "], ["4095","404",3.7,"1 splash Grapefruit juice "], ["3504","316",37.5,"1 1/4 oz Vodka "], ["3504","213",22.5,"3/4 oz Triple sec "], ["3504","416",3.7,"1 splash Grape juice "], ["3504","372",3.7,"1 splash Cranberry juice "], ["4075","316",37.5,"1 1/4 oz Vodka "], ["4075","297",22.5,"3/4 oz Blue Curacao "], ["4075","372",3.7,"1 splash Cranberry juice "], ["3168","316",30,"1 oz Vodka (Skyy) "], ["3168","368",22.5,"3/4 oz Sloe gin "], ["3168","297",22.5,"3/4 oz Blue Curacao "], ["4939","297",30,"1 oz Blue Curacao (Bols) "], ["4939","309",30,"1 oz Peach schnapps (De Kuyper) "], ["4939","214",30,"1 oz Light rum (Bacardi) "], ["4939","316",30,"1 oz Vodka (Ketel One) "], ["4939","82",30,"1 oz Grenadine (Rose's) "], ["4939","323",90,"3 oz Sprite or 7-Up "], ["4713","82",10,"1 cl Grenadine syrup "], ["4713","261",40,"4 cl Pineapple juice "], ["4713","445",40,"4 cl Orange juice "], ["4713","404",40,"4 cl Grapefruit juice "], ["1974","173",15,"1/2 oz Canadian whisky (Canadian Club) "], ["1974","480",15,"1/2 oz Bailey's Irish cream "], ["1974","377",60,"2 oz Chocolate milk "], ["1974","265",45,"1 1/2 oz Kahlua "], ["1974","443",45,"1 1/2 oz Soda water (Perrier) "], ["716","431",30,"1 oz Coffee brandy "], ["716","169",45,"1 1/2 oz Lime vodka "], ["716","105",15,"1/2 oz cream Sherry "], ["717","88",15,"1/2 oz Dry Vermouth "], ["717","376",45,"1 1/2 oz Gin "], ["717","351",7.5,"1 1/2 tsp Benedictine "], ["1320","387",45,"1 1/2 oz Dark rum "], ["1320","265",15,"1/2 oz Kahlua "], ["1320","41",30,"1 oz Light cream "], ["1320","20",0.63,"1/8 tsp grated Nutmeg "], ["4632","270",30,"1 oz Bailey's irish cream "], ["4632","146",30,"1 oz Midori melon liqueur "], ["4632","265",30,"1 oz Kahlua "], ["4309","270",10,"1 cl Bailey's irish cream "], ["4309","265",10,"1 cl Kahlua "], ["4309","146",10,"1 cl Midori melon liqueur "], ["2603","276",30,"1 oz Root beer schnapps "], ["2603","270",15,"1/2 oz Bailey's irish cream "], ["2603","22",30,"1 oz 7-Up "], ["2603","175",30,"1 oz Coca-Cola "], ["3020","304",30,"1 oz Rum "], ["3020","316",30,"1 oz Vodka "], ["3020","462",30,"1 oz Tequila "], ["3020","376",30,"1 oz Gin "], ["3020","213",30,"1 oz Triple sec "], ["3020","54",30,"1 oz Chambord raspberry liqueur "], ["3020","146",30,"1 oz Midori melon liqueur "], ["3020","36",30,"1 oz Malibu rum "], ["2738","392",360,"12 oz Beer "], ["2738","22",360,"12 oz 7-Up or Sprite "], ["5896","265",25,"2 1/2 cl Kahlua "], ["5896","475",25,"2 1/2 cl Sambuca "], ["5896","462",10,"1 cl Tequila "], ["2232","71",7.38,"1/4 shot Everclear "], ["2232","265",7.38,"1/4 shot Kahlua "], ["2232","445",7.38,"1/4 shot Orange juice "], ["2232","184",7.38,"1/4 shot Mango juice "], ["2321","85",37.5,"1 1/4 oz 151 proof rum "], ["2321","146",22.5,"3/4 oz Midori melon liqueur "], ["2321","445",120,"4 oz Orange juice "], ["2640","108",15,"1/2 oz J�germeister "], ["2640","145",15,"1/2 oz Rumple Minze "], ["2385","316",60,"2 oz Vodka "], ["2385","387",60,"2 oz Dark rum "], ["2385","303",30,"1 oz White wine "], ["2385","352",30,"1 oz Water "], ["2820","54",30,"1 oz Chambord raspberry liqueur "], ["2820","316",15,"1/2 oz Vodka "], ["2820","213",15,"1/2 oz Triple sec "], ["2820","211",30,"1 oz Sweet and sour "], ["2125","316",60,"2 oz Vodka "], ["2125","213",60,"2 oz Triple sec "], ["2125","237",60,"2 oz Raspberry liqueur "], ["3770","316",30,"1 oz Vodka "], ["3770","304",30,"1 oz Rum "], ["3770","462",30,"1 oz Tequila "], ["3770","376",30,"1 oz Gin "], ["3770","213",30,"1 oz Triple sec "], ["3770","211",45,"1 1/2 oz Sweet and sour "], ["3770","54",30,"1 oz Chambord raspberry liqueur "], ["4318","237",15,"1/2 oz Raspberry liqueur "], ["4318","333",15,"1/2 oz Creme de Cacao "], ["4318","480",15,"1/2 oz Irish cream "], ["4318","422",30,"1 oz Cream "], ["5617","488",20,"2/3 oz Raspberry vodka "], ["5617","372",10,"1/3 oz Cranberry juice "], ["5617","22",3.7,"1 splash 7-Up or sprite "], ["1230","83",90,"3 oz Ginger ale "], ["1230","54",30,"1 oz Chambord raspberry liqueur "], ["6116","339",90,"3 oz Zima "], ["6116","221",30,"1 oz Raspberry schnapps "], ["4824","97",45,"1 1/2 oz RedRum "], ["4824","297",30,"1 oz Blue Curacao "], ["4824","316",30,"1 oz Vodka "], ["4824","261",45,"1 1/2 oz Pineapple juice "], ["4824","445",45,"1 1/2 oz Orange juice "], ["4824","82",3.7,"1 splash Grenadine "], ["4590","488",30,"1 oz Raspberry vodka (Stoli) "], ["4590","213",30,"1 oz Triple sec "], ["4590","211",30,"1 oz Sweet and sour "], ["4590","82",15,"1/2 oz Grenadine "], ["2202","342",60,"2 oz Southern Comfort "], ["2202","7",60,"2 oz Fresca "], ["4446","342",45,"1 1/2 oz Southern Comfort "], ["4446","265",45,"1 1/2 oz Kahlua "], ["4446","126",90,"3 oz Half-and-half "], ["1779","375",37.5,"1 1/4 oz Amaretto "], ["1779","297",7.5,"1/4 oz Blue Curacao "], ["3287","182",37.5,"1 1/4 oz Crown Royal "], ["3287","375",22.5,"3/4 oz Amaretto "], ["3287","372",3.7,"1 splash Cranberry juice "], ["2068","145",22.5,"3/4 oz Rumple Minze "], ["2068","132",7.5,"1/4 oz Cinnamon schnapps "], ["724","342",30,"1 oz Southern Comfort "], ["724","316",30,"1 oz Vodka "], ["724","368",15,"1/2 oz Sloe gin "], ["724","213",15,"1/2 oz Triple sec "], ["724","174",15,"1/2 oz Blackberry brandy "], ["724","445",60,"2 oz Orange juice "], ["724","261",30,"1 oz Pineapple juice "], ["3808","444",29.5,"1 shot Hot Damn "], ["3808","21",29.5,"1 shot Whiskey "], ["3970","316",45,"1 1/2 oz Vodka "], ["3970","309",45,"1 1/2 oz Peach schnapps "], ["3970","342",45,"1 1/2 oz Southern Comfort "], ["3970","368",45,"1 1/2 oz Sloe gin "], ["3970","213",60,"2 oz Triple sec "], ["3970","445",60,"2 oz Orange juice "], ["3970","82",3.7,"1 splash Grenadine "], ["4785","213",15,"1/2 oz Triple sec "], ["4785","16",30,"1 oz hot and spicy V8 juice "], ["4785","316",15,"1/2 oz Vodka "], ["4785","85",15,"1/2 oz 151 proof rum "], ["5143","54",30,"1 oz Chambord raspberry liqueur "], ["5143","375",30,"1 oz Amaretto "], ["5143","182",30,"1 oz Crown Royal "], ["5143","372",60,"2 oz Cranberry juice "], ["5839","376",25,"2 1/2 cl Gin (Beefeater) "], ["5839","10",10,"1 cl Creme de Banane (Bols) "], ["5839","187",5,"1/2 cl Apricot liqueur (Marie Brizard Apry) "], ["5839","424",100,"10 cl sweetened Lemon juice "], ["5839","91",0.9,"1 dash Strawberry syrup (Monin) "], ["3386","226",30,"1 oz Bacardi Limon "], ["3386","462",30,"1 oz Tequila "], ["3386","372",90,"3 oz Cranberry juice "], ["4291","115",30,"1 oz Goldschlager "], ["4291","108",30,"1 oz J�germeister "], ["5254","251",40,"4 cl Watermelon schnapps "], ["5254","309",20,"2 cl Peach schnapps "], ["5254","316",20,"2 cl Vodka "], ["5254","323",100,"10 cl Sprite "], ["5254","82",0.9,"1 dash Grenadine "], ["5769","316",30,"1 oz Vodka "], ["5769","444",30,"1 oz Hot Damn "], ["4483","213",15,"1/2 oz Triple sec "], ["4483","249",30,"1 oz Bourbon "], ["4483","424",30,"1 oz Lemon juice "], ["4483","82",0.9,"1 dash Grenadine "], ["4234","85",37.5,"1 1/4 oz Bacardi 151 proof rum "], ["4234","412",15,"1/2 oz Creme de Noyaux "], ["4234","65",180,"6 oz Guava juice "], ["4234","82",3.7,"1 splash Grenadine "], ["3464","375",14.75,"1/2 shot Amaretto "], ["3464","342",14.75,"1/2 shot Southern Comfort "], ["3464","213",14.75,"1/2 shot Triple sec "], ["3464","82",3.7,"1 splash Grenadine "], ["3464","22",3.7,"1 splash 7-Up "], ["3464","211",29.5,"1 shot Sweet and sour "], ["4703","182",30,"1 oz Crown Royal "], ["4703","375",30,"1 oz Amaretto "], ["3098","182",37.5,"1 1/4 oz Crown Royal "], ["3098","375",15,"1/2 oz Amaretto "], ["3098","372",3.7,"1 splash Cranberry juice "], ["727","376",45,"1 1/2 oz Gin "], ["727","179",15,"1/2 oz Cherry brandy "], ["727","88",15,"1/2 oz Dry Vermouth "], ["2058","166",15,"1/2 oz Orange Curacao "], ["2058","132",22.5,"3/4 oz Cinnamon schnapps "], ["2058","316",15,"1/2 oz Vodka "], ["2058","372",180,"6 oz Cranberry juice "], ["1765","182",29.5,"1 shot Crown Royal "], ["1765","375",29.5,"1 shot Amaretto "], ["1765","372",29.5,"1 shot Cranberry juice "], ["4111","376",30,"3 cl Gin "], ["4111","425",10,"1 cl Pisang Ambon "], ["4111","323",70,"7 cl Sprite "], ["4111","186",10,"1 cl Lime juice "], ["4111","82",5,"1/2 cl Grenadine "], ["2516","198",30,"1 oz Aftershock "], ["2516","115",30,"1 oz Goldschlager "], ["2516","464",30,"1 oz Peppermint schnapps "], ["3405","214",45,"1 1/2 oz Light rum "], ["3405","316",15,"1/2 oz Vodka "], ["3405","231",15,"1/2 oz Apricot brandy "], ["3405","186",15,"1/2 oz Lime juice "], ["3405","82",5,"1 tsp Grenadine "], ["5735","256",30,"1 oz Vanilla schnapps "], ["5735","480",30,"1 oz Irish cream "], ["5866","316",30,"1 oz Vodka "], ["5866","304",30,"1 oz Rum "], ["5866","153",30,"1 oz Watermelon liqueur "], ["5866","261",150,"5 oz Pineapple juice "], ["5866","445",90,"3 oz Orange juice "], ["1797","145",30,"1 oz Rumple Minze "], ["1797","462",30,"1 oz Tequila "], ["1797","108",30,"1 oz J�germeister "], ["1797","1",30,"1 oz Firewater "], ["1039","265",20,"2 cl Kahlua "], ["1039","13",20,"2 cl Amarula Cream "], ["1039","359",20,"2 cl Cointreau "], ["3303","316",40,"4 cl Vodka "], ["3303","270",40,"4 cl Bailey's irish cream "], ["3303","21",20,"2 cl Whiskey "], ["3303","482",300,"30 cl Coffee "], ["2974","119",30,"3 cl Absolut Vodka "], ["2974","21",30,"3 cl Whiskey "], ["2974","270",30,"3 cl Bailey's irish cream "], ["2974","482",250,"25 cl strong, black Coffee "], ["2974","138",10,"2 tsp Brown sugar "], ["2046","212",30,"1 oz Absolut Peppar "], ["2046","78",30,"1 oz Absolut Mandrin "], ["2046","359",3.7,"1 splash Cointreau "], ["2046","372",3.7,"1 splash Cranberry juice "], ["2046","200",0.9,"1 dash Rose's sweetened lime juice "], ["5636","475",15,"1/2 oz Sambuca "], ["5636","445",15,"1/2 oz fresh Orange juice "], ["5087","304",30,"1 oz Rum (Mt. Gay Barbados Eclipse) "], ["5087","359",15,"1/2 oz Cointreau "], ["5087","424",15,"1/2 oz Lemon juice "], ["5087","445",15,"1/2 oz Orange juice "], ["5087","186",15,"1/2 oz Lime juice "], ["5087","473",0.9,"1 dash Creme de Cassis "], ["5087","292",0.9,"1 dash Raspberry syrup "], ["5827","78",15,"1/2 oz Absolut Mandrin "], ["5827","435",15,"1/2 oz Orange vodka (Smirnoff) "], ["5827","359",7.5,"1/4 oz Cointreau "], ["5827","146",7.5,"1/4 oz Midori melon liqueur "], ["5827","227",15,"1/2 oz Banana liqueur "], ["5827","237",7.5,"1/4 oz Raspberry liqueur "], ["5827","266",3.7,"1 splash Sour mix "], ["5827","261",3.7,"1 splash Pineapple juice "], ["733","198",10,"1/3 oz Aftershock "], ["733","62",10,"1/3 oz Yukon Jack "], ["733","445",10,"1/3 oz Orange juice "], ["3704","462",29.5,"1 shot Tequila (Cuervo) "], ["3704","444",29.5,"1 shot Hot Damn "], ["3704","173",29.5,"1 shot Canadian whisky (Crown Royal) "], ["734","275",45,"1 1/2 oz Cherry vodka "], ["734","276",45,"1 1/2 oz Root beer schnapps "], ["1506","316",30,"1 oz Vodka "], ["1506","333",15,"1/2 oz white Creme de Cacao "], ["1506","372",30,"1 oz Cranberry juice "], ["1822","68",20,"2 cl Green Chartreuse "], ["1822","280",10,"1 cl Fernet Branca "], ["1822","192",10,"1 cl Brandy "], ["736","203",30,"1 oz Rock and rye "], ["736","196",30,"1 oz White port "], ["736","88",7.5,"1 1/2 tsp Dry Vermouth "], ["3510","237",29.5,"1 shot Raspberry liqueur (Razzamatazz) "], ["3510","182",29.5,"1 shot Crown Royal "], ["3510","372",60,"2 oz Cranberry juice "], ["3638","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["3638","316",7.38,"1/4 shot Vodka "], ["3638","297",7.38,"1/4 shot Blue Curacao "], ["1870","316",29.5,"1 shot 160 proof Vodka "], ["1870","462",29.5,"1 shot Tequila "], ["1870","142",29.5,"1 shot White rum "], ["3065","462",10,"1/3 oz Tequila "], ["3065","122",10,"1/3 oz Jack Daniels "], ["3065","342",10,"1/3 oz Southern Comfort "], ["2241","159",20,"2/3 oz Tennessee whiskey (Jack Daniel's) "], ["2241","462",20,"2/3 oz Tequila "], ["2241","85",20,"2/3 oz 151 proof rum (Bacardi) "], ["1592","275",30,"1 oz Cherry vodka "], ["1592","213",15,"1/2 oz Triple sec "], ["1592","445",30,"1 oz Orange juice "], ["5124","316",60,"2 oz Vodka "], ["5124","256",30,"1 oz Vanilla schnapps "], ["5124","372",30,"1 oz Cranberry juice "], ["5124","186",3.7,"1 splash Lime juice "], ["4453","194",45,"1 1/2 oz Peach Vodka "], ["4453","297",30,"1 oz Blue Curacao "], ["4453","71",15,"1/2 oz Everclear "], ["4453","372",270,"9 oz Cranberry juice "], ["739","376",45,"1 1/2 oz Gin "], ["739","383",15,"1/2 oz Sweet Vermouth "], ["739","88",15,"1/2 oz Dry Vermouth "], ["739","351",5,"1 tsp Benedictine "], ["2946","375",10,"1/3 oz Amaretto "], ["2946","227",10,"1/3 oz Banana liqueur "], ["2946","464",10,"1/3 oz Peppermint schnapps "], ["5559","34",29.5,"1 shot blue Maui "], ["5559","457",29.5,"1 shot Cactus Juice liqueur "], ["5559","316",29.5,"1 shot Vodka "], ["1314","199",90,"3 oz Mountain Dew "], ["1314","316",30,"1 oz Vodka "], ["1928","122",15,"1/2 oz Jack Daniels "], ["1928","132",15,"1/2 oz Cinnamon schnapps "], ["1924","317",29.5,"1 shot Jose Cuervo "], ["1924","445",29.5,"1 shot Orange juice "], ["1924","379",29.5,"1 shot Tomato juice "], ["1924","51",0.9,"1 dash Salt "], ["2607","316",60,"2 oz Vodka "], ["2607","476",180,"6 oz Pepsi Cola "], ["2607","479",3.7,"1 splash Galliano "], ["3138","276",15,"1/2 oz Root beer schnapps "], ["3138","41",15,"1/2 oz Light cream "], ["742","42",45,"1 1/2 oz Irish whiskey "], ["742","383",22.5,"3/4 oz Sweet Vermouth "], ["742","433",0.9,"1 dash Orange bitters "], ["744","376",45,"1 1/2 oz Gin "], ["744","88",15,"1/2 oz Dry Vermouth "], ["744","179",15,"1/2 oz Cherry brandy "], ["2935","261",30,"3 cl Pineapple juice "], ["2935","292",10,"1-2 tsp Raspberry syrup "], ["2935","422",70,"6-7 cl Cream "], ["2288","462",30,"1 oz Tequila "], ["2288","88",15,"1/2 oz Dry Vermouth "], ["2288","383",15,"1/2 oz Sweet Vermouth "], ["2288","327",30,"1 oz Campari "], ["1580","376",60,"2 oz Gin "], ["1580","54",5,"1 tsp Chambord raspberry liqueur "], ["2736","462",30,"1 oz Tequila "], ["2736","297",30,"1 oz Blue Curacao "], ["2736","274",30,"1 oz Melon liqueur "], ["2736","45",30,"1 oz Lime liqueur (KeKe) "], ["2736","261",60,"2 oz Pineapple juice "], ["2736","445",60,"2 oz Orange juice "], ["2736","82",3.7,"Top with 1 splash Grenadine "], ["746","146",30,"1 oz Midori melon liqueur "], ["746","375",15,"1/2 oz Amaretto "], ["746","342",15,"1/2 oz Southern Comfort "], ["746","36",15,"1/2 oz Malibu rum "], ["746","266",3.7,"1 splash Sour mix "], ["746","261",3.7,"1 splash Pineapple juice "], ["3683","182",15,"1/2 oz Crown Royal "], ["3683","114",15,"1/2 oz Butterscotch schnapps (Buttershots) "], ["747","182",22.5,"3/4 oz Crown Royal "], ["747","375",22.5,"3/4 oz Amaretto "], ["747","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["747","372",3.7,"1 splash Cranberry juice "], ["747","483",3.7,"1 splash Pineapple "], ["2263","182",45,"1 1/2 oz Crown Royal "], ["2263","309",30,"1 oz Peach schnapps "], ["2263","54",15,"1/2 oz Chambord raspberry liqueur "], ["2263","372",30,"1 oz Cranberry juice "], ["750","182",45,"1 1/2 oz Crown Royal "], ["750","27",15,"1/2 oz Blackcurrant cordial "], ["750","297",7.5,"1/4 oz Blue Curacao "], ["5122","182",15,"1/2 oz Crown Royal "], ["5122","309",15,"1/2 oz Peach schnapps "], ["5844","132",22.5,"3/4 oz Cinnamon schnapps "], ["5844","180",5,"1 tsp Candy, Pop Rocks, any flavor "], ["4556","376",45,"1 1/2 oz Gin "], ["4556","179",15,"1/2 oz Cherry brandy "], ["4556","383",5,"1 tsp Sweet Vermouth "], ["6089","226",15,"1/2 oz Bacardi Limon "], ["6089","146",15,"1/2 oz Midori melon liqueur "], ["6089","297",15,"1/2 oz Blue Curacao "], ["6089","221",15,"1/2 oz Raspberry schnapps "], ["6089","372",90,"3 oz Cranberry juice "], ["6089","211",3.7,"1 splash Sweet and sour "], ["4633","276",30,"1 oz Root beer schnapps "], ["4633","480",30,"1 oz Irish cream (Baileys's) "], ["3119","304",120,"4 oz Rum (Bacardi) "], ["3119","175",240,"8 oz Coca-Cola "], ["759","28",7.5,"1 1/2 tsp Dubonnet Rouge "], ["759","214",45,"1 1/2 oz Light rum "], ["759","424",5,"1 tsp Lemon juice "], ["5294","174",26.25,"7/8 oz Blackberry brandy "], ["5294","227",26.25,"7/8 oz Banana liqueur "], ["5294","319",15,"1/2 oz Black rum "], ["5294","85",15,"1/2 oz 151 proof rum "], ["5294","82",18.75,"5/8 oz Grenadine "], ["5294","186",30,"1 oz Lime juice "], ["1394","387",30,"1 oz Dark rum (Myer's) "], ["1394","214",30,"1 oz Light rum (Bacardi) "], ["1394","174",15,"1/2 oz Blackberry brandy "], ["1394","227",7.5,"1/4 oz Banana liqueur "], ["1394","82",3.7,"1 splash Grenadine "], ["1394","200",3.7,"1 splash Rose's sweetened lime juice "], ["2848","36",45,"1 1/2 oz Malibu rum "], ["2848","174",30,"1 oz Blackberry brandy "], ["2848","445",120,"3-4 oz Orange juice "], ["2848","261",120,"3-4 oz Pineapple juice "], ["2848","372",120,"3-4 oz Cranberry juice "], ["3349","214",45,"1 1/2 oz Light rum "], ["3349","445",150,"5 oz Orange juice "], ["3335","70",70,"2 1/3 oz Kiwi-Strawberry Snapple "], ["3335","304",10,"1/3 oz Rum "], ["770","316",30,"1 oz Vodka (Absolut) "], ["770","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["5452","304",60,"2 oz Rum "], ["5452","213",45,"1 1/2 oz Triple sec "], ["5452","198",0.9,"1 dash Aftershock "], ["5452","130",120,"4 oz Club soda "], ["4247","145",30,"1 oz Rumple Minze "], ["4247","198",30,"1 oz Aftershock "], ["1598","316",22.5,"3/4 oz Vodka "], ["1598","376",22.5,"3/4 oz Gin "], ["1598","333",22.5,"3/4 oz white Creme de Cacao "], ["1554","316",14.75,"1/2 shot Vodka "], ["1554","309",14.75,"1/2 shot Peach schnapps "], ["1554","82",0.9,"1 dash Grenadine "], ["5346","392",360,"12 oz Beer "], ["5346","316",30,"1 oz Vodka "], ["3655","316",29.5,"1 shot Vodka "], ["3655","480",29.5,"1 shot Irish cream "], ["3655","240",22.13,"3/4 shot Coffee liqueur "], ["3655","375",22.13,"3/4 shot Amaretto "], ["1767","316",29.5,"1 shot Vodka "], ["1767","265",29.5,"1 shot Kahlua "], ["1767","480",29.5,"1 shot Irish cream "], ["1767","167",29.5,"1 shot Frangelico "], ["1767","422",30,"Top off 1 oz Cream or Milk "], ["1284","240",30,"1 oz Coffee liqueur (Kaluha) "], ["1284","480",30,"1 oz Irish cream (Bailey's) "], ["1284","353",30,"1 oz Orange liqueur (Grand Marnier) "], ["1284","217",30,"1 oz Hazelnut liqueur (Frangelico) "], ["1284","316",30,"1 oz Vodka (Stoli) "], ["5507","316",14.75,"1/2 shot Vodka "], ["5507","15",14.75,"1/2 shot Green Creme de Menthe "], ["1110","316",60,"2 oz Vodka "], ["1110","213",60,"2 oz Triple sec "], ["1110","266",120,"4 oz Sour mix "], ["1110","82",0.9,"1 dash Grenadine "], ["5321","122",15,"1/2 oz Jack Daniels "], ["5321","243",15,"1/2 oz Blueberry schnapps "], ["5521","146",30,"1 oz Midori melon liqueur "], ["5521","36",30,"1 oz Malibu rum "], ["5521","309",30,"1 oz Peach schnapps "], ["5521","445",120,"3 - 4 oz Orange juice "], ["5521","82",10,"2 tsp Grenadine "], ["5632","142",30,"1 oz White rum "], ["5632","284",30,"1 oz Maple syrup "], ["5529","78",22.5,"3/4 oz Absolut Mandrin "], ["5529","224",22.5,"3/4 oz Godiva liqueur "], ["5229","78",120,"4 oz Absolut Mandrin "], ["5229","83",210,"7 oz Ginger ale "], ["5229","372",90,"3 oz Cranberry juice "], ["5229","82",3.7,"1 splash Grenadine "], ["5229","200",3.7,"1 splash Rose's sweetened lime juice "], ["1915","226",10,"1/3 oz Bacardi Limon "], ["1915","146",10,"1/3 oz Midori melon liqueur "], ["1915","186",10,"1/3 oz Lime juice "], ["4611","428",480,"16 oz Genny 12 horse Ale "], ["4611","81",480,"16 oz Mad Dog 20/20 (any flavor) "], ["2938","408",3.75,"1/8 oz Vermouth "], ["2938","212",60,"2 oz Absolut Peppar "], ["775","342",30,"1 oz Southern Comfort "], ["775","61",15,"1/2 oz Vanilla liqueur "], ["775","309",7.5,"1/4 oz Peach schnapps "], ["1044","404",150,"5 oz Grapefruit juice "], ["1044","376",45,"1 1/2 oz Gin "], ["1044","51",1.25,"1/4 tsp Salt "], ["776","316",60,"2 oz Vodka (Absolut) "], ["776","475",60,"2 oz Sambuca "], ["1781","274",15,"1/2 oz Melon liqueur "], ["1781","297",15,"1/2 oz Blue Curacao "], ["1781","261",120,"4 oz Pineapple juice "], ["1781","316",7.5,"1/4 oz Vodka (Smirnoff) "], ["1781","427",180,"6 oz Ice "], ["2065","105",60,"2 oz cream Sherry "], ["2065","327",22.5,"3/4 oz Campari "], ["2065","366",0.9,"1 dash Angostura bitters "], ["777","387",45,"1 1/2 oz Dark rum "], ["777","383",15,"1/2 oz Sweet Vermouth "], ["777","179",15,"1/2 oz Cherry brandy "], ["777","424",15,"1/2 oz Lemon juice "], ["777","477",2.5,"1/2 tsp superfine Sugar "], ["779","383",45,"1 1/2 oz Sweet Vermouth "], ["779","376",45,"1 1/2 oz Gin "], ["779","68",5,"1 tsp Green Chartreuse "], ["1231","387",30,"1 oz Dark rum "], ["1231","349",30,"1 oz A�ejo rum "], ["1231","372",90,"3 oz Cranberry juice "], ["1231","445",30,"1 oz Orange juice "], ["1231","106",0.9,"1 dash Bitters "], ["1366","238",180,"6 oz Aliz� "], ["1366","213",60,"2 oz Triple sec "], ["780","378",30,"3 cl Scotch "], ["780","3",30,"3 cl Cognac "], ["780","330",30,"3 cl Port "], ["1235","448",60,"2 oz Apple brandy "], ["1235","231",2.5,"1/2 tsp Apricot brandy "], ["1235","332",2.5,"1/2 tsp Pernod "], ["6114","312",15,"1/2 oz Absolut Citron "], ["6114","78",15,"1/2 oz Absolut Mandrin "], ["6114","359",7.5,"1/4 oz Cointreau "], ["6114","445",30,"1 oz Orange juice (fresh) "], ["6114","443",15,"1/2 oz Soda water "], ["6114","424",3.7,"1 splash Lemon juice (fresh) "], ["2040","119",420,"12-14 oz Absolut Vodka "], ["2040","142",420,"12-14 oz White rum "], ["2040","376",240,"6-8 oz dry Gin (London's) "], ["2040","372",180,"6 oz Cranberry juice "], ["2741","316",20,"2 cl Vodka (Wyborowa) "], ["2741","140",20,"2 cl Cranberry liqueur (Chymos) "], ["2741","424",20,"2 cl Lemon juice "], ["2741","82",10,"1 cl Grenadine "], ["2741","477",10,"1 cl Sugar "], ["4449","342",45,"1 1/2 oz Southern Comfort "], ["4449","372",45,"1 1/2 oz Cranberry juice "], ["4449","186",30,"1 oz Lime juice "], ["2359","251",180,"6 oz Watermelon schnapps "], ["2359","380",360,"12 oz Squirt "], ["2538","475",15,"1/2 oz Sambuca "], ["2538","265",7.5,"1/4 oz Kahlua "], ["2538","270",7.5,"1/4 oz Bailey's irish cream "], ["2538","114",3.75,"1/8 oz Butterscotch schnapps "], ["2538","108",3.75,"1/8 oz J�germeister "], ["2347","192",30,"1 oz Brandy "], ["2347","375",30,"1 oz Amaretto "], ["2347","41",30,"1 oz Light cream "], ["2676","36",22.5,"3/4 oz Malibu rum "], ["2676","146",22.5,"3/4 oz Midori melon liqueur "], ["2676","261",30,"1 oz Pineapple juice "], ["2676","126",15,"1/2 oz Half-and-half "], ["786","316",22.5,"3/4 oz Vodka (Stoli) "], ["786","146",22.5,"3/4 oz Midori melon liqueur "], ["786","211",3.7,"1 splash Sweet and sour "], ["786","22",3.7,"1 splash 7-Up "], ["2695","146",15,"1/2 oz Midori melon liqueur "], ["2695","145",15,"1/2 oz Rumple Minze "], ["1530","378",60,"2 oz Scotch "], ["1530","352",150,"5 oz Water "], ["5500","378",45,"1 1/2 oz Scotch "], ["5500","375",30,"1 oz Amaretto "], ["5500","213",30,"1 oz Triple sec "], ["5500","424",30,"1 oz Lemon juice "], ["5500","445",60,"2 oz Orange juice "], ["5500","82",5,"1 tsp Grenadine "], ["1417","115",45,"1 1/2 oz Goldschlager "], ["1417","297",7.5,"1/4 oz Blue Curacao "], ["3630","375",45,"1 1/2 oz Amaretto "], ["3630","213",15,"1/2 oz Triple sec "], ["3630","146",30,"1 oz Midori melon liqueur "], ["3630","36",30,"1 oz Malibu rum "], ["3630","322",30,"1 oz Peachtree schnapps "], ["3630","130",60,"2 oz Club soda "], ["3905","108",45,"1 - 1 1/2 oz J�germeister "], ["3905","115",45,"1 - 1 1/2 oz Goldschlager "], ["1762","270",30,"1 oz Bailey's irish cream "], ["1762","213",30,"1 oz Triple sec or other Orange Liquer "], ["1762","3",150,"0.5 oz Cognac "], ["1715","316",30,"1 oz Vodka "], ["1715","270",45,"1 1/2 oz Bailey's irish cream "], ["1715","265",15,"1/2 oz Kahlua "], ["4028","375",29.5,"1 shot Amaretto "], ["4028","270",29.5,"1 shot Bailey's irish cream "], ["4028","316",29.5,"1 shot Vodka "], ["2005","445",90,"3 oz Orange juice "], ["2005","316",60,"2 oz Vodka "], ["2005","461",90,"3 oz Apple juice "], ["803","316",45,"1 1/2 oz Vodka "], ["803","372",120,"4 oz Cranberry juice "], ["803","404",30,"1 oz Grapefruit juice "], ["4916","146",15,"1/2 oz Midori melon liqueur "], ["4916","36",15,"1/2 oz Malibu rum "], ["4916","297",15,"1/2 oz Blue Curacao "], ["4916","211",15,"1/2 oz Sweet and sour "], ["4916","445",15,"1/2 oz Orange juice "], ["4916","323",15,"1/2 oz Sprite "], ["804","445",30,"1 oz Orange juice "], ["804","114",15,"1/2 oz Butterscotch schnapps "], ["804","388",15,"1/2 oz Lemon-lime soda "], ["2708","115",22.5,"3/4 oz Goldschlager "], ["2708","82",7.5,"1/4 oz Grenadine "], ["807","36",30,"1 oz Malibu rum "], ["807","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["807","214",30,"1 oz Light rum "], ["807","445",75,"2 1/2 oz Orange juice "], ["807","261",75,"2 1/2 oz Pineapple juice "], ["807","82",22.5,"3/4 oz Grenadine "], ["810","375",22.5,"3/4 oz Amaretto Di Saronno "], ["810","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["810","261",60,"2 oz Pineapple juice "], ["4868","462",30,"1 oz Tequila (Herradura) "], ["4868","213",30,"1 oz Triple sec (Bandolero) "], ["4868","291",30,"1 oz Cherry juice "], ["4868","399",15,"1/2 oz Margarita mix "], ["4868","372",15,"1/2 oz Cranberry juice "], ["4990","108",30,"1 oz J�germeister "], ["4990","146",15,"1/2 oz Midori melon liqueur "], ["4990","237",15,"1/2 oz Raspberry liqueur, black "], ["4990","261",15,"1/2 oz Pineapple juice "], ["4990","372",7.5,"1/4 oz Cranberry juice "], ["1503","316",30,"1 oz Vodka "], ["1503","146",15,"1/2 oz Midori melon liqueur "], ["1503","54",15,"1/2 oz Chambord raspberry liqueur "], ["1503","261",60,"2 oz Pineapple juice "], ["1503","372",128.5,"1/2 cup Cranberry juice "], ["2333","316",15,"1/2 oz Vodka "], ["2333","146",15,"1/2 oz Midori melon liqueur "], ["2333","54",15,"1/2 oz Chambord raspberry liqueur "], ["2333","261",30,"3 cl Pineapple juice "], ["2405","312",37.5,"1 1/4 oz Absolut Citron "], ["2405","165",30,"1 oz Strawberry schnapps "], ["2405","445",180,"5-6 oz Orange juice "], ["2405","422",7.5,"1/4 oz Cream "], ["5859","309",30,"1 oz Peach schnapps "], ["5859","54",30,"1 oz Chambord raspberry liqueur "], ["5859","146",30,"1 oz Midori melon liqueur "], ["4358","182",15,"1/2 oz Crown Royal "], ["4358","375",15,"1/2 oz Amaretto "], ["4358","368",15,"1/2 oz Sloe gin "], ["4358","445",22.5,"3/4 oz Orange juice "], ["4358","261",22.5,"3/4 oz Pineapple juice (optional) "], ["4315","312",30,"1 oz Absolut Citron "], ["4315","146",15,"1/2 oz Midori melon liqueur "], ["4315","54",15,"1/2 oz Chambord raspberry liqueur "], ["4315","445",15,"1/2 oz Orange juice "], ["4315","261",15,"1/2 oz Pineapple juice "], ["4315","211",3.7,"1 splash Sweet and sour "], ["5919","127",300,"10 oz Mango juice (Fresh Samantha) "], ["5919","316",90,"3 oz Vodka "], ["5919","213",90,"3 oz Triple sec "], ["4490","297",22.5,"3/4 oz Blue Curacao "], ["4490","227",22.5,"3/4 oz Banana liqueur "], ["4490","266",22.5,"3/4 oz Sour mix "], ["4490","326",22.5,"3/4 oz Orange "], ["5526","42",45,"1 1/2 oz Irish whiskey (Jameson's) "], ["5526","265",15,"1/2 oz Kahlua "], ["5526","270",15,"1/2 oz Bailey's irish cream "], ["814","85",60,"2 oz Bacardi 151 proof rum "], ["814","352",360,"12 oz Water "], ["3626","387",45,"1 1/2 oz Dark rum (Myers) "], ["3626","445",90,"3 oz Orange juice "], ["3626","266",15,"1/2 oz Sour mix "], ["3626","82",22.5,"3/4 oz Grenadine "], ["3626","427",90,"3 oz Ice "], ["2818","316",180,"6 oz Vodka "], ["2818","2",180,"6 oz Lemonade "], ["2818","82",90,"3 oz Grenadine "], ["1389","387",150,"1.5 oz Dark rum "], ["1389","186",750,"0.25 oz Lime juice "], ["1389","424",750,"0.25 oz Lemon juice "], ["1389","82",750,"0.25 oz Grenadine "], ["1389","443",3.7,"1 splash Soda water "], ["4458","243",45,"1 1/2 oz Blueberry schnapps "], ["4458","22",3.7,"1 splash 7-Up "], ["4458","82",5,"1 tsp Grenadine "], ["4458","416",180,"6 oz Grape juice "], ["4458","316",30,"1 oz Vodka (optional) "], ["3514","359",30,"1 oz Cointreau "], ["3514","421",30,"1 oz Cinzano Orancio "], ["1353","133",40,"4 cl Aquavit, Simer's "], ["1353","255",40,"4 cl St. Hallvard "], ["1040","15",14.75,"1/2 shot Green Creme de Menthe "], ["1040","270",14.75,"1/2 shot Bailey's irish cream "], ["3407","387",45,"1 1/2 oz Dark rum (Myer's) "], ["3407","36",45,"1 1/2 oz Malibu rum "], ["3407","309",7.5,"1/4 oz Peach schnapps "], ["3407","136",7.5,"1/4 oz Blackberry schnapps "], ["3407","445",15,"1/2 oz Orange juice "], ["3407","372",15,"1/2 oz Cranberry juice "], ["3407","261",7.5,"1/4 oz Pineapple juice "], ["2929","83",200,"20 cl Ginger ale "], ["2929","82",30,"3 cl Grenadine syrup "], ["2253","146",14.75,"1/2 shot Midori melon liqueur "], ["2253","265",14.75,"1/2 shot Kahlua "], ["1897","316",45,"1 1/2 oz Vodka "], ["1897","82",15,"1/2 oz Grenadine "], ["1897","445",60,"2 oz Orange juice "], ["3737","105",30,"1 oz dry Sherry "], ["3737","378",30,"1 oz Scotch "], ["3737","424",5,"1 tsp Lemon juice "], ["3737","445",5,"1 tsp Orange juice "], ["3737","236",2.5,"1/2 tsp Powdered sugar "], ["2725","105",30,"1 oz dry Sherry "], ["2725","378",30,"1 oz Scotch "], ["2725","424",5,"1 tsp Lemon juice "], ["2725","445",5,"1 tsp Orange juice "], ["2725","236",2.5,"1/2 tsp Powdered sugar "], ["912","132",30,"1 oz Cinnamon schnapps (Aftershock) "], ["912","310",257,"1 cup Hot chocolate "], ["2801","83",15,"1/2 oz Ginger ale "], ["2801","131",15,"1/2 oz Tabasco sauce "], ["3021","115",30,"1 oz Goldschlager "], ["3021","272",30,"1 oz Razzmatazz "], ["3021","261",3.7,"1 splash Pineapple juice "], ["3021","211",3.7,"1 splash Sweet and sour "], ["3021","22",3.7,"1 splash 7-Up "], ["2226","342",15,"1/2 oz Southern Comfort "], ["2226","322",15,"1/2 oz Peachtree schnapps "], ["2226","324",22.5,"3/4 oz Apple cider "], ["4061","132",90,"3 oz Cinnamon schnapps "], ["4061","316",60,"2 oz Vodka "], ["4061","219",30,"1 oz Carbonated water "], ["4474","316",45,"1 1/2 oz Vodka (Stolichnaya) "], ["4474","404",120,"4 oz Grapefruit juice "], ["4474","213",15,"1/2 oz Triple sec "], ["6034","375",15,"1/2 oz Amaretto "], ["6034","342",15,"1/2 oz Southern Comfort "], ["1334","205",30,"1 oz White Creme de Menthe "], ["1334","316",30,"1 oz Vodka "], ["1334","142",30,"1 oz White rum "], ["5516","21",60,"2 oz Whiskey "], ["5516","376",60,"2 oz Gin "], ["5516","383",15,"1/2 oz Sweet Vermouth "], ["5516","106",0.9,"1 dash Bitters "], ["5516","258",0.9,"1 dash Worcestershire sauce "], ["5131","3",60,"2 oz Cognac "], ["5131","359",15,"1/2 oz Cointreau "], ["5131","424",30,"1 oz Lemon juice "], ["821","214",45,"1 1/2 oz Light rum "], ["821","124",15,"1/2 oz Anisette "], ["821","424",15,"1/2 oz Lemon juice "], ["821","82",2.5,"1/2 tsp Grenadine "], ["823","309",15,"1/2 oz Peach schnapps "], ["823","316",45,"1 1/2 oz Vodka (Absolut) "], ["4205","316",45,"1 1/2 oz Vodka "], ["4205","327",45,"1 1/2 oz Campari "], ["4205","445",30,"1 oz Orange juice "], ["5533","475",30,"1 oz Sambuca "], ["5533","82",7.5,"1/4 oz Grenadine "], ["5533","445",7.5,"1/4 oz Orange juice "], ["3710","376",257,"1 cup Gin "], ["3710","2",360,"12 oz Lemonade concentrate "], ["3710","392",720,"24 oz Beer "], ["3710","352",720,"24 oz Water "], ["1354","376",30,"1 oz Gin "], ["1354","392",90,"3 oz Beer "], ["1354","82",15,"1/2 oz Grenadine "], ["1354","22",15,"1/2 oz 7-Up "], ["5857","488",15,"1/2 oz Raspberry vodka (Stoli) "], ["5857","194",15,"1/2 oz Peach Vodka (Stoli) "], ["5857","391",15,"1/2 oz Vanilla vodka (Stoli) "], ["5857","2",120,"4 oz Lemonade "], ["5857","82",15,"1/2 oz Grenadine "], ["5089","259",30,"3 cl Milk (2.7-3.8% ) "], ["5089","270",20,"2 cl Bailey's irish cream "], ["5089","265",10,"1 cl Kahlua "], ["5089","375",2.5,"1/2 tsp Amaretto "], ["829","192",22.5,"3/4 oz Brandy "], ["829","304",22.5,"3/4 oz Rum "], ["829","213",5,"1 tsp Triple sec "], ["829","82",5,"1 tsp Grenadine "], ["829","424",5,"1 tsp Lemon juice "], ["830","3",60,"2 oz Cognac "], ["830","359",15,"1/2 oz Cointreau "], ["830","207",15,"1/2 oz Yellow Chartreuse "], ["830","366",0.9,"1 dash Angostura bitters "], ["3010","387",45,"1 1/2 oz Dark rum "], ["3010","186",15,"1/2 oz Lime juice "], ["3010","424",5,"1 tsp Lemon juice "], ["3010","404",60,"2 oz Grapefruit juice "], ["3010","477",5,"1 tsp superfine Sugar "], ["2895","316",30,"1 oz Vodka "], ["2895","122",30,"1 oz Jack Daniels "], ["2895","2",30,"1 oz Lemonade "], ["2895","392",30,"1 oz Beer (Red Dog) "], ["1487","265",10,"1/3 oz Kahlua "], ["1487","167",10,"1/3 oz Frangelico "], ["1487","270",10,"1/3 oz Bailey's irish cream "], ["3561","146",60,"2 oz Midori melon liqueur "], ["3561","372",180,"6 oz Cranberry juice "], ["2782","240",9.83,"1/3 shot Coffee liqueur (kahlua) "], ["2782","480",9.83,"1/3 shot Irish cream (bailey's) "], ["2782","249",9.83,"1/3 shot Bourbon (Old Grandad) "], ["2950","316",15,"1/2 oz Vodka (Absolut) "], ["2950","85",15,"1/2 oz Bacardi 151 proof rum "], ["2950","202",15,"1/2 oz Gold tequila (Cuervo) "], ["2950","376",15,"1/2 oz Gin "], ["2950","71",15,"1/2 oz Everclear "], ["2950","297",15,"1/2 oz Blue Curacao "], ["2950","261",15,"1/2 oz Pineapple juice "], ["2458","315",120,"4 oz Grand Marnier "], ["2458","166",120,"4 oz Orange Curacao "], ["2458","82",0.9,"1 dash Grenadine "], ["2458","424",30,"1 oz Lemon juice "], ["6037","82",29.5,"1 shot Grenadine "], ["6037","68",29.5,"1 shot Green Chartreuse "], ["6037","462",29.5,"1 shot silver Tequila "], ["4503","335",96,"3 1/5 oz Spiced rum (Captain Morgan's) "], ["4503","331",600,"20 oz Surge "], ["3180","114",45,"1 1/2 oz Butterscotch schnapps "], ["3180","270",60,"2 oz Bailey's irish cream "], ["3180","126",120,"3-4 oz Half-and-half "], ["1608","316",60,"2 oz Vodka "], ["1608","274",30,"1 oz Melon liqueur "], ["1608","126",30,"1 oz Half-and-half "], ["1502","270",150,"0.5 oz Bailey's irish cream "], ["1502","114",150,"0.5 oz Butterscotch schnapps "], ["2486","480",10,"1/3 oz Irish cream (Bailey's) "], ["2486","114",10,"1/3 oz Butterscotch schnapps "], ["2486","265",10,"1/3 oz Kahlua (Coffee) "], ["2240","368",90,"3 oz Sloe gin "], ["2240","342",90,"3 oz Southern Comfort "], ["2240","445",90,"3 oz Orange juice "], ["2240","316",90,"3 oz Vodka "], ["2299","270",30,"1 oz Bailey's irish cream "], ["2299","475",30,"1 oz Sambuca "], ["833","368",60,"2 oz Sloe gin "], ["833","88",1.25,"1/4 tsp Dry Vermouth "], ["833","433",0.9,"1 dash Orange bitters "], ["835","368",60,"2 oz Sloe gin "], ["835","106",0.9,"1 dash Bitters "], ["840","445",90,"3 oz Orange juice "], ["840","372",90,"3 oz Cranberry juice "], ["840","323",90,"3 oz Sprite "], ["840","335",120,"4 oz Spiced rum (Capt. Morgan) "], ["5513","192",22.5,"3/4 oz Brandy "], ["5513","213",1.25,"1/4 tsp Triple sec "], ["5513","330",22.5,"3/4 oz Port "], ["5513","261",22.5,"3/4 oz Pineapple juice "], ["5513","82",1.25,"1/4 tsp Grenadine "], ["6130","97",29.5,"1 shot RedRum "], ["6130","479",14.75,"1/2 shot Galliano "], ["6130","368",14.75,"1/2 shot Sloe gin "], ["6130","445",180,"6 oz Orange juice "], ["842","85",29.5,"1 shot 151 proof rum "], ["842","203",360,"12 oz Rock and rye "], ["5224","142",60,"2 oz White rum (Bacardi) "], ["5224","297",45,"1 1/2 oz Blue Curacao "], ["5224","272",30,"1 oz Razzmatazz "], ["5224","261",120,"4 oz Pineapple juice "], ["1383","316",30,"1 oz Vodka "], ["1383","213",22.5,"3/4 oz Triple sec "], ["1383","82",22.5,"3/4 oz Grenadine "], ["3230","160",15,"1/2 oz Grape schnapps "], ["3230","274",15,"1/2 oz Melon liqueur "], ["1925","375",30,"1 oz Amaretto "], ["1925","342",30,"1 oz Southern Comfort "], ["1925","174",30,"1 oz Blackberry brandy "], ["1925","266",15,"1/2 oz Sour mix "], ["2085","88",15,"1/2 oz Dry Vermouth "], ["2085","383",15,"1/2 oz Sweet Vermouth "], ["2085","376",30,"1 oz Gin "], ["2085","445",1.25,"1/4 tsp Orange juice "], ["2085","106",0.9,"1 dash Bitters "], ["1910","376",300,"3/10 oz dry Gin "], ["1910","346",300,"3/10 oz tropical Fruit juice "], ["1910","297",300,"2/10 oz Blue Curacao "], ["1910","359",300,"1/10 oz Cointreau "], ["1910","14",300,"1/10 oz Peach nectar "], ["845","265",10,"1/3 oz Kahlua "], ["845","270",10,"1/3 oz Bailey's irish cream "], ["845","115",10,"1/3 oz Goldschlager "], ["846","376",30,"1 oz Gin "], ["846","82",30,"1 oz Grenadine "], ["846","424",2.5,"1/2 tsp Lemon juice "], ["3055","316",29.5,"1 shot Vodka "], ["3055","265",29.5,"1 shot Kahlua "], ["3055","175",0.9,"1 dash Coca-Cola "], ["3055","442",0.9,"1 dash Guinness stout "], ["1543","375",22.13,"3/4 shot Amaretto "], ["1543","22",7.38,"1/4 shot 7-Up or Sprite "], ["1782","372",960,"32 oz Cranberry juice cocktail "], ["1782","83",840,"28 oz Ginger ale "], ["1782","2",360,"12 oz Lemonade "], ["1782","249",128.5,"1-1/2 cup Bourbon "], ["3802","316",45,"1 1/2 oz Vodka "], ["3802","213",45,"1 1/2 oz Triple sec "], ["3802","445",60,"2 oz Orange juice "], ["3802","372",60,"2 oz Cranberry juice "], ["3802","179",15,"1/2 oz Cherry brandy "], ["2606","34",45,"1 1/2 oz blue Maui "], ["2606","316",15,"1/2 oz Vodka "], ["2606","261",240,"8 oz Pineapple juice "], ["1416","259",60,"2 oz Milk "], ["1416","372",60,"2 oz Cranberry juice "], ["1416","309",120,"3-4 oz Peach schnapps or crantasha "], ["2837","265",30,"1 oz Kahlua "], ["2837","450",30,"1 oz Rye whiskey "], ["2837","259",120,"4 oz Milk "], ["1560","122",30,"1 oz Jack Daniels "], ["1560","145",30,"1 oz Rumple Minze "], ["3759","464",15,"1/2 oz Peppermint schnapps "], ["3759","232",15,"1/2 oz Wild Turkey "], ["3895","192",45,"1 1/2 oz Brandy "], ["3895","124",45,"1 1/2 oz Anisette "], ["4762","431",45,"1 1/2 oz Coffee brandy "], ["4762","41",30,"1 oz Light cream "], ["2457","316",22.5,"3/4 oz Vodka or rum "], ["2457","309",22.5,"3/4 oz Peach schnapps "], ["2457","213",22.5,"3/4 oz Triple sec "], ["2457","261",90,"3 oz Pineapple juice "], ["2457","445",90,"3 oz Orange juice "], ["848","316",22.5,"3/4 oz Vodka or light rum "], ["848","309",22.5,"3/4 oz Peach schnapps "], ["848","213",22.5,"3/4 oz Triple sec "], ["848","261",90,"3 oz Pineapple juice "], ["848","445",90,"3 oz Orange juice "], ["3220","214",45,"1 1/2 oz Light rum "], ["3220","231",15,"1/2 oz Apricot brandy "], ["3220","424",15,"1/2 oz Lemon juice "], ["3220","477",2.5,"1/2 tsp superfine Sugar "], ["3220","82",5,"1 tsp Grenadine "], ["1964","214",45,"1 1/2 oz Light rum "], ["1964","231",15,"1/2 oz Apricot brandy "], ["1964","186",10,"2 tsp Lime juice "], ["1964","424",10,"2 tsp Lemon juice "], ["1964","477",2.5,"1/2 tsp superfine Sugar "], ["849","316",90,"3 oz Vodka "], ["849","199",150,"5 oz Mountain Dew "], ["849","416",60,"2 oz Grape juice "], ["2438","182",22.5,"3/4 oz Crown Royal "], ["2438","274",7.5,"1/4 oz Melon liqueur "], ["2438","266",15,"1/2 oz Sour mix "], ["1833","88",22.5,"3/4 oz Dry Vermouth "], ["1833","249",22.5,"3/4 oz Bourbon "], ["1833","28",7.5,"1 1/2 tsp Dubonnet Rouge "], ["1833","445",7.5,"1 1/2 tsp Orange juice "], ["1494","514",20,"2 cl Sour apple liqueur "], ["1494","316",20,"2 cl Vodka "], ["1494","186",20,"2 cl Lime juice "], ["1494","357",20,"2 cl Sugar syrup "], ["853","404",60,"2 oz Grapefruit juice "], ["853","186",15,"1/2 oz Lime juice "], ["853","71",45,"1 1/2 oz Everclear "], ["5096","226",15,"1/2 oz Bacardi Limon "], ["5096","500",15,"1/2 oz Cheri Beri Pucker "], ["5096","208",15,"1/2 oz Grape Pucker "], ["5096","357",7.5,"1/4 oz Sugar syrup "], ["5096","266",15,"1/2 oz Sour mix "], ["5096","130",3.7,"1 splash Club soda "], ["6050","15",15,"1/2 oz Green Creme de Menthe "], ["6050","124",15,"1/2 oz Anisette "], ["5725","342",7.5,"1/4 oz Southern Comfort "], ["5725","375",7.5,"1/4 oz Amaretto "], ["5725","309",7.5,"1/4 oz Peach schnapps "], ["5725","213",7.5,"1/4 oz Triple sec "], ["5725","372",3.7,"1 splash Cranberry juice "], ["5725","266",3.7,"1 splash Sour mix "], ["1326","342",60,"2 oz Southern Comfort "], ["1326","309",45,"1 1/2 oz Peach schnapps "], ["1326","213",15,"1/2 oz Triple sec "], ["1326","312",30,"1 oz Absolut Citron "], ["6204","342",37.5,"1 1/4 oz Southern Comfort "], ["6204","404",37.5,"1 1/4 oz Grapefruit juice "], ["6204","261",37.5,"1 1/4 oz Pineapple juice "], ["6204","219",37.5,"1 1/4 oz Carbonated water "], ["856","122",22.5,"3/4 oz Jack Daniels "], ["856","342",22.5,"3/4 oz Southern Comfort "], ["856","445",15,"1/2 oz Orange juice "], ["856","22",7.5,"1/4 oz 7-Up "], ["856","82",7.5,"1/4 oz Grenadine "], ["4367","342",20,"2 cl Southern Comfort "], ["4367","82",10,"1 cl Grenadine "], ["4367","424",10,"1 cl Lemon juice (fresh) "], ["4367","445",20,"2 cl Orange juice "], ["2429","407",30,"1 oz Lemon vodka (Stoli Limonnaya) "], ["2429","213",30,"1 oz Triple sec "], ["2429","200",30,"1 oz Rose's sweetened lime juice "], ["2429","130",90,"3 oz Club soda "], ["4369","375",30,"1 oz Amaretto "], ["4369","480",30,"1 oz Irish cream (Bailey's) "], ["5485","342",30,"1 oz Southern Comfort "], ["5485","309",30,"1 oz Peach schnapps "], ["5485","36",30,"1 oz Malibu rum "], ["5485","261",30,"Appx. 1 oz Pineapple juice "], ["2769","448",7.5,"1/4 oz Apple brandy "], ["2769","115",7.5,"1/4 oz Goldschlager "], ["2769","335",15,"1/2 oz Spiced rum (Captain Morgan's) "], ["2931","335",44.25,"1 1/2 shot Spiced rum (Captain Morgan's) "], ["2931","364",180,"6 oz Cherry Cola (Pepsi) "], ["5282","462",15,"1/2 oz Tequila "], ["5282","323",60,"2 oz Sprite "], ["5282","82",5,"1 tsp Grenadine "], ["858","444",10,"1/3 oz Hot Damn "], ["858","114",10,"1/3 oz Butterscotch schnapps "], ["858","270",10,"1/3 oz Bailey's irish cream "], ["2182","376",90,"3 oz Gin "], ["2182","291",45,"1 1/2 oz Cherry juice "], ["2182","22",180,"6 oz 7-Up "], ["3458","265",30,"1 oz Kahlua "], ["3458","36",30,"1 oz Malibu rum "], ["3458","422",30,"1 oz Cream "], ["3801","205",22.5,"3/4 oz White Creme de Menthe "], ["3801","13",7.5,"1/4 oz Amarula Cream "], ["3801","422",0.9,"1 dash Cream "], ["2213","365",40,"4 cl Absolut Kurant "], ["2213","186",10,"1 cl Lime juice "], ["2213","372",100,"10 cl Cranberry juice "], ["2213","112",30,"3 cl Bitter lemon "], ["4717","445",120,"4 oz Orange juice (Britvic) "], ["4717","112",120,"4 oz Bitter lemon "], ["1096","15",22.5,"3/4 oz Green Creme de Menthe "], ["1096","68",22.5,"3/4 oz Green Chartreuse "], ["1096","42",22.5,"3/4 oz Irish whiskey "], ["1096","106",0.9,"1 dash Bitters "], ["3332","85",22.5,"3/4 oz Bacardi 151 proof rum "], ["3332","145",22.5,"3/4 oz Rumple Minze "], ["4836","333",15,"1/2 oz oz white Creme de Cacao "], ["4836","224",15,"1/2 oz Godiva liqueur "], ["4836","10",15,"1/2 oz Creme de Banane "], ["4836","126",45,"1 1/2 oz Half-and-half "], ["4524","214",60,"2 oz Light rum "], ["4524","404",30,"1 oz Grapefruit juice "], ["4524","140",15,"1/2 oz Cranberry liqueur "], ["862","214",60,"2 oz Light rum "], ["862","445",30,"1 oz Orange juice "], ["862","82",5,"1 tsp Grenadine "], ["862","29",120,"4 oz Tonic water "], ["6176","316",30,"3 cl Vodka (Absolut) "], ["6176","462",10,"1 cl Tequila "], ["6176","365",10,"1 cl Absolut Kurant "], ["6176","387",10,"1 cl Dark rum (Bacardi) "], ["2341","312",15,"1/2 oz Absolut Citron "], ["2341","322",15,"1/2 oz Peachtree schnapps "], ["2341","297",15,"1/2 oz Blue Curacao "], ["2341","211",30,"1 oz Sweet and sour "], ["2341","261",30,"1 oz Pineapple juice "], ["2341","82",3.7,"1 splash Grenadine "], ["4165","240",15,"1/2 oz Coffee liqueur "], ["4165","487",15,"1/2 oz Dark Creme de Cacao "], ["4165","375",15,"1/2 oz Amaretto "], ["4165","479",15,"1/2 oz Galliano "], ["4832","108",29.5,"1 shot J�germeister "], ["4832","392",360,"12 oz Beer "], ["2108","122",30,"1 oz Jack Daniels "], ["2108","342",30,"1 oz Southern Comfort "], ["2108","213",30,"1 oz Triple sec "], ["2108","211",30,"1 oz Sweet and sour "], ["2108","445",150,"5 oz Orange juice "], ["4317","376",100,"10 cl dry Gin (Gordon's) "], ["4317","200",50,"5 cl Rose's sweetened lime juice "], ["4317","116",40,"4 cl Cherry Heering "], ["4317","461",200,"20 cl Apple juice "], ["4317","29",50,"5 cl Tonic water "], ["4316","316",30,"3 cl Vodka "], ["4316","205",20,"2 cl White Creme de Menthe "], ["4316","131",5,"1/2 cl Tabasco sauce "], ["1237","192",45,"1 1/2 oz Brandy "], ["1237","205",15,"1/2 oz White Creme de Menthe "], ["1237","316",15,"1/2 oz Vodka "], ["1718","192",45,"1 1/2 oz Brandy "], ["1718","205",15,"1/2 oz White Creme de Menthe "], ["1111","383",15,"1/2 oz Sweet Vermouth "], ["1111","105",30,"1 oz dry Sherry "], ["1111","214",15,"1/2 oz Light rum "], ["4355","316",60,"2 oz Vodka "], ["4355","468",60,"2 oz Coconut rum "], ["4355","259",180,"6 oz Milk "], ["5422","378",300,"10 oz Scotch "], ["5422","316",150,"5 oz Vodka "], ["5422","284",120,"4 oz Maple syrup "], ["3964","480",30,"1 oz Irish cream "], ["3964","333",15,"1/2 oz white Creme de Cacao "], ["3964","269",15,"1/2 oz Strawberry liqueur (Baja Rosa) "], ["2183","165",15,"1/2 oz Strawberry schnapps "], ["2183","214",30,"1 oz Light rum "], ["2183","186",30,"1 oz Lime juice "], ["2183","236",5,"1 tsp Powdered sugar "], ["2183","347",30,"1 oz Strawberries "], ["867","165",60,"2 oz Strawberry schnapps "], ["867","251",60,"2 oz Watermelon schnapps "], ["867","2",240,"8 oz Lemonade "], ["6060","270",30,"1 oz Bailey's irish cream "], ["6060","269",30,"1 oz Strawberry liqueur "], ["1887","108",10,"1/3 oz J�germeister "], ["1887","145",10,"1/3 oz Rumple Minze "], ["1887","198",10,"1/3 oz Aftershock "], ["1313","387",45,"1 1/2 oz Dark rum "], ["1313","487",15,"1/2 oz Dark Creme de Cacao "], ["1313","310",60,"2 oz Hot chocolate "], ["1313","155",5,"1 tsp Heavy cream "], ["5388","214",45,"1 1/2 oz Light rum "], ["5388","315",15,"1/2 oz Grand Marnier "], ["5388","186",15,"1/2 oz Lime juice "], ["5388","82",2.5,"1/2 tsp Grenadine "], ["5932","376",60,"2 oz Gin "], ["5932","176",10,"2 tsp Maraschino liqueur "], ["5932","261",30,"1 oz Pineapple juice "], ["5932","106",0.9,"1 dash Bitters "], ["4356","332",20,"2 cl Pernod / Ricard "], ["4356","327",60,"6 cl Campari "], ["871","381",10,"1 cl Drambuie "], ["871","353",10,"1 cl Orange liqueur "], ["871","270",10,"1 cl Bailey's irish cream "], ["871","259",6.67,"2/3 cl Milk "], ["872","146",45,"1 1/2 oz Midori melon liqueur "], ["872","119",45,"1 1/2 oz Absolut Vodka "], ["872","198",45,"1 1/2 oz Aftershock "], ["872","445",3.7,"1 splash Orange juice "], ["3404","85",15,"11/2 oz 151 proof rum "], ["3404","131",7.5,"1/4 oz Tabasco sauce "], ["875","345",30,"1 oz Lemon gin "], ["875","274",30,"1 oz Melon liqueur "], ["875","213",30,"1 oz Triple sec "], ["875","441",90,"3 oz Fruit punch "], ["4402","316",40,"4 cl Vodka (Absolut) "], ["4402","323",50,"5 cl Sprite light "], ["4402","445",50,"5 cl Orange juice "], ["5494","146",30,"1 oz Midori melon liqueur "], ["5494","376",30,"1 oz Gin (Beefeater) "], ["5494","445",180,"6 oz Orange juice "], ["877","226",60,"6 cl Bacardi Limon "], ["877","22",50,"5 cl 7-Up "], ["877","266",30,"3 cl Sour mix "], ["877","290",20,"2 cl Schweppes Russchian "], ["878","36",30,"3 cl Malibu rum "], ["878","445",30,"3 cl Orange juice "], ["878","316",10,"1 cl Vodka "], ["878","1",20,"2 cl Firewater "], ["878","301",10,"1 cl Red wine "], ["3668","85",14.75,"1/2 shot 151 proof rum "], ["3668","316",14.75,"1/2 shot 100 proof Vodka "], ["3668","68",0.9,"1 dash Green Chartreuse "], ["6163","435",37.5,"1 1/4 oz Orange vodka (Stoli Ohranj) "], ["6163","359",15,"1/2 oz Cointreau "], ["6163","211",30,"1 oz Sweet and sour "], ["6163","445",45,"1 1/2 oz Orange juice "], ["6163","372",45,"1 1/2 oz Cranberry juice "], ["880","71",29.5,"1 shot Everclear "], ["880","222",75,"2 1/2 oz Sunny delight "], ["880","257",30,"1 oz Tropical fruit schnapps "], ["3324","108",15,"1/2 oz J�germeister "], ["3324","342",15,"1/2 oz Southern Comfort "], ["3324","375",15,"1/2 oz Amaretto "], ["3324","54",30,"1 oz Chambord raspberry liqueur "], ["3324","483",60,"2 oz Pineapple "], ["1240","331",120,"4 oz Surge "], ["1240","316",60,"2 oz Vodka "], ["1082","392",180,"6 oz Beer "], ["1082","462",37.5,"1 1/4 oz Tequila "], ["1082","85",3.7,"1 splash Bacardi 151 proof rum "], ["2310","265",30,"1 oz Kahlua "], ["2310","432",0.9,"1 dash Whipped cream "], ["2310","314",15,"1/2 oz Cream soda "], ["1555","39",20,"2 cl Parfait d'Amour (Bols) "], ["1555","375",50,"1.5 cl Amaretto di Saronno (ILLVA Saronno) "], ["1555","158",50,"1.5 cl Vanilla syrup (Monin) "], ["1555","422",50,"1.5 cl fresh Cream "], ["1555","436",50,"0.5 cl red Curacao (Marie Brizard) "], ["3440","480",30,"1 oz Irish cream "], ["3440","375",30,"1 oz Amaretto "], ["3440","114",30,"1 oz Butterscotch schnapps "], ["3440","468",30,"1 oz Coconut rum "], ["883","214",45,"1 1/2 oz Light rum "], ["883","454",75,"2 1/2 oz Passion fruit syrup "], ["883","211",60,"2 oz Sweet and sour "], ["883","347",30,"1 oz pureed frozen Strawberries "], ["3564","297",180,"6 oz Blue Curacao "], ["3564","227",120,"4 oz Banana liqueur "], ["3564","424",60,"2 oz Lemon juice "], ["3564","372",50,"1 2/3 oz Cranberry juice "], ["3564","375",10,"1/3 oz Amaretto "], ["3985","316",22.5,"3/4 oz Vodka (Stoli) "], ["3985","146",22.5,"3/4 oz Midori melon liqueur "], ["3985","211",3.7,"1 splash Sweet and sour "], ["3985","22",3.7,"1 splash 7-Up "], ["3139","142",30,"3 cl White rum "], ["3139","316",20,"2 cl Vodka "], ["3139","297",20,"2 cl Blue Curacao "], ["3139","375",10,"1 cl Amaretto "], ["3139","422",20,"2 cl Cream "], ["3139","261",20,"2 cl Pineapple juice "], ["4681","444",7.5,"1/4 oz Hot Damn "], ["4681","86",22.5,"Almost 3/4 oz Grape soda "], ["4681","513",7.4,"1-2 splash Maraschino cherry juice "], ["2428","265",15,"1/2 oz Kahlua "], ["2428","405",15,"1/2 oz Tequila Rose "], ["2428","315",15,"1/2 oz Grand Marnier "], ["2442","462",10,"1/3 oz Tequila "], ["2442","358",10,"1/3 oz Ouzo "], ["2442","265",10,"1/3 oz Kahlua "], ["4585","198",14.75,"1/2 shot Aftershock "], ["4585","361",14.75,"1/2 shot Chocolate liqueur "], ["4898","316",60,"2 oz Vodka "], ["4898","437",120,"4 oz Tang "], ["4898","238",60,"2 oz Aliz� "], ["3474","250",128.5,"1/2 cup Tea (Earl Grey or Yellow Label) "], ["3474","270",128.5,"1/2 cup Bailey's irish cream "], ["3474","252",3.7,"1 splash Whisky "], ["5652","376",45,"1 1/2 oz Gin "], ["5652","213",30,"1 oz Triple sec "], ["5652","106",0.9,"1 dash Bitters "], ["5652","297",5,"1 tsp Blue Curacao "], ["4063","231",30,"1 oz Apricot brandy "], ["4063","330",30,"1 oz Port "], ["888","462",45,"1 1/2 oz Tequila "], ["888","213",3.75,"1/8 oz Triple sec "], ["888","372",120,"4 oz Cranberry juice "], ["888","261",7.5,"1/4 oz Pineapple juice "], ["888","445",7.5,"1/4 oz Orange juice "], ["1612","424",30,"1 oz Lemon juice "], ["1612","294",7.5,"1/4 oz Lime juice cordial (Rose's) "], ["1612","462",60,"2 oz white Tequila "], ["3814","462",45,"1 1/2 oz Tequila "], ["3814","88",30,"1 oz Dry Vermouth "], ["3814","82",0.9,"1 dash Grenadine "], ["5825","462",45,"1 1/2 oz Tequila "], ["5825","213",15,"1/2 oz Triple sec "], ["5825","297",15,"1/2 oz Blue Curacao "], ["5825","445",60,"2 oz Orange juice "], ["5825","372",30,"1 oz Cranberry juice "], ["4444","462",30,"1 oz Tequila "], ["4444","199",15,"1/2 oz Mountain Dew "], ["2552","462",60,"2 oz Tequila "], ["2552","372",60,"2 oz Cranberry juice "], ["4431","462",30,"1 oz Tequila "], ["4431","142",30,"1 oz White rum "], ["4431","316",30,"1 oz Vodka "], ["4431","399",90,"3 oz Margarita mix "], ["4588","108",15,"1/2 oz J�germeister "], ["4588","342",15,"1/2 oz Southern Comfort "], ["5741","85",15,"1/2 oz Bacardi 151 proof rum "], ["5741","145",15,"1/2 oz Rumple Minze "], ["1233","444",40,"4 cl Hot Damn "], ["1233","344",40,"4 cl Dr. Pepper "], ["5599","316",30,"1 oz Vodka "], ["5599","146",30,"1 oz Midori melon liqueur "], ["5599","412",30,"1 oz Creme de Noyaux "], ["5599","372",3.7,"1 splash Cranberry juice "], ["3153","182",30,"1 oz Crown Royal "], ["3153","265",30,"1 oz Kahlua "], ["3153","270",30,"1 oz Bailey's irish cream "], ["4001","265",15,"1/2 oz Kahlua "], ["4001","480",15,"1/2 oz Irish cream "], ["4001","375",15,"1/2 oz Amaretto "], ["4001","85",15,"1/2 oz Bacardi 151 proof rum "], ["4001","422",30,"1 oz Cream "], ["1741","31",29.5,"1 shot Grain alcohol "], ["1741","82",0.9,"1 dash Grenadine syrup "], ["1741","316",29.5,"1 shot Vodka "], ["1741","304",29.5,"1 shot Rum "], ["1741","376",29.5,"1 shot Gin "], ["1741","462",29.5,"1 shot Tequila "], ["6076","462",10,"1 cl Tequila "], ["6076","376",10,"1 cl Gin (Bombay Sapphire) "], ["6076","316",10,"1 cl Vodka "], ["6076","297",0.9,"1 dash Blue Curacao (10 drops) "], ["892","232",45,"1 1/2 oz Wild Turkey "], ["892","423",15,"1/2 oz Applejack "], ["892","200",5,"1 tsp Rose's sweetened lime juice "], ["892","372",120,"4 oz Cranberry juice "], ["2680","214",22.5,"3/4 oz Light rum "], ["2680","192",22.5,"3/4 oz Brandy "], ["2680","448",22.5,"3/4 oz Apple brandy "], ["2680","170",1.25,"1/4 tsp Anis "], ["5190","54",15,"1/2 oz Chambord raspberry liqueur "], ["5190","375",15,"1/2 oz Amaretto "], ["5190","10",15,"1/2 oz Creme de Banane "], ["5190","316",15,"1/2 oz Vodka "], ["5190","261",90,"3 oz Pineapple juice "], ["5190","445",90,"3 oz Orange juice "], ["5190","372",90,"3 oz Cranberry juice "], ["5756","108",15,"1/2 oz J�germeister "], ["5756","145",15,"1/2 oz Rumple Minze "], ["5756","85",15,"1/2 oz Bacardi 151 proof rum "], ["4265","214",45,"1 1/2 oz Light rum "], ["4265","192",22.5,"3/4 oz Brandy "], ["4265","424",1.25,"1/4 tsp Lemon juice "], ["4265","82",5,"1 tsp Grenadine "], ["3354","122",10,"1/3 oz Jack Daniels "], ["3354","462",10,"1/3 oz Tequila "], ["3354","85",10,"1/3 oz 151 proof rum "], ["5453","108",45,"1 1/2 oz J�germeister "], ["5453","115",45,"1 1/2 oz Goldschlager "], ["5453","145",45,"1 1/2 oz Rumple Minze "], ["894","122",15,"1/2 oz Jack Daniels "], ["894","471",15,"1/2 oz Jim Beam "], ["894","263",15,"1/2 oz Johnnie Walker "], ["894","232",15,"1/2 oz Wild Turkey "], ["4326","122",29.5,"1 shot Jack Daniels "], ["4326","471",29.5,"1 shot Jim Beam "], ["4326","62",29.5,"1 shot Yukon Jack "], ["4326","232",29.5,"1 shot Wild Turkey "], ["4025","122",9.83,"1/3 shot Jack Daniels "], ["4025","471",9.83,"1/3 shot Jim Beam "], ["4025","263",9.83,"1/3 shot Johnnie Walker "], ["2152","108",20,"2/3 oz J�germeister "], ["2152","119",20,"2/3 oz Absolut Vodka "], ["2152","145",20,"2/3 oz Rumple Minze "], ["5457","108",9.83,"1/3 shot J�germeister "], ["5457","115",9.83,"1/3 shot Goldschlager "], ["5457","464",9.83,"1/3 shot Peppermint schnapps (Rumple Minze) "], ["5693","182",30,"1 oz Crown Royal "], ["5693","375",30,"1 oz Amaretto "], ["5693","261",30,"1 oz Pineapple juice "], ["4382","378",45,"1 1/2 oz Scotch "], ["4382","181",30,"1 oz Green Ginger Wine "], ["4382","445",30,"1 oz Orange juice "], ["5591","238",60,"2 oz Aliz� "], ["5591","316",60,"2 oz Skyy Vodka "], ["5069","145",15,"1/2 oz Rumple Minze "], ["5069","85",15,"1/2 oz Bacardi 151 proof rum "], ["2916","56",22.5,"3/4 oz Blended whiskey "], ["2916","192",22.5,"3/4 oz Brandy "], ["2916","376",22.5,"3/4 oz Gin "], ["1244","352",257,"1 cup Water "], ["1244","138",257,"3/4-1 cup Brown sugar "], ["1244","482",20,"4 tsp Coffee powder "], ["1244","304",257,"1 cup Rum (Bundy) "], ["1244","508",20,"4 tsp Vanilla extract "], ["898","342",30,"1 oz Southern Comfort "], ["898","375",30,"1 oz Amaretto "], ["898","316",30,"1 oz Vodka "], ["898","445",60,"2 oz Orange juice "], ["898","82",60,"2 oz Grenadine "], ["899","312",30,"1 oz Absolut Citron "], ["899","468",30,"1 oz Coconut rum (Parrot Bay) "], ["899","146",30,"1 oz Midori melon liqueur "], ["899","211",3.7,"1 splash Sweet and sour "], ["899","22",3.7,"1 splash 7-Up "], ["4921","387",30,"1 oz Dark rum "], ["4921","192",30,"1 oz Brandy "], ["4921","259",120,"4 oz Milk "], ["4921","477",10,"2 tsp Sugar "], ["3346","316",30,"1 oz Vodka "], ["3346","424",60,"2 oz Lemon juice "], ["3346","372",60,"2 oz Cranberry juice "], ["901","214",45,"1 1/2 oz Light rum "], ["901","462",45,"1 1/2 oz Tequila "], ["901","376",45,"1 1/2 oz Gin "], ["901","316",45,"1 1/2 oz Vodka "], ["901","31",45,"1 1/2 oz pure Grain alcohol "], ["901","412",45,"1 1/2 oz Creme de Noyaux "], ["902","383",22.5,"3/4 oz Sweet Vermouth "], ["902","42",22.5,"3/4 oz Irish whiskey "], ["902","68",22.5,"3/4 oz Green Chartreuse "], ["4499","316",37.5,"1 1/4 oz Vodka (Absolut) "], ["4499","359",7.5,"1/4 oz Cointreau "], ["4499","315",7.5,"1/4 oz Grand Marnier "], ["4499","200",3.7,"1 splash Rose's sweetened lime juice "], ["4499","266",3.7,"1 splash Sour mix "], ["1272","213",30,"1 oz Triple sec "], ["1272","462",15,"1/2 oz Tequila "], ["1272","335",15,"1/2 oz Spiced rum "], ["2870","378",45,"1 1/2 oz Scotch "], ["2870","88",30,"1 oz Dry Vermouth "], ["2870","261",45,"1 1/2 oz Pineapple juice "], ["5536","462",15,"1/2 oz Tequila "], ["5536","375",15,"1/2 oz Amaretto "], ["5536","186",3.7,"1 splash Lime juice "], ["3114","182",29.5,"1 shot Crown Royal "], ["3114","375",29.5,"1 shot Amaretto "], ["3114","211",29.5,"1 shot Sweet and sour "], ["3114","22",3.7,"1 splash 7-Up "], ["1532","375",60,"2 oz Amaretto "], ["1532","265",60,"2 oz Kahlua "], ["1532","41",60,"2 oz Light cream "], ["5261","316",30,"1 oz Vodka "], ["5261","376",30,"1 oz Gin "], ["5261","304",30,"1 oz Rum "], ["5261","462",30,"1 oz Tequila "], ["5261","123",60,"2 oz Kiwi liqueur "], ["1722","316",40,"4 cl Vodka (Absolut) "], ["1722","418",20,"2 cl Collins mix "], ["1722","323",80,"8 cl Sprite light "], ["1780","270",30,"1 oz Bailey's irish cream "], ["1780","192",15,"1/2 oz Brandy "], ["1780","155",90,"3 oz Heavy cream "], ["2791","265",60,"2 oz Kahlua "], ["2791","445",90,"3 oz Orange juice "], ["2311","215",10,"1/3 oz Tia maria "], ["2311","487",10,"1/3 oz Dark Creme de Cacao "], ["2311","167",10,"1/3 oz Frangelico "], ["4742","359",15,"1/2 oz Cointreau "], ["4742","315",15,"1/2 oz Grand Marnier "], ["4742","211",75,"2 1/2 oz Sweet and sour "], ["4742","186",30,"1 oz Lime juice "], ["4742","462",45,"1 1/2 oz Tequila "], ["4855","297",15,"1/2 oz Blue Curacao "], ["4855","270",15,"1/2 oz Bailey's irish cream "], ["4359","214",45,"1 1/2 oz Light rum "], ["4359","85",5,"1 tsp 151 proof rum "], ["4359","431",15,"1/2 oz Coffee brandy "], ["4359","422",7.5,"1 1/2 tsp Cream "], ["913","146",22.5,"3/4 oz Midori melon liqueur "], ["913","202",30,"1 oz Gold tequila "], ["913","266",3.7,"1 splash Sour mix "], ["913","445",60,"2 oz Orange juice "], ["913","368",15,"1/2 oz Sloe gin "], ["5912","82",9.83,"1/3 shot Grenadine "], ["5912","479",9.83,"1/3 shot Galliano "], ["5912","146",9.83,"1/3 shot Midori melon liqueur "], ["4728","316",30,"1 oz Vodka "], ["4728","213",30,"1 oz Triple sec "], ["4728","146",30,"1 oz Midori melon liqueur "], ["4728","2",180,"6 oz Lemonade "], ["1445","108",15,"1/2 oz J�germeister "], ["1445","115",15,"1/2 oz Goldschlager "], ["1445","82",7.5,"1/4 oz Grenadine "], ["1623","88",22.5,"3/4 oz Dry Vermouth "], ["1623","383",22.5,"3/4 oz Sweet Vermouth "], ["1623","376",22.5,"3/4 oz Gin "], ["2928","316",9.83,"1/3 shot Vodka (Absolut) "], ["2928","108",14.75,"1/2 shot J�germeister "], ["2928","115",14.75,"1/2 shot Goldschlager "], ["4886","316",30,"1 oz Vodka "], ["4886","462",30,"1 oz Tequila "], ["4886","62",30,"1 oz Yukon Jack "], ["4886","372",60,"2 oz Cranberry juice "], ["4886","445",60,"2 oz Orange juice "], ["4886","261",60,"2 oz Pineapple juice "], ["4543","88",22.5,"3/4 oz Dry Vermouth "], ["4543","333",22.5,"3/4 oz white Creme de Cacao "], ["4543","176",22.5,"3/4 oz Maraschino liqueur "], ["4543","106",0.9,"1 dash Bitters "], ["4259","54",15,"1/2 oz Chambord raspberry liqueur "], ["4259","22",10,"1/3 oz 7-Up or Sprite "], ["4259","312",10,"1/3 oz Absolut Citron "], ["4259","251",10,"1/3 oz Watermelon schnapps "], ["917","376",20,"2 cl Gin "], ["917","421",20,"2 cl Cinzano Orancio "], ["917","36",0.9,"1 dash Malibu rum "], ["1149","142",20,"2 cl White rum "], ["1149","387",20,"2 cl Dark rum "], ["1149","316",20,"2 cl Vodka "], ["1149","315",20,"2 cl Grand Marnier "], ["1149","424",10,"1 cl Lemon juice "], ["1149","127",120,"12 cl Mango juice "], ["3043","146",22.5,"3/4 oz Midori melon liqueur "], ["3043","36",22.5,"3/4 oz Malibu rum "], ["3043","312",15,"1/2 oz Absolut Citron "], ["3043","261",60,"2 oz Pineapple juice "], ["3043","266",30,"1 oz Sour mix "], ["3043","22",3.7,"1 splash 7-Up "], ["919","270",15,"1/2 oz Bailey's irish cream "], ["919","114",22.5,"3/4 oz Butterscotch schnapps "], ["919","36",22.5,"3/4 oz Malibu rum "], ["919","261",22.5,"3/4 oz Pineapple juice "], ["3787","375",60,"2 oz Amaretto "], ["3787","36",60,"2 oz Malibu rum "], ["5017","239",60,"2 oz Pear liqueur "], ["5017","97",30,"1 oz RedRum "], ["5017","448",15,"1/2 oz Apple brandy "], ["5017","227",15,"1/2 oz Banana liqueur "], ["5017","22",120,"4 oz 7-Up "], ["3971","36",60,"2 oz Malibu rum "], ["3971","194",60,"2 oz Peach Vodka "], ["3971","83",60,"2 oz Ginger ale "], ["5974","387",30,"1 oz Dark rum "], ["5974","375",15,"1/2 oz Amaretto "], ["5974","404",120,"4 oz Grapefruit juice "], ["1728","82",20,"2 cl Grenadine syrup "], ["1728","110",20,"2 cl Mint syrup "], ["1728","259",100,"10 cl cold Milk "], ["3248","227",14.75,"1/2 shot Banana liqueur "], ["3248","468",14.75,"1/2 shot Coconut rum (Parrot bay, Malibu) "], ["3248","435",3.7,"1 splash Orange vodka (Stoli Ohranj) "], ["3248","488",3.7,"1 splash Raspberry vodka (Stoli Razberi) "], ["3248","372",14.75,"1/2 shot Cranberry juice "], ["3248","443",3.7,"1 splash Soda water "], ["3248","261",44.25,"1 1/2 shot Pineapple juice "], ["4336","122",30,"1 oz Jack Daniels "], ["4336","375",30,"1 oz Amaretto "], ["4336","368",30,"1 oz Sloe gin "], ["4336","342",30,"1 oz Southern Comfort "], ["4336","445",30,"1 oz Orange juice "], ["5501","139",30,"1 oz Tuaca "], ["5501","167",30,"1 oz Frangelico "], ["5501","265",30,"1 oz Kahlua "], ["5501","422",60,"2 oz Cream "], ["4966","375",15,"1/2 oz Amaretto "], ["4966","272",15,"1/2 oz Razzmatazz "], ["4966","259",15,"1/2 oz Milk "], ["3182","479",30,"1 oz Galliano "], ["3182","475",15,"1/2 oz Sambuca "], ["3182","232",15,"1/2 oz Wild Turkey "], ["1574","375",30,"1 oz Amaretto "], ["1574","333",30,"1 oz white Creme de Cacao "], ["1574","422",60,"2 oz Cream "], ["1574","427",60,"2 oz Ice "], ["921","36",30,"1 oz Malibu rum "], ["921","362",15,"1/2 oz Pi�a Colada "], ["921","157",15,"1/2 oz Passoa "], ["921","425",15,"1/2 oz Pisang Ambon "], ["921","261",90,"3 oz Pineapple juice "], ["6010","270",45,"1 1/2 oz Bailey's irish cream "], ["6010","265",45,"1 1/2 oz Kahlua "], ["6010","439",180,"6 oz Root beer "], ["1245","232",30,"1 oz Wild Turkey "], ["1245","375",22.5,"3/4 oz Amaretto "], ["1245","261",3.7,"1 splash Pineapple juice "], ["2441","309",20,"2 cl Peach schnapps "], ["2441","270",10,"1 cl Bailey's irish cream "], ["1041","214",45,"1 1/2 oz Light rum "], ["1041","186",30,"1 oz Lime juice "], ["1041","479",15,"1/2 oz Galliano "], ["1041","315",15,"1/2 oz Grand Marnier "], ["4774","214",15,"1/2 oz Light rum (Bacardi) "], ["4774","335",15,"1/2 oz Spiced rum (Bacardi) "], ["4774","175",0.9,"1 dash Coca-Cola "], ["4774","200",0.9,"1 dash Rose's sweetened lime juice "], ["2455","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["2455","375",30,"1 oz Amaretto "], ["2455","22",30,"1 oz 7-Up "], ["4135","316",10,"1/3 oz Vodka "], ["4135","445",30,"1 oz Orange juice "], ["4135","291",30,"1 oz Cherry juice "], ["923","376",45,"1 1/2 oz Gin "], ["923","170",1.25,"1/4 tsp Anis "], ["923","213",22.5,"3/4 oz Triple sec "], ["1889","146",30,"1 oz Midori melon liqueur "], ["1889","36",22.5,"3/4 oz Malibu rum "], ["1889","227",22.5,"3/4 oz Banana liqueur "], ["1889","211",30,"1 oz Sweet and sour "], ["1889","261",30,"1 oz Pineapple juice "], ["4767","462",90,"3 oz Tequila "], ["4767","297",30,"1 oz Blue Curacao "], ["4767","186",60,"2 oz Lime juice "], ["4767","427",257,"1 cup Ice "], ["3391","379",60,"2 oz Tomato juice "], ["3391","392",180,"6 oz Beer "], ["2169","376",7.38,"1/4 shot Gin "], ["2169","316",7.38,"1/4 shot Vodka "], ["2169","213",7.38,"1/4 shot Triple sec "], ["2169","186",7.38,"1/4 shot Lime juice "], ["5013","316",60,"6 cl Vodka (Absolut) "], ["5013","265",60,"6 cl Kahlua "], ["5013","270",60,"6 cl Bailey's irish cream "], ["5013","315",60,"6 cl Grand Marnier "], ["5013","381",60,"6 cl Drambuie "], ["2805","365",30,"1 oz Absolut Kurant "], ["2805","297",45,"1 1/2 oz Blue Curacao "], ["2805","261",30,"1 oz Pineapple juice "], ["2805","54",15,"1/2 oz Chambord raspberry liqueur "], ["924","365",30,"1 oz Absolut Kurant "], ["924","297",15,"1/2 oz Blue Curacao "], ["924","266",15,"1/2 oz Sour mix "], ["924","357",7.5,"1/4 oz Sugar syrup "], ["924","323",3.7,"1 splash Sprite "], ["924","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["2671","297",14.75,"1/2 shot Blue Curacao "], ["2671","221",14.75,"1/2 shot Raspberry schnapps "], ["925","198",10,"1/3 oz Aftershock "], ["925","464",10,"1/3 oz Avalanche Peppermint schnapps "], ["925","145",10,"1/3 oz Rumple Minze "], ["4096","376",45,"1 1/2 oz Gin "], ["4096","368",22.5,"3/4 oz Sloe gin "], ["4096","82",2.5,"1/2 tsp Grenadine "], ["4308","42",40,"4 cl Irish whiskey "], ["4308","204",40,"4 cl Espresso "], ["4308","482",40,"4 cl Coffee "], ["4308","138",20,"4 tsp Brown sugar "], ["3242","376",60,"2 oz Gin "], ["3242","186",30,"1 oz Lime juice "], ["3242","130",90,"3 oz Club soda "], ["926","479",15,"1/2 oz Galliano "], ["926","475",15,"1/2 oz Sambuca "], ["4158","316",30,"1 oz Stoli Vodka "], ["4158","309",150,"1.5 oz Peach schnapps "], ["1821","316",15,"1/2 oz Vodka "], ["1821","54",10,"1/3 oz Chambord raspberry liqueur "], ["1821","224",10,"1/3 oz Godiva liqueur "], ["1821","265",10,"1/3 oz Kahlua "], ["5814","54",30,"1 oz Chambord raspberry liqueur "], ["5814","316",30,"1 oz Vodka "], ["5814","372",30,"1 oz Cranberry juice "], ["4085","214",90,"3 oz Light rum "], ["4085","284",30,"1 oz Maple syrup "], ["4085","424",30,"1 oz Lemon juice "], ["2345","378",45,"1 1/2 oz Scotch "], ["2345","114",30,"1 oz Butterscotch schnapps "], ["2765","304",60,"2 oz Rum "], ["2765","284",60,"2 oz Maple syrup "], ["2765","352",60,"2 oz Water "], ["6033","330",60,"2 oz Port "], ["6033","315",30,"1 oz Grand Marnier "], ["6033","213",15,"1/2 oz Triple sec "], ["5822","376",90,"3 oz dry Gin (Gordon's) "], ["5822","316",30,"1 oz Vodka "], ["5822","33",15,"1/2 oz Kina Lillet "], ["3390","387",60,"2 oz Dark rum "], ["3390","179",15,"1/2 oz Cherry brandy "], ["4375","15",10,"1/3 oz Green Creme de Menthe "], ["4375","333",10,"1/3 oz white Creme de Cacao "], ["4375","270",15,"1/2 oz Bailey's irish cream "], ["4375","375",15,"1/2 oz Amaretto "], ["5178","214",45,"1 1/2 oz Light rum "], ["5178","342",15,"1/2 oz Southern Comfort "], ["5178","213",15,"1/2 oz Triple sec "], ["5178","424",30,"1 oz Lemon juice "], ["5178","106",0.9,"1 dash Bitters "], ["4153","161",360,"12 oz Iced tea, lemon flavor (Nestea) "], ["4153","36",150,"4.5 oz Malibu rum "], ["1901","376",45,"1 1/2 oz Gin "], ["1901","383",15,"1/2 oz Sweet Vermouth "], ["1901","192",15,"1/2 oz Brandy "], ["6099","372",64.25,"1/4 cup Cranberry juice "], ["6099","445",64.25,"1/4 cup Orange juice "], ["6099","513",2.5,"1/2 tsp Maraschino cherry juice "], ["6099","424",1.25,"1/4 tsp Lemon juice "], ["6099","433",1.8,"1-2 dash Orange bitters "], ["930","249",90,"3 oz Bourbon "], ["930","261",30,"1 oz Pineapple juice "], ["930","445",30,"1 oz Orange juice "], ["933","316",40,"4 cl Vodka "], ["933","265",20,"2 cl Kahlua "], ["933","259",140,"14 cl Milk "], ["3945","15",22.5,"3/4 oz Green Creme de Menthe "], ["3945","333",22.5,"3/4 oz white Creme de Cacao "], ["3945","316",22.5,"3/4 oz Vodka "], ["935","294",30,"1 oz Lime juice cordial "], ["935","316",45,"1 1/2 oz Vodka "], ["935","236",5,"1 tsp Powdered sugar "], ["4394","404",150,"5 oz Grapefruit juice "], ["4394","316",45,"1 1/2 oz Vodka "], ["4394","51",1.25,"1/4 tsp Salt "], ["5344","205",30,"1 oz White Creme de Menthe "], ["5344","316",30,"1 oz Vodka "], ["3828","316",30,"1 oz Vodka "], ["3828","445",150,"5 oz Orange juice "], ["3828","82",29.5,"1 shot Grenadine "], ["5860","359",10,"1 cl Cointreau "], ["5860","315",10,"1 cl Grand Marnier "], ["5860","316",10,"1 cl Vodka "], ["5860","3",10,"1 cl Cognac "], ["5860","231",10,"1 cl Apricot brandy "], ["5495","213",30,"1 oz Triple sec "], ["5495","3",30,"1 oz Cognac "], ["5495","424",15,"1/2 oz Lemon juice "], ["1456","23",30,"1 oz Orange rum (Cruzan) "], ["1456","495",30,"1 oz Banana rum (Cruzan) "], ["1456","468",30,"1 oz Coconut rum (Cruzan) "], ["1456","300",30,"1 oz Pineapple rum (Cruzan) "], ["1456","372",45,"1 1/2 oz Cranberry juice "], ["1456","445",45,"1 1/2 oz Orange juice "], ["1456","261",45,"1 1/2 oz Pineapple juice "], ["1456","387",15,"1/2 oz Dark rum (Cruzan) "], ["2338","36",30,"1 oz Malibu rum "], ["2338","265",30,"1 oz Kahlua "], ["2338","114",30,"1 oz Butterscotch schnapps "], ["2338","259",60,"2 oz Milk "], ["4238","358",15,"1/2 oz Ouzo "], ["4238","85",15,"1/2 oz 151 proof rum "], ["3546","85",29.5,"1 shot 151 proof rum "], ["3546","375",29.5,"1 shot Amaretto "], ["1871","304",29.5,"1 shot Rum "], ["1871","21",29.5,"1 shot Whiskey "], ["1871","344",360,"12 oz Dr. Pepper "], ["5363","376",45,"1 1/2 oz Gin "], ["5363","88",45,"1 1/2 oz Dry Vermouth "], ["5363","213",5,"1 tsp Triple sec "], ["5320","213",10,"1/3 oz Triple sec "], ["5320","342",10,"1/3 oz Southern Comfort "], ["5320","179",10,"1/3 oz Cherry brandy "], ["3773","316",45,"1 1/2 oz Vodka "], ["3773","88",15,"1/2 oz Dry Vermouth "], ["3773","174",15,"1/2 oz Blackberry brandy "], ["3773","424",5,"1 tsp Lemon juice "], ["1151","115",15,"1/2 oz Goldschlager "], ["1151","462",15,"1/2 oz Tequila "], ["1151","122",15,"1/2 oz Jack Daniels "], ["1150","182",30,"1 oz Crown Royal "], ["1150","514",30,"1 oz Sour apple liqueur "], ["1150","372",30,"1 oz Cranberry juice "], ["5245","182",30,"1 oz Crown Royal "], ["5245","40",30,"1 oz Sour Apple Pucker "], ["5245","372",3.7,"1 splash Cranberry juice "], ["3969","182",15,"1/2 oz Crown Royal "], ["3969","309",15,"1/2 oz Peach schnapps "], ["3969","211",15,"1/2 oz Sweet and sour "], ["4519","342",45,"1 1/2 oz Southern Comfort "], ["4519","375",15,"1/2 oz Amaretto "], ["4519","261",3.7,"1 splash Pineapple juice "], ["4416","342",15,"1/2 oz Southern Comfort "], ["4416","375",15,"1/2 oz Amaretto "], ["4416","412",15,"1/2 oz Creme de Noyaux "], ["4416","211",15,"1/2 oz Sweet and sour "], ["5524","82",15,"1/2 oz Grenadine "], ["5524","304",15,"1/2 oz Rum "], ["5524","376",15,"1/2 oz Gin "], ["5524","213",15,"1/2 oz Triple sec "], ["5524","316",15,"1/2 oz Vodka "], ["5524","445",120,"4 oz Orange juice "], ["5524","372",120,"4 oz Cranberry juice "], ["5524","146",30,"1 oz Midori melon liqueur "], ["4120","342",60,"2 oz Southern Comfort "], ["4120","261",60,"2 oz Pineapple juice "], ["4120","372",30,"1 oz Cranberry juice "], ["4120","211",7.5,"1/4 oz Sweet and sour "], ["5594","115",30,"1 oz Goldschlager "], ["5594","145",30,"1 oz Rumple Minze "], ["5594","85",30,"1 oz Bacardi 151 proof rum "], ["5594","108",30,"1 oz J�germeister "], ["944","108",30,"1 oz J�germeister "], ["944","475",15,"1/2 oz Sambuca "], ["1461","269",30,"1 oz Strawberry liqueur "], ["1461","316",30,"1 oz Vodka "], ["1461","211",30,"1 oz Sweet and sour "], ["1461","445",30,"1 oz Orange juice "], ["3088","28",22.5,"3/4 oz Dubonnet Rouge "], ["3088","376",22.5,"3/4 oz Gin "], ["3088","179",7.5,"1 1/2 tsp Cherry brandy "], ["3088","445",7.5,"1 1/2 tsp Orange juice "], ["5608","316",30,"3 cl Vodka "], ["5608","479",30,"3 cl Galliano "], ["5608","327",15,"1 1/2 cl Campari "], ["5608","445",120,"12 cl Orange juice "], ["945","173",15,"1/2 oz Canadian whisky (Crown Royal) "], ["945","309",15,"1/2 oz Peach schnapps "], ["945","211",7.5,"1/4 oz Sweet and sour mix "], ["945","449",7.5,"1/4 oz Apple schnapps "], ["947","376",45,"1 1/2 oz Gin "], ["947","88",22.5,"3/4 oz Dry Vermouth "], ["947","231",1.25,"1/4 tsp Apricot brandy "], ["947","448",2.5,"1/2 tsp Apple brandy "], ["946","231",15,"1/2 oz Apricot brandy "], ["946","88",15,"1/2 oz Dry Vermouth "], ["946","376",30,"1 oz Gin "], ["946","424",1.25,"1/4 tsp Lemon juice "], ["2577","333",20,"2/3 oz Creme de Cacao "], ["2577","475",20,"2/3 oz Sambuca "], ["2577","480",20,"2/3 oz Irish cream (Bailey's) "], ["1742","265",15,"1/2 oz Kahlua "], ["1742","462",15,"1/2 oz Tequila "], ["5845","213",30,"1 oz Triple sec "], ["5845","270",30,"1 oz Bailey's irish cream "], ["5845","54",30,"1 oz Chambord raspberry liqueur "], ["2100","375",15,"1/2 oz Amaretto "], ["2100","297",7.5,"1/4 oz Blue Curacao "], ["2100","10",7.5,"1/4 oz Creme de Banane "], ["2100","211",7.5,"1/4 oz Sweet and sour "], ["2100","261",3.7,"1 splash Pineapple juice "], ["2100","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["3689","54",30,"1 oz Chambord raspberry liqueur "], ["3689","480",60,"2 oz Irish cream "], ["3689","259",180,"6 oz Milk "], ["2862","383",15,"1/2 oz Sweet Vermouth "], ["2862","88",15,"1/2 oz Dry Vermouth "], ["2862","192",45,"1 1/2 oz Brandy "], ["2862","213",5,"1 tsp Triple sec "], ["2862","170",1.25,"1/4 tsp Anis "], ["1657","88",30,"1 oz Dry Vermouth "], ["1657","376",30,"1 oz Gin "], ["1657","231",30,"1 oz Apricot brandy "], ["1657","424",0.9,"1 dash Lemon juice "], ["953","21",150,"1.5 oz Whiskey "], ["953","383",150,"1.5 oz Sweet Vermouth "], ["2071","378",45,"1 1/2 oz Scotch "], ["2071","181",30,"1 oz Green Ginger Wine "], ["3795","173",45,"1 1/2 oz Canadian whisky (Canadian Club) "], ["3795","408",45,"1 1/2 oz Vermouth "], ["3942","490",60,"2 oz Citrus vodka "], ["3942","507",120,"4 oz White cranberry juice (Ocean Spray) "], ["3942","186",30,"1 oz fresh Lime juice "], ["3942","357",30,"1 oz Sugar syrup "], ["5775","215",30,"1 oz Tia maria "], ["5775","270",30,"1 oz Bailey's irish cream "], ["5775","316",30,"1 oz Vodka (Stolichnaya) "], ["2134","475",15,"1/2 oz Sambuca "], ["2134","333",15,"1/2 oz white Creme de Cacao "], ["2134","422",60,"2 oz Cream "], ["4311","214",22.5,"3/4 oz Light rum "], ["4311","376",22.5,"3/4 oz Gin "], ["4311","213",22.5,"3/4 oz Triple sec "], ["4311","124",1.25,"1/4 tsp Anisette "], ["2380","316",44.5,"1 jigger Vodka "], ["2380","333",30,"1 oz white Creme de Cacao "], ["2380","422",30,"1 oz Cream or milk "], ["5084","266",30,"1 oz Sour mix "], ["5084","376",30,"1 oz Gin "], ["5084","359",15,"1/2 oz Cointreau (or triple sec) "], ["958","316",30,"1 oz Vodka "], ["958","205",30,"1 oz White Creme de Menthe "], ["2694","475",22.5,"3/4 oz Sambuca "], ["2694","405",7.5,"1/4 oz Tequila Rose "], ["3145","139",22.5,"3/4 oz Tuaca "], ["3145","480",22.5,"3/4 oz Irish cream "], ["5622","376",45,"1 1/2 oz Gin "], ["5622","205",22.5,"3/4 oz White Creme de Menthe "], ["959","316",60,"2 oz Vodka "], ["959","462",30,"1 oz Tequila "], ["959","445",180,"6 oz Orange juice "], ["959","82",0.9,"1 dash Grenadine "], ["961","231",30,"1 oz Apricot brandy "], ["961","376",30,"1 oz Gin "], ["961","88",15,"1/2 oz Dry Vermouth "], ["961","424",0.9,"1 dash Lemon juice "], ["5492","378",60,"2 oz Scotch "], ["5492","487",15,"1/2 oz Dark Creme de Cacao "], ["5492","259",120,"4 oz Milk "], ["4723","316",30,"1 oz Cinnamon Vodka (Stoli) "], ["4723","375",30,"1 oz Amaretto "], ["4723","265",30,"1 oz Kahlua "], ["4723","270",30,"1 oz Bailey's irish cream "], ["4723","422",30,"1 oz Cream "], ["962","192",30,"1 oz Brandy "], ["962","207",15,"1/2 oz Yellow Chartreuse "], ["962","351",15,"1/2 oz Benedictine "], ["962","106",0.9,"1 dash Bitters "], ["4803","232",15,"1/2 oz Wild Turkey "], ["4803","464",15,"1/2 oz Peppermint schnapps "], ["3593","122",45,"1 1/2 oz Jack Daniels "], ["3593","309",30,"1 oz Peach schnapps "], ["3593","372",60,"2 oz Cranberry juice "], ["2018","316",45,"1 1/2 oz Vodka (Smirnoff) "], ["2018","468",15,"1/2 oz Coconut rum (Parrot Bay) "], ["2018","261",45,"1 1/2 oz Pineapple juice "], ["2018","372",45,"1 1/2 oz Cranberry juice "], ["2018","445",45,"1 1/2 oz Orange juice "], ["1998","462",45,"1 1/2 oz Tequila "], ["1998","372",30,"1 oz Cranberry juice "], ["1998","130",30,"1 oz Club soda "], ["1998","186",15,"1/2 oz Lime juice "], ["4258","387",22.5,"3/4 oz Dark rum "], ["4258","227",22.5,"3/4 oz Banana liqueur "], ["4258","174",22.5,"3/4 oz Blackberry brandy "], ["4258","261",60,"2 oz Pineapple juice "], ["4258","372",60,"2 oz Cranberry juice "], ["4505","316",75,"2 1/2 oz Vodka (Absolut or Stoli) "], ["4505","213",15,"1/2 oz Triple sec "], ["4505","297",15,"1/2 oz Blue Curacao "], ["4173","316",30,"3 cl Vodka "], ["4173","297",10,"1 cl Blue Curacao "], ["4173","82",10,"1 cl Grenadine "], ["965","376",45,"1 1/2 oz Gin (Beefeater) "], ["965","137",300,"Add 10 oz Grapefruit-lemon soda (Wink) "], ["3328","316",45,"1 1/2 oz Vodka "], ["3328","372",45,"1 1/2 oz Cranberry juice "], ["3328","399",45,"1 1/2 oz strawberry Margarita mix "], ["968","207",60,"2 oz Yellow Chartreuse "], ["968","297",45,"1 1/2 oz Blue Curacao "], ["968","192",15,"1/2 oz Brandy, spiced "], ["968","129",1.25,"1/4 tsp ground Cloves "], ["968","20",0.9,"1 dash Nutmeg "], ["968","336",0.9,"1 dash Allspice "], ["2669","146",60,"2 oz Midori melon liqueur "], ["2669","309",60,"2 oz Peach schnapps "], ["2669","445",90,"3 oz Orange juice "], ["2669","261",30,"1 oz Pineapple juice "], ["2669","372",60,"2 oz Cranberry juice "], ["4922","309",30,"1 oz Peach schnapps "], ["4922","316",30,"1 oz Vodka "], ["4922","468",30,"1 oz Coconut rum "], ["4922","372",90,"3 oz Cranberry juice "], ["3166","309",45,"1 1/2 oz Peach schnapps "], ["3166","316",45,"1 1/2 oz Vodka "], ["3166","372",105,"3 1/2 oz Cranberry juice "], ["972","114",15,"1-1/2 oz Butterscotch schnapps "], ["972","422",15,"1/2 oz Cream "], ["975","179",22.5,"3/4 oz Cherry brandy "], ["975","376",22.5,"3/4 oz Gin "], ["975","207",22.5,"3/4 oz Yellow Chartreuse "], ["2404","368",29.5,"1 shot Sloe gin "], ["2404","445",120,"4 oz Orange juice "], ["2404","328",60,"2 oz strawberry Daiquiri mix "], ["3708","214",45,"1 1/2 oz Light rum "], ["3708","359",22.5,"3/4 oz Cointreau "], ["3708","424",22.5,"3/4 oz Lemon juice "], ["978","105",60,"2 oz dry Sherry "], ["978","433",0.9,"1 dash Orange bitters "], ["1723","375",22.5,"3/4 oz Amaretto "], ["1723","117",22.5,"3/4 oz Wildberry schnapps "], ["1723","266",3.7,"1 splash Sour mix "], ["1723","175",3.7,"1 splash Coca-Cola "], ["980","119",30,"1 oz Absolut Vodka "], ["980","146",30,"1 oz Midori melon liqueur "], ["980","54",30,"1 oz Chambord raspberry liqueur "], ["5841","88",15,"1/2 oz Dry Vermouth "], ["5841","376",45,"1 1/2 oz Gin "], ["5841","297",5,"1 tsp Blue Curacao "], ["5841","106",0.9,"1 dash Bitters "], ["4846","391",10,"1/3 oz Vanilla vodka (Stoli) "], ["4846","213",10,"1/3 oz Triple sec "], ["4846","261",10,"1/3 oz Pineapple juice "], ["6209","85",30,"1 oz Bacardi 151 proof rum "], ["6209","479",150,"0.5 oz Galliano "], ["6209","316",150,"0.5 oz Vodka "], ["6209","266",120,"4 oz Sour mix "], ["4843","316",30,"1 oz Vodka or light rum "], ["4843","10",30,"1 oz Creme de Banane "], ["4843","323",180,"6 oz Sprite or 7-up "], ["2589","465",15,"1/2 oz White chocolate liqueur (Godet) "], ["2589","240",15,"1/2 oz Coffee liqueur (Kahlua) "], ["983","207",22.5,"3/4 oz Yellow Chartreuse "], ["983","231",22.5,"3/4 oz Apricot brandy "], ["983","124",7.5,"1/4 oz Anisette "], ["985","62",60,"2 oz Yukon Jack "], ["985","115",7.5,"1/4 oz Goldschlager "], ["3484","108",15,"1/2 oz J�germeister "], ["3484","439",15,"1/2 oz Root beer "], ["986","480",30,"1 oz Irish cream "], ["986","265",30,"1 oz Kahlua "], ["986","479",30,"1 oz Galliano "], ["986","61",30,"1 oz Vanilla liqueur "], ["986","126",0.9,"1 dash Half-and-half "], ["4751","376",45,"1 1/2 oz Gin "], ["4751","28",45,"1 1/2 oz Dubonnet Rouge "], ["4751","366",0.9,"1 dash Angostura bitters "], ["5514","408",40,"4 cl Vermouth "], ["5514","461",160,"16 cl Apple juice "], ["4438","146",150,"1.5 oz Midori melon liqueur "], ["4438","339",360,"12 oz Zima "], ["4983","339",360,"12 oz Zima "], ["4983","54",90,"3 oz Chambord raspberry liqueur "], ["2785","375",60,"2 oz Amaretto "], ["2785","339",360,"12 oz Zima "], ["4521","462",15,"1/2 oz Tequila "], ["4521","315",7.5,"1/4 oz Grand Marnier "], ["4521","422",7.5,"1/4 oz Cream "], ["988","375",60,"2 oz Amaretto "], ["988","304",60,"2 oz Rum "], ["988","32",120,"4 oz Grape Kool-Aid "], ["1599","214",30,"1 oz Light rum "], ["1599","469",15,"1/2 oz Creme de Almond "], ["1599","211",45,"1 1/2 oz Sweet and sour "], ["1599","213",15,"1/2 oz Triple sec "], ["1599","445",45,"1 1/2 oz Orange juice "], ["1599","85",15,"1/2 oz 151 proof rum "], ["3791","214",30,"1 oz Light rum "], ["3791","412",15,"1/2 oz Creme de Noyaux "], ["3791","213",15,"1/2 oz Triple sec "], ["3791","266",45,"1 1/2 oz Sour mix "], ["3791","445",45,"1 1/2 oz Orange juice "], ["3791","85",15,"1/2 oz 151 proof rum "], ["2625","375",15,"1/2 oz Amaretto "], ["2625","240",15,"1/2 oz Coffee liqueur "], ["2625","480",15,"1/2 oz Irish cream "], ["2625","227",15,"1/2 oz Banana liqueur "], ["2625","422",30,"1 oz Cream "], ["2131","424",40,"4 cl Lemon juice "], ["2131","82",0.9,"1 dash Grenadine "], ["2131","445",20,"2 cl Orange juice "], ["2131","116",20,"2 cl Cherry Heering "], ["2131","142",20,"2 cl White rum (Bacardi) "], ["2131","319",60,"6 cl Bacardi Black rum "], ["2131","85",20,"2 cl 151 proof rum "], ["2364","309",30,"1 oz Peach schnapps "], ["2364","119",30,"1 oz Absolut Vodka "], ["2364","375",30,"1 oz Amaretto "], ["3826","357",10,"Layer 1/3 oz Sugar syrup "], ["3826","82",10,"1/3 oz Grenadine "], ["3826","265",10,"1/3 oz Kahlua "], ["3826","146",10,"1/3 oz Midori melon liqueur "], ["3826","479",10,"1/3 oz Galliano "], ["3826","270",10,"1/3 oz Bailey's irish cream "], ["2637","316",37.5,"1 1/4 oz Stoli Vodka "], ["2637","358",7.5,"1/4 oz Ouzo "], ["3715","475",20,"2 cl Sambuca "], ["3715","270",20,"2 cl Bailey's irish cream "], ["3715","205",20,"2 cl White Creme de Menthe "], ["2514","62",60,"2 oz Yukon Jack liqueur "], ["2514","186",0.9,"1 dash Lime juice "], ["4472","342",45,"1 1/2 oz Southern Comfort "], ["4472","211",60,"2 oz Sweet and sour "], ["4472","424",3.7,"1 splash Lemon juice "], ["1249","68",26.5,"1 measure Green Chartreuse "], ["1249","131",0.9,"1 dash Tabasco sauce "], ["2688","266",30,"1 oz Sour mix "], ["2688","316",30,"1 oz Vodka "], ["2688","309",22.5,"3/4 oz Peach schnapps "], ["2688","372",120,"4 oz Cranberry juice "], ["2688","445",3.7,"1 splash Orange juice "], ["2688","261",3.7,"1 splash Pineapple juice "], ["1638","342",15,"1/2 oz Southern Comfort "], ["1638","243",15,"1/2 oz Blueberry schnapps "], ["1358","376",45,"1 1/2 oz Gin "], ["1358","404",30,"1 oz Grapefruit juice "], ["1358","176",0.9,"1 dash Maraschino liqueur "], ["3053","342",37.5,"1 1/4 oz Southern Comfort "], ["3053","213",22.5,"3/4 oz Triple sec "], ["3053","186",30,"1 oz Lime juice "], ["4732","122",60,"2 oz Jack Daniels "], ["4732","342",60,"2 oz Southern Comfort "], ["4732","232",60,"2 oz Wild Turkey "], ["4732","175",90,"3 oz Coca-Cola "], ["4732","22",90,"3 oz 7-Up "], ["991","342",30,"1 oz Southern Comfort "], ["991","266",60,"2 oz Sour mix "], ["1956","342",30,"1 oz Southern Comfort "], ["1956","309",15,"1/2 oz Peach schnapps "], ["1799","342",15,"1/2 oz Southern Comfort "], ["1799","122",15,"1/2 oz Jack Daniels "], ["4374","270",30,"1 oz Bailey's irish cream "], ["4374","342",30,"1 oz Southern Comfort "], ["4817","342",15,"1/2 oz Southern Comfort "], ["4817","36",15,"1/2 oz Malibu rum "], ["4817","261",3.7,"1 splash Pineapple juice "], ["4817","82",0.9,"1 dash Grenadine "], ["4817","424",0.9,"1 dash Lemon juice "], ["5697","342",30,"1 oz Southern Comfort "], ["5697","54",30,"1 oz Chambord raspberry liqueur "], ["5697","375",30,"1 oz Amaretto "], ["5697","266",30,"1 oz Sour mix "], ["3890","372",22.25,"1/2 jigger Cranberry juice "], ["3890","342",29.5,"1 shot Southern Comfort "], ["3890","375",29.5,"1 shot Amaretto "], ["5088","387",45,"1 1/2 oz Dark rum "], ["5088","265",15,"1/2 oz Kahlua "], ["5088","186",10,"2 tsp Lime juice "], ["5137","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["5137","145",14.75,"1/2 shot Rumple Minze "], ["2245","192",45,"1 1/2 oz Brandy "], ["2245","448",45,"1 1/2 oz Apple brandy "], ["2245","124",2.5,"1/2 tsp Anisette "], ["3862","108",20,"2 cl J�germeister "], ["3862","239",20,"2 cl Pear liqueur (Xant� Poire au Cognac) "], ["3862","459",60,"6 cl Lemon-lime mix "], ["3862","485",60,"6 cl Battery "], ["3998","231",30,"1 oz Apricot brandy "], ["3998","445",30,"1 oz Orange juice "], ["3998","211",30,"1 oz Sweet and sour "], ["997","36",30,"1 oz Malibu rum "], ["997","238",30,"1 oz Aliz� "], ["997","108",30,"1 oz J�germeister "], ["4231","105",45,"1 1/2 oz dry Sherry "], ["4231","376",22.5,"3/4 oz Gin "], ["1289","165",22.5,"3/4 oz Strawberry schnapps "], ["1289","71",22.5,"3/4 oz Everclear "], ["1973","347",385.5,"1 1/2 cup Strawberries, fresh "], ["1973","398",20,"4 tsp Honey "], ["1973","352",128.5,"1/2 cup Water "], ["1490","475",29.5,"1 shot Sambuca "], ["1490","479",3.7,"1 splash Galliano "], ["4100","479",14.75,"1/2 shot Galliano "], ["4100","462",14.75,"1/2 shot Tequila "], ["1800","251",15,"1/2 oz Watermelon schnapps "], ["1800","36",15,"1/2 oz Malibu rum "], ["1800","261",30,"1 oz Pineapple juice "], ["1800","82",3.7,"1 splash Grenadine "], ["3063","21",45,"1 1/2 oz Whiskey "], ["3063","266",90,"3 oz Sour mix "], ["3063","82",5,"1 tsp Grenadine "], ["5075","316",200,"20 cl Vodka "], ["5075","252",200,"20 cl Whisky "], ["5075","344",200,"20 cl Dr. Pepper "], ["5075","377",200,"20 cl Chocolate milk "], ["4748","119",30,"1 oz Absolut Vodka "], ["4748","359",30,"1 oz Cointreau "], ["4748","424",7.5,"1/4 oz Lemon juice "], ["4748","186",7.5,"1/4 oz fresh Lime juice "], ["2166","387",30,"1 oz Dark rum "], ["2166","249",15,"1/2 oz Bourbon "], ["2166","479",5,"1 tsp Galliano "], ["2166","445",60,"2 oz Orange juice "], ["1754","387",45,"1 1/2 oz Dark rum "], ["1754","297",7.5,"1/4 oz Blue Curacao "], ["1754","445",45,"1 1/2 oz Orange juice "], ["1754","424",15,"1/2 oz Lemon juice "], ["2019","316",15,"1/2 oz Vodka (Stoli) "], ["2019","146",15,"1/2 oz Midori melon liqueur "], ["2019","36",15,"1/2 oz Malibu rum "], ["2019","297",15,"1/2 oz Blue Curacao "], ["2019","261",15,"1/2 oz Pineapple juice "], ["2019","211",15,"1/2 oz Sweet and sour "], ["3297","42",15,"1/2 oz Irish whiskey (Jameson's) "], ["3297","132",15,"1/2 oz Cinnamon schnapps (Hot Damn) "], ["3297","131",0.9,"1 dash Tabasco sauce "], ["2386","243",60,"2 oz Blueberry schnapps (Blue Tattoo) "], ["2386","323",300,"10 oz Sprite "] ],[],onSuccess,onFailed); } module.exports.down=function(onSuccess,onFailed){ //TODO:delete all the data var dbo=new entity.Base("recipe_drink"); dbo.delete("1=1",true); onSuccess(); }
import Ember from 'ember'; export default Ember.Component.extend({ tagName: 'img', attributeBindings: ['src'], height: 100, width: 100, backgroundColor: 'aaa', textColor: '555', format: undefined, // gif, jpg, jpeg, png text: undefined, src: Ember.computed('height', 'width', 'backgroundColor', 'textColor', 'format', function() { // build url for placeholder image var base = 'http://placehold.it/'; var src = base + this.get('width') + 'x' + this.get('height') + '/'; src += this.get('backgroundColor') + '/' + this.get('textColor'); // check for image format if (this.get('format')) { src += '.' + this.get('format'); } // check for custom placeholder text if (this.get('text')) { src += '&text=' + this.get('text'); } return src; }) });