/*! jQuery Contextify - Lightweight Context Menu - v1.0.1 - 2014-10-21 * http://contextify.donlabs.com * Copyright (c) 2014 ABE Media - Web Design Brighton; Licensed GPL-2.0 */ !function(a,b){function c(b,c){this.element=b,this.options=a.extend({},e,c),this._defaults=e,this._name=d,this.init()}var d="contextify",e={propertyName:"value"},f=0;c.prototype.init=function(){var c,e=a('
'),g=this.options.items.length;for(c=0;g>c;c++){var h=this.options.items[c],i=a("");h.divider?i.addClass("divider"):h.header?(i.addClass("dropdown-header"),i.text(h.text)):(i.append(""),i.find("a").text(h.text),h.href&&i.find("a").attr("href",h.href),h.onclick&&i.on("click",h.onclick)),e.append(i)}e.attr("id",d+"-"+f),a("body").append(e),a(this.element).attr("data-contextify-id",f).on("contextmenu",function(c){c.preventDefault();var e=a("#"+d+"-"+a(this).attr("data-contextify-id")),f=e.width()+c.clientX