Posted By

makingthings on 03/14/13


Tagged

jquery


Versions (?)

Rotating Type


 / Published in: jQuery
 

URL: https://droplr.com/hello?utm_campaign=Free%2BDrop%2BLogo&utm_content=Logo&utm_medium=logo%2Blink&utm_source=d.pr

Nice anumated type

  1. function Matrix(){}function DroplrKit(){this.uploadEndpoint=null,this.connectCallback=null,this.progressCallback=null,this.successCallback=null,this.failureCallback=null,this.xhr=null}(function(e,t){var n=function(){var t=e._data(document,"events");return t&&t.click&&e.grep(t.click,function(e){return e.namespace==="rails"}).length};n()&&e.error("jquery-ujs has already been loaded!");var r;e.rails=r={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input:file",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(t){var n=e('meta[name="csrf-token"]').attr("content");n&&t.setRequestHeader("X-CSRF-Token",n)},fire:function(t,n,r){var i=e.Event(n);return t.trigger(i,r),i.result!==!1},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e.attr("href")},handleRemote:function(n){var i,s,o,u,a,f,l,c;if(r.fire(n,"ajax:before")){u=n.data("cross-domain"),a=u===t?null:u,f=n.data("with-credentials")||null,l=n.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType;if(n.is("form")){i=n.attr("method"),s=n.attr("action"),o=n.serializeArray();var h=n.data("ujs:submit-button");h&&(o.push(h),n.data("ujs:submit-button",null))}else n.is(r.inputChangeSelector)?(i=n.data("method"),s=n.data("url"),o=n.serialize(),n.data("params")&&(o=o+"&"+n.data("params"))):(i=n.data("method"),s=r.href(n),o=n.data("params")||null);c={type:i||"GET",data:o,dataType:l,beforeSend:function(e,i){return i.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+i.accepts.script),r.fire(n,"ajax:beforeSend",[e,i])},success:function(e,t,r){n.trigger("ajax:success",[e,t,r])},complete:function(e,t){n.trigger("ajax:complete",[e,t])},error:function(e,t,r){n.trigger("ajax:error",[e,t,r])},xhrFields:{withCredentials:f},crossDomain:a},s&&(c.url=s);var p=r.ajax(c);return n.trigger("ajax:send",p),p}return!1},handleMethod:function(n){var i=r.href(n),s=n.data("method"),o=n.attr("target"),u=e("meta[name=csrf-token]").attr("content"),a=e("meta[name=csrf-param]").attr("content"),f=e('<form method="post" action="'+i+'"></form>'),l='<input name="_method" value="'+s+'" type="hidden" />';a!==t&&u!==t&&(l+='<input name="'+a+'" value="'+u+'" type="hidden" />'),o&&f.attr("target",o),f.hide().append(l).appendTo("body"),f.submit()},disableFormElements:function(t){t.find(r.disableSelector).each(function(){var t=e(this),n=t.is("button")?"html":"val";t.data("ujs:enable-with",t[n]()),t[n](t.data("disable-with")),t.prop("disabled",!0)})},enableFormElements:function(t){t.find(r.enableSelector).each(function(){var t=e(this),n=t.is("button")?"html":"val";t.data("ujs:enable-with")&&t[n](t.data("ujs:enable-with")),t.prop("disabled",!1)})},allowAction:function(e){var t=e.data("confirm"),n=!1,i;return t?(r.fire(e,"confirm")&&(n=r.confirm(t),i=r.fire(e,"confirm:complete",[n])),n&&i):!0},blankInputs:function(t,n,r){var i=e(),s,o,u=n||"input,textarea",a=t.find(u);return a.each(function(){s=e(this),o=s.is(":checkbox,:radio")?s.is(":checked"):s.val();if(!o==!r){if(s.is(":radio")&&a.filter('input:radio:checked[name="'+s.attr("name")+'"]').length)return!0;i=i.add(s)}}),i.length?i:!1},nonBlankInputs:function(e,t){return r.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},callFormSubmitBindings:function(n,r){var i=n.data("events"),s=!0;return i!==t&&i.submit!==t&&e.each(i.submit,function(e,t){if(typeof t.handler=="function")return s=t.handler(r)}),s},disableElement:function(e){e.data("ujs:enable-with",e.html()),e.html(e.data("disable-with")),e.bind("click.railsDisable",function(e){return r.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.data("ujs:enable-with",!1)),e.unbind("click.railsDisable")}},r.fire(e(document),"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,n){e.crossDomain||r.CSRFProtection(n)}),e(document).delegate(r.linkDisableSelector,"ajax:complete",function(){r.enableElement(e(this))}),e(document).delegate(r.linkClickSelector,"click.rails",function(n){var i=e(this),s=i.data("method"),o=i.data("params");if(!r.allowAction(i))return r.stopEverything(n);i.is(r.linkDisableSelector)&&r.disableElement(i);if(i.data("remote")!==t){if((n.metaKey||n.ctrlKey)&&(!s||s==="GET")&&!o)return!0;var u=r.handleRemote(i);return u===!1?r.enableElement(i):u.error(function(){r.enableElement(i)}),!1}if(i.data("method"))return r.handleMethod(i),!1}),e(document).delegate(r.inputChangeSelector,"change.rails",function(t){var n=e(this);return r.allowAction(n)?(r.handleRemote(n),!1):r.stopEverything(t)}),e(document).delegate(r.formSubmitSelector,"submit.rails",function(n){var i=e(this),s=i.data("remote")!==t,o=r.blankInputs(i,r.requiredInputSelector),u=r.nonBlankInputs(i,r.fileInputSelector);if(!r.allowAction(i))return r.stopEverything(n);if(o&&i.attr("novalidate")==t&&r.fire(i,"ajax:aborted:required",[o]))return r.stopEverything(n);if(s){if(u){setTimeout(function(){r.disableFormElements(i)},13);var a=r.fire(i,"ajax:aborted:file",[u]);return a||setTimeout(function(){r.enableFormElements(i)},13),a}return!e.support.submitBubbles&&e().jquery<"1.7"&&r.callFormSubmitBindings(i,n)===!1?r.stopEverything(n):(r.handleRemote(i),!1)}setTimeout(function(){r.disableFormElements(i)},13)}),e(document).delegate(r.formInputClickSelector,"click.rails",function(t){var n=e(this);if(!r.allowAction(n))return r.stopEverything(t);var i=n.attr("name"),s=i?{name:i,value:n.val()}:null;n.closest("form").data("ujs:submit-button",s)}),e(document).delegate(r.formSubmitSelector,"ajax:beforeSend.rails",function(t){this==t.target&&r.disableFormElements(e(this))}),e(document).delegate(r.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&r.enableFormElements(e(this))}),e(function(){csrf_token=e("meta[name=csrf-token]").attr("content"),csrf_param=e("meta[name=csrf-param]").attr("content"),e('form input[name="'+csrf_param+'"]').val(csrf_token)}))})(jQuery),Droplr.TemplateCache={get:function(e){this.templates||(this.templates={});var t=this.templates[e];return t||(t=$(e).html(),t=Hogan.compile($.trim(t)),this.templates[e]=t),t}};var Hogan={};(function(e,t){function a(e){return String(e===null||e===undefined?"":e)}function f(e){return e=a(e),u.test(e)?e.replace(n,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(s,"&#39;").replace(o,"&quot;"):e}e.Template=function(e,n,r,i){this.r=e||this.r,this.c=r,this.options=i,this.text=n||"",this.buf=t?[]:""},e.Template.prototype={r:function(e,t,n){return""},v:f,t:a,render:function(t,n,r){return this.ri([t],n||{},r)},ri:function(e,t,n){return this.r(e,t,n)},rp:function(e,t,n,r){var i=n[e];return i?(this.c&&typeof i=="string"&&(i=this.c.compile(i,this.options)),i.ri(t,n,r)):""},rs:function(e,t,n){var r=e[e.length-1];if(!l(r)){n(e,t,this);return}for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop()},s:function(e,t,n,r,i,s,o){var u;return l(e)&&e.length===0?!1:(typeof e=="function"&&(e=this.ls(e,t,n,r,i,s,o)),u=e===""||!!e,!r&&u&&t&&t.push(typeof e=="object"?e:t[t.length-1]),u)},d:function(e,t,n,r){var i=e.split("."),s=this.f(i[0],t,n,r),o=null;if(e==="."&&l(t[t.length-2]))return t[t.length-1];for(var u=1;u<i.length;u++)s&&typeof s=="object"&&i[u]in s?(o=s,s=s[i[u]]):s="";return r&&!s?!1:(!r&&typeof s=="function"&&(t.push(o),s=this.lv(s,t,n),t.pop()),s)},f:function(e,t,n,r){var i=!1,s=null,o=!1;for(var u=t.length-1;u>=0;u--){s=t[u];if(s&&typeof s=="object"&&e in s){i=s[e],o=!0;break}}return o?(!r&&typeof i=="function"&&(i=this.lv(i,t,n)),i):r?!1:""},ho:function(e,t,n,r,i){var s=this.c,o=this.options;o.delimiters=i;var r=e.call(t,r);return r=r==null?String(r):r.toString(),this.b(s.compile(r,o).render(t,n)),!1},b:t?function(e){this.buf.push(e)}:function(e){this.buf+=e},fl:t?function(){var e=this.buf.join("");return this.buf=[],e}:function(){var e=this.buf;return this.buf="",e},ls:function(e,t,n,r,i,s,o){var u=t[t.length-1],a=null;if(!r&&this.c&&e.length>0)return this.ho(e,u,n,this.text.substring(i,s),o);a=e.call(u);if(typeof a=="function"){if(r)return!0;if(this.c)return this.ho(a,u,n,this.text.substring(i,s),o)}return a},lv:function(e,t,n){var r=t[t.length-1],i=e.call(r);if(typeof i=="function"){i=a(i.call(r));if(this.c&&~i.indexOf("{{"))return this.c.compile(i,this.options).render(r,n)}return a(i)}};var n=/&/g,r=/</g,i=/>/g,s=/\'/g,o=/\"/g,u=/[&<>\"\']/,l=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}})(typeof exports!="undefined"?exports:Hogan),function(e){function u(e){e.n.substr(e.n.length-1)==="}"&&(e.n=e.n.substring(0,e.n.length-1))}function a(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function f(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}function l(e,t,n,r){var i=[],s=null,o=null;while(e.length>0){o=e.shift();if(o.tag=="#"||o.tag=="^"||c(o,r))n.push(o),o.nodes=l(e,o.tag,n,r),i.push(o);else{if(o.tag=="/"){if(n.length===0)throw new Error("Closing tag without opener: /"+o.n);s=n.pop();if(o.n!=s.n&&!h(o.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+o.n);return s.end=o.i,i}i.push(o)}}if(n.length>0)throw new Error("missing closing tag: "+n.pop().n);return i}function c(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function h(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function p(e){return e.replace(s,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r")}function d(e){return~e.indexOf(".")?"d":"f"}function v(e){var t="";for(var n=0,r=e.length;n<r;n++){var i=e[n].tag;i=="#"?t+=m(e[n].nodes,e[n].n,d(e[n].n),e[n].i,e[n].end,e[n].otag+" "+e[n].ctag):i=="^"?t+=g(e[n].nodes,e[n].n,d(e[n].n)):i=="<"||i==">"?t+=y(e[n]):i=="{"||i=="&"?t+=b(e[n].n,d(e[n].n)):i=="\n"?t+=E('"\\n"'+(e.length-1==n?"":" + i")):i=="_v"?t+=w(e[n].n,d(e[n].n)):i===undefined&&(t+=E('"'+p(e[n])+'"'))}return t}function m(e,t,n,r,i,s){return"if(_.s(_."+n+'("'+p(t)+'",c,p,1),'+"c,p,0,"+r+","+i+',"'+s+'")){'+"_.rs(c,p,"+"function(c,p,_){"+v(e)+"});c.pop();}"}function g(e,t,n){return"if(!_.s(_."+n+'("'+p(t)+'",c,p,1),c,p,1,0,0,"")){'+v(e)+"};"}function y(e){return'_.b(_.rp("'+p(e.n)+'",c,p,"'+(e.indent||"")+'"));'}function b(e,t){return"_.b(_.t(_."+t+'("'+p(e)+'",c,p,0)));'}function w(e,t){return"_.b(_.v(_."+t+'("'+p(e)+'",c,p,0)));'}function E(e){return"_.b("+e+");"}var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,s=/\\/g,o={"#":1,"^":2,"/":3,"!":4,">":5,"<":6,"=":7,_v:8,"{":9,"&":10};e.scan=function(n,r){function S(){v.length>0&&(m.push(new String(v)),v="")}function x(){var e=!0;for(var n=b;n<m.length;n++){e=m[n].tag&&o[m[n].tag]<o._v||!m[n].tag&&m[n].match(t)===null;if(!e)return!1}return e}function T(e,t){S();if(e&&x())for(var n=b,r;n<m.length;n++)m[n].tag||((r=m[n+1])&&r.tag==">"&&(r.indent=m[n].toString()),m.splice(n,1));else t||m.push({tag:"\n"});g=!1,b=m.length}function N(e,t){var n="="+E,r=e.indexOf(n,t),i=a(e.substring(e.indexOf("=",t)+1,r)).split(" ");return w=i[0],E=i[1],r+n.length-1}var i=n.length,s=0,l=1,c=2,h=s,p=null,d=null,v="",m=[],g=!1,y=0,b=0,w="{{",E="}}";r&&(r=r.split(" "),w=r[0],E=r[1]);for(y=0;y<i;y++)h==s?f(w,n,y)?(--y,S(),h=l):n.charAt(y)=="\n"?T(g):v+=n.charAt(y):h==l?(y+=w.length-1,d=o[n.charAt(y+1)],p=d?n.charAt(y+1):"_v",p=="="?(y=N(n,y),h=s):(d&&y++,h=c),g=y):f(E,n,y)?(m.push({tag:p,n:a(v),otag:w,ctag:E,i:p=="/"?g-E.length:y+w.length}),v="",y+=E.length-1,h=s,p=="{"&&(E=="}}"?y++:u(m[m.length-1]))):v+=n.charAt(y);return T(g,!0),m},e.generate=function(t,n,r){var i='var _=this;_.b(i=i||"");'+v(t)+"return _.fl();";return r.asString?"function(c,p,i){"+i+";}":new e.Template(new Function("c","p","i",i),n,e,r)},e.parse=function(e,t,n){return n=n||{},l(e,"",[],n.sectionTags||[])},e.cache={},e.compile=function(e,t){t=t||{};var n=e+"||"+!!t.asString,r=this.cache[n];return r?r:(r=this.generate(this.parse(this.scan(e,t.delimiters),e,t),e,t),this.cache[n]=r)}}(typeof exports!="undefined"?exports:Hogan),function(){"use strict";var e=function(e,t){var n=e.style[t];e.currentStyle?n=e.currentStyle[t]:window.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t));if(n=="auto"&&t=="cursor"){var r=["a"];for(var i=0;i<r.length;i++)if(e.tagName.toLowerCase()==r[i])return"pointer"}return n},t=function(e){if(!c.prototype._singleton)return;e||(e=window.event);var t;this!==window?t=this:e.target?t=e.target:e.srcElement&&(t=e.srcElement),c.prototype._singleton.setCurrent(t)},n=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},r=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},i=function(e,t){if(e.addClass)return e.addClass(t),e;if(t&&typeof t=="string"){var n=(t||"").split(/\s+/);if(e.nodeType===1)if(!e.className)e.className=t;else{var r=" "+e.className+" ",i=e.className;for(var s=0,o=n.length;s<o;s++)r.indexOf(" "+n[s]+" ")<0&&(i+=" "+n[s]);e.className=i.replace(/^\s+|\s+$/g,"")}}return e},s=function(e,t){if(e.removeClass)return e.removeClass(t),e;if(t&&typeof t=="string"||t===undefined){var n=(t||"").split(/\s+/);if(e.nodeType===1&&e.className)if(t){var r=(" "+e.className+" ").replace(/[\n\t]/g," ");for(var i=0,s=n.length;i<s;i++)r=r.replace(" "+n[i]+" "," ");e.className=r.replace(/^\s+|\s+$/g,"")}else e.className=""}return e},o=function(t){var n={left:0,top:0,width:t.width||t.offsetWidth||0,height:t.height||t.offsetHeight||0,zIndex:9999},r=e(t,"zIndex");r&&r!="auto"&&(n.zIndex=parseInt(r,10));while(t){var i=parseInt(e(t,"borderLeftWidth"),10),s=parseInt(e(t,"borderTopWidth"),10);n.left+=isNaN(t.offsetLeft)?0:t.offsetLeft,n.left+=isNaN(i)?0:i,n.top+=isNaN(t.offsetTop)?0:t.offsetTop,n.top+=isNaN(s)?0:s,t=t.offsetParent}return n},u=function(e){return(e.indexOf("?")>=0?"&":"?")+"nocache="+(new Date).getTime()},a=function(e){var t=[];return e.trustedDomains&&(typeof e.trustedDomains=="string"?t.push("trustedDomain="+e.trustedDomains):t.push("trustedDomain="+e.trustedDomains.join(","))),t.join("&")},f=function(e,t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},l=function(e){if(typeof e=="string")throw new TypeError("ZeroClipboard doesn't accept query strings.");return e.length?e:[e]},c=function(e,t){e&&(c.prototype._singleton||this).glue(e);if(c.prototype._singleton)return c.prototype._singleton;c.prototype._singleton=this,this.options={};for(var n in d)this.options[n]=d[n];for(var r in t)this.options[r]=t[r];this.handlers={},c.detectFlashSupport()&&v()},h,p=[];c.prototype.setCurrent=function(t){h=t,this.reposition(),t.getAttribute("title")&&this.setTitle(t.getAttribute("title")),this.setHandCursor(e(t,"cursor")=="pointer")},c.prototype.setText=function(e){e&&e!==""&&(this.options.text=e,this.ready()&&this.flashBridge.setText(e))},c.prototype.setTitle=function(e){e&&e!==""&&this.htmlBridge.setAttribute("title",e)},c.prototype.setSize=function(e,t){this.ready()&&this.flashBridge.setSize(e,t)},c.prototype.setHandCursor=function(e){this.ready()&&this.flashBridge.setHandCursor(e)},c.version="1.1.7";var d={moviePath:"ZeroClipboard.swf",trustedDomains:null,text:null,hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",allowScriptAccess:"sameDomain"};c.setDefaults=function(e){for(var t in e)d[t]=e[t]},c.destroy=function(){c.prototype._singleton.unglue(p);var e=c.prototype._singleton.htmlBridge;e.parentNode.removeChild(e),delete c.prototype._singleton},c.detectFlashSupport=function(){var e=!1;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(t){navigator.mimeTypes["application/x-shockwave-flash"]&&(e=!0)}return e};var v=function(){var e=c.prototype._singleton,t=document.getElementById("global-zeroclipboard-html-bridge");if(!t){var n=' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="global-zeroclipboard-flash-bridge" width="100%" height="100%"> <param name="movie" value="'+e.options.moviePath+u(e.options.moviePath)+'"/> <param name="allowScriptAccess" value="'+e.options.allowScriptAccess+'"/> <param name="scale" value="exactfit"/> <param name="loop" value="false"/> <param name="menu" value="false"/> <param name="quality" value="best" /> <param name="bgcolor" value="#ffffff"/> <param name="wmode" value="transparent"/> <param name="flashvars" value="'+a(e.options)+'"/> <embed src="'+e.options.moviePath+u(e.options.moviePath)+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="100%" height="100%" name="global-zeroclipboard-flash-bridge" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+a(e.options)+'" scale="exactfit"> </embed> </object>';t=document.createElement("div"),t.id="global-zeroclipboard-html-bridge",t.setAttribute("class","global-zeroclipboard-container"),t.setAttribute("data-clipboard-ready",!1),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="15px",t.style.height="15px",t.style.zIndex="9999",t.innerHTML=n,document.body.appendChild(t)}e.htmlBridge=t,e.flashBridge=document["global-zeroclipboard-flash-bridge"]||t.children[0].lastElementChild};c.prototype.resetBridge=function(){this.htmlBridge.style.left="-9999px",this.htmlBridge.style.top="-9999px",this.htmlBridge.removeAttribute("title"),this.htmlBridge.removeAttribute("data-clipboard-text"),s(h,this.options.activeClass),h=null,this.options.text=null},c.prototype.ready=function(){var e=this.htmlBridge.getAttribute("data-clipboard-ready");return e==="true"||e===!0},c.prototype.reposition=function(){if(!h)return!1;var e=o(h);this.htmlBridge.style.top=e.top+"px",this.htmlBridge.style.left=e.left+"px",this.htmlBridge.style.width=e.width+"px",this.htmlBridge.style.height=e.height+"px",this.htmlBridge.style.zIndex=e.zIndex+1,this.setSize(e.width,e.height)},c.dispatch=function(e,t){c.prototype._singleton.receiveEvent(e,t)},c.prototype.on=function(e,t){var n=e.toString().split(/\s/g);for(var r=0;r<n.length;r++)e=n[r].toLowerCase().replace(/^on/,""),this.handlers[e]||(this.handlers[e]=t);this.handlers.noflash&&!c.detectFlashSupport()&&this.receiveEvent("onNoFlash",null)},c.prototype.addEventListener=c.prototype.on,c.prototype.off=function(e,t){var n=e.toString().split(/\s/g);for(var r=0;r<n.length;r++){e=n[r].toLowerCase().replace(/^on/,"");for(var i in this.handlers)i===e&&this.handlers[i]===t&&delete this.handlers[i]}},c.prototype.removeEventListener=c.prototype.off,c.prototype.receiveEvent=function(e,t){e=e.toString().toLowerCase().replace(/^on/,"");var n=h;switch(e){case"load":if(t&&parseFloat(t.flashVersion.replace(",",".").replace(/[^0-9\.]/gi,""))<10){this.receiveEvent("onWrongFlash",{flashVersion:t.flashVersion});return}this.htmlBridge.setAttribute("data-clipboard-ready",!0);break;case"mouseover":i(n,this.options.hoverClass);break;case"mouseout":s(n,this.options.hoverClass),this.resetBridge();break;case"mousedown":i(n,this.options.activeClass);break;case"mouseup":s(n,this.options.activeClass);break;case"datarequested":var r=n.getAttribute("data-clipboard-target"),o=r?document.getElementById(r):null;if(o){var u=o.value||o.textContent||o.innerText;u&&this.setText(u)}else{var a=n.getAttribute("data-clipboard-text");a&&this.setText(a)}break;case"complete":this.options.text=null}if(this.handlers[e]){var f=this.handlers[e];typeof f=="function"?f.call(n,this,t):typeof f=="string"&&window[f].call(n,this,t)}},c.prototype.glue=function(e){e=l(e);for(var r=0;r<e.length;r++)f(e[r],p)==-1&&(p.push(e[r]),n(e[r],"mouseover",t))},c.prototype.unglue=function(e){e=l(e);for(var n=0;n<e.length;n++){r(e[n],"mouseover",t);var i=f(e[n],p);i!=-1&&p.splice(i,1)}},typeof module!="undefined"?module.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.ZeroClipboard=c}(),function(e){e.fn.lightbox_me=function(t){return this.each(function(){function u(){var t=i[0].style,o=i.add(r);n.destroyOnClose&&n.animateClose?o.fadeOut(100,function(){o.remove()}):n.destroyOnClose?o.remove():n.hideOnClose&&n.animateClose?i.add(r).fadeOut(100):n.hideOnClose?i.add(r).hide():r.remove(),n.parentLightbox&&n.parentLightbox.fadeIn(200),s.remove(),i.undelegate(n.closeSelector,"click"),e(window).unbind("reposition",f),e(window).unbind("reposition",l),e(window).unbind("scroll",l),e(document).unbind("keyup",a),n.onClose()}function a(e){(e.keyCode==27||e.DOM_VK_ESCAPE==27&&e.which==0)&&n.closeEsc&&u()}function f(){e(window).height()<e(document).height()?(r.css({height:e(document).height()+"px"}),s.css({height:e(document).height()+"px"})):r.css({height:"100%"})}function l(){var r=i[0].style;i.css({left:"50%",marginLeft:i.outerWidth()/2*-1,zIndex:n.zIndex+3});if(i.height()+80>=e(window).height()&&i.css("position")!="absolute"&&n.centered){var s=e(document).scrollTop()+40;i.css({position:"absolute",top:s+"px",marginTop:0})}else i.height()+80<e(window).height()?n.centered?i.css({position:"fixed",top:"50%",marginTop:i.outerHeight()/2*-1}):i.css({position:"fixed"}).css(n.modalCSS):t.modalCSS&&i.css(n.modalCSS)}var n=e.extend({},e.fn.lightbox_me.defaults,t),r=e(),i=e(this),s=e('<iframe id="foo" style="z-index: '+(n.zIndex+1)+';border: none; margin: 0; padding: 0; position: absolute; width: 100%; height: 100%; top: 0; left: 0; filter: mask();"/>');if(n.showOverlay){var o=e(".js_lb_overlay:visible");o.length>0?r=e('<div class="lb_overlay_clear js_lb_overlay"/>'):r=e('<div class="'+n.classPrefix+'_overlay js_lb_overlay"/>')}e("body").append(i.hide()).append(r),n.showOverlay&&(f(),r.css({position:"absolute",width:"100%",top:0,left:0,right:0,bottom:0,zIndex:n.zIndex+2,display:"none"}),r.hasClass("lb_overlay_clear")||r.css(n.overlayCSS)),n.showOverlay?(l(),r.fadeIn(n.overlaySpeed,function(){i[n.appearEffect](n.lightboxSpeed,function(){f(),l(),n.onLoad()})})):(l(),i[n.appearEffect](n.lightboxSpeed,function(){n.onLoad()})),n.parentLightbox&&n.parentLightbox.fadeOut(200),e(window).resize(f).resize(l).scroll(l).keyup(a),n.closeClick&&r.click(function(e){u(),e.preventDefault}),i.delegate(n.closeSelector,"click",function(e){u(),e.preventDefault()}),i.bind("close",u),i.bind("reposition",l)})},e.fn.lightbox_me.defaults={appearEffect:"fadeIn",appearEase:"",overlaySpeed:250,lightboxSpeed:300,closeSelector:".close",closeClick:!0,closeEsc:!0,hideOnClose:!0,destroyOnClose:!1,showOverlay:!0,parentLightbox:!1,animateClose:!0,onLoad:function(){},onClose:function(){},classPrefix:"lb",zIndex:999,centered:!1,modalCSS:{top:"40px"},overlayCSS:{background:"black",opacity:.3}}}(jQuery),function(e,t){function dt(e){if(e&&typeof e=="object"&&e.__wrapped__)return e;if(!(this instanceof dt))return new dt(e);this.__wrapped__=e}function vt(t,n){return e.eval("(function("+t+") {"+n+"\n})")}function wt(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||a);if(i){var s={},o=t-1;while(++o<r){var u=e[o]+"";(A.call(s,u)?s[u]:s[u]=[]).push(e[o])}}return function(n){if(i){var r=n+"";return A.call(s,r)&&In(s[r],n)>-1}return In(e,n,t)>-1}}function Et(e){return e.charCodeAt(0)}function St(e,t){var n=e.index,r=t.index;e=e.criteria,t=t.criteria;if(e!==t){if(e>t||typeof e=="undefined")return 1;if(e<t||typeof t=="undefined")return-1}return n<r?-1:1}function xt(e,t,n){function o(){var u=arguments,a=i?this:t;r||(e=t[s]),n.length&&(u=u.length?n.concat(Ot(u)):n);if(this instanceof o){At.prototype=e.prototype,a=new At,At.prototype=null;var f=e.apply(a,u);return Zt(f)?f:a}return e.apply(a,u)}var r=Yt(e),i=!n,s=t;return i&&(n=t),r||(t=e),o}function Tt(e,t){return e?typeof e!="function"?function(t){return t[e]}:typeof t!="undefined"?function(n,r,i){return e.call(t,n,r,i)}:e:hr}function Nt(){var e={arrayLoop:"",bottom:"",hasDontEnumBug:tt,isKeysFast:et,objectLoop:"",noArgsEnum:it,noCharByIndex:ot,shadowed:x,top:"",useHas:!0};for(var t,n=0;t=arguments[n];n++)for(var r in t)e[r]=t[r];var i=e.args;e.firstArg=/^[^,]+/.exec(i)[0];var s=vt("createCallback, hasOwnProperty, isArguments, isString, objectTypes, nativeKeys, propertyIsEnumerable","return function("+i+") {\n"+mt(e)+"\n}");return s(Tt,A,Dt,on,ht,j,M)}function Ct(e){return"\\"+pt[e]}function kt(e){return Ft[e]}function Lt(e){return typeof e.toString!="function"&&typeof (e+"")=="string"}function At(){}function Ot(e,t,n){t||(t=0),typeof n=="undefined"&&(n=e?e.length:0);var r=-1,i=n-t||0,s=Array(i<0?0:i);while(++r<i)s[r]=e[t+r];return s}function Mt(e){return It[e]}function Dt(e){return _.call(e)==R}function Bt(e){var t=!1;if(!e||typeof e!="object"||Dt(e))return t;var n=e.constructor;return!Yt(n)&&(!ut||!Lt(e))||n instanceof n?nt?(Pt(e,function(e,n,r){return t=!A.call(r,n),!1}),t===!1):(Pt(e,function(e,n){t=n}),t===!1||A.call(e,t)):t}function jt(e){var t=[];return Ht(e,function(e,n){t.push(n)}),t}function qt(e,t,n,r,i){if(e==null)return e;n&&(t=!1);var s=Zt(e);if(s){var o=_.call(e);if(!lt[o]||ut&&Lt(e))return e;var u=Xt(e)}if(!s||!t)return s?u?Ot(e):_t({},e):e;var a=ct[o];switch(o){case z:case W:return new a(+e);case V:case K:return new a(e);case J:return a(e.source,v.exec(e))}r||(r=[]),i||(i=[]);var f=r.length;while(f--)if(r[f]==e)return i[f];var l=u?a(e.length):{};return r.push(e),i.push(l),(u?bn:Ht)(e,function(e,n){l[n]=qt(e,t,null,r,i)}),u&&(A.call(e,"index")&&(l.index=e.index),A.call(e,"input")&&(l.input=e.input)),l}function Ut(e){var t=[];return Pt(e,function(e,n){Yt(e)&&t.push(n)}),t.sort()}function zt(e,t){return e?A.call(e,t):!1}function Wt(e){var t={};return Ht(e,function(e,n){t[e]=n}),t}function Vt(e){return e===!0||e===!1||_.call(e)==z}function $t(e){return _.call(e)==W}function Jt(e){return e?e.nodeType===1:!1}function Kt(e){var t=!0;if(!e)return t;var n=_.call(e),r=e.length;return n==U||n==K||n==R||st&&Dt(e)||n==$&&typeof r=="number"&&Yt(e.splice)?!r:(Ht(e,function(){return t=!1}),t)}function Qt(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;var i=_.call(e),s=_.call(t);i==R&&(i=$),s==R&&(s=$);if(i!=s)return!1;switch(i){case z:case W:return+e==+t;case V:return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case J:case K:return e==t+""}var o=i==U;if(!o){if(e.__wrapped__||t.__wrapped__)return Qt(e.__wrapped__||e,t.__wrapped__||t);if(i!=$||ut&&(Lt(e)||Lt(t)))return!1;var u=st&&Dt(e)?Object:e.constructor,a=st&&Dt(t)?Object:t.constructor;if(u!=a&&!(Yt(u)&&u instanceof u&&Yt(a)&&a instanceof a))return!1}n||(n=[]),r||(r=[]);var f=n.length;while(f--)if(n[f]==e)return r[f]==t;var l=-1,c=!0,h=0;n.push(e),r.push(t);if(o){h=e.length,c=h==t.length;if(c)while(h--)if(!(c=Qt(e[h],t[h],n,r)))break;return c}return Pt(e,function(e,i,s){if(A.call(s,i))return h++,c=A.call(t,i)&&Qt(e,t[i],n,r)}),c&&Pt(t,function(e,t,n){if(A.call(n,t))return c=--h>-1}),c}function Gt(e){return H(e)&&!B(parseFloat(e))}function Yt(e){return typeof e=="function"}function Zt(e){return e?ht[typeof e]:!1}function en(e){return nn(e)&&e!=+e}function tn(e){return e===null}function nn(e){return typeof e=="number"||_.call(e)==V}function sn(e){return _.call(e)==J}function on(e){return typeof e=="string"||_.call(e)==K}function un(e){return typeof e=="undefined"}function fn(e,t,n){var r=arguments,i=0,s=2,o=r[3],a=r[4];n!==u&&(o=[],a=[],typeof n!="number"&&(s=r.length));while(++i<s)Ht(r[i],function(t,n){var r,i,s;if(t&&((i=Xt(t))||rn(t))){var f=o.length;while(f--){r=o[f]==t;if(r)break}r?e[n]=a[f]:(o.push(t),a.push(s=(s=e[n],i)?Xt(s)?s:[]:rn(s)?s:{}),e[n]=fn(s,t,u,o,a))}else t!=null&&(e[n]=t)});return e}function ln(e,t,n){var r=typeof t=="function",s={};if(r)t=Tt(t,n);else var o=C.apply(i,arguments);return Pt(e,function(e,n,i){if(r?!t(e,n,i):In(o,n,1)<0)s[n]=e}),s}function cn(e){var t=[];return Ht(e,function(e,n){t.push([n,e])}),t}function hn(e,t,n){var r={};if(typeof t!="function"){var s=0,o=C.apply(i,arguments),u=o.length;while(++s<u){var a=o[s];a in e&&(r[a]=e[a])}}else t=Tt(t,n),Pt(e,function(e,n,i){t(e,n,i)&&(r[n]=e)});return r}function pn(e){var t=[];return Ht(e,function(e){t.push(e)}),t}function dn(e,t,n){var r=-1,i=e?e.length:0,s=!1;return n=(n<0?F(0,i+n):n)||0,typeof i=="number"?s=(on(e)?e.indexOf(t,n):In(e,t,n))>-1:bn(e,function(e){if(++r>=n)return!(s=e===t)}),s}function vn(e,t,n){var r={};return t=Tt(t,n),bn(e,function(e,n,i){n=t(e,n,i),A.call(r,n)?r[n]++:r[n]=1}),r}function mn(e,t,n){var r=!0;t=Tt(t,n);if(Xt(e)){var i=-1,s=e.length;while(++i<s)if(!(r=!!t(e[i],i,e)))break}else bn(e,function(e,n,i){return r=!!t(e,n,i)});return r}function gn(e,t,n){var r=[];t=Tt(t,n);if(Xt(e)){var i=-1,s=e.length;while(++i<s){var o=e[i];t(o,i,e)&&r.push(o)}}else bn(e,function(e,n,i){t(e,n,i)&&r.push(e)});return r}function yn(e,t,n){var r;return t=Tt(t,n),bn(e,function(e,n,i){if(t(e,n,i))return r=e,!1}),r}function wn(e,t,n){var r={};return t=Tt(t,n),bn(e,function(e,n,i){n=t(e,n,i),(A.call(r,n)?r[n]:r[n]=[]).push(e)}),r}function En(e,t){var n=Ot(arguments,2),r=typeof t=="function",i=[];return bn(e,function(e){i.push((r?t:e[t]).apply(e,n))}),i}function Sn(e,t,n){var r=-1,i=e?e.length:0,s=Array(typeof i=="number"?i:0);t=Tt(t,n);if(Xt(e))while(++r<i)s[r]=t(e[r],r,e);else bn(e,function(e,n,i){s[++r]=t(e,n,i)});return s}function xn(e,t,n){var r=-Infinity,i=-1,s=e?e.length:0,o=r;if(t||!Xt(e))t=!t&&on(e)?Et:Tt(t,n),bn(e,function(e,n,i){var s=t(e,n,i);s>r&&(r=s,o=e)});else while(++i<s)e[i]>o&&(o=e[i]);return o}function Tn(e,t,n){var r=Infinity,i=-1,s=e?e.length:0,o=r;if(t||!Xt(e))t=!t&&on(e)?Et:Tt(t,n),bn(e,function(e,n,i){var s=t(e,n,i);s<r&&(r=s,o=e)});else while(++i<s)e[i]<o&&(o=e[i]);return o}function Nn(e,t){return Sn(e,t+"")}function Cn(e,t,n,r){var i=arguments.length<3;return t||(t=hr),bn(e,function(e,s,o){n=i?(i=!1,e):t.call(r,n,e,s,o)}),n}function kn(e,t,n,r){var i=e,s=e?e.length:0,o=arguments.length<3;if(typeof s!="number"){var u=an(e);s=u.length}else ot&&on(e)&&(i=e.split(""));return t||(t=hr),bn(e,function(e,a,f){a=u?u[--s]:--s,n=o?(o=!1,i[a]):t.call(r,n,i[a],a,f)}),n}function Ln(e,t,n){return t=Tt(t,n),gn(e,function(e,n,r){return!t(e,n,r)})}function An(e){var t=-1,n=Array(e?e.length:0);return bn(e,function(e){var r=k(q()*(++t+1));n[t]=n[r],n[r]=e}),n}function On(e){var t=e?e.length:0;return typeof t=="number"?t:an(e).length}function Mn(e,t,n){var r;t=Tt(t,n);if(Xt(e)){var i=-1,s=e.length;while(++i<s)if(r=t(e[i],i,e))break}else bn(e,function(e,n,i){return!(r=t(e,n,i))});return!!r}function _n(e,t,n){var r=[];t=Tt(t,n),bn(e,function(e,n,i){r.push({criteria:t(e,n,i),index:n,value:e})});var i=r.length;r.sort(St);while(i--)r[i]=r[i].value;return r}function Dn(e){var t=e?e.length:0;return typeof t=="number"?ot&&on(e)?e.split(""):Ot(e):pn(e)}function Pn(e,t){var n=an(t);return gn(e,function(e){var r=n.length;while(r--){var i=e[n[r]]===t[n[r]];if(!i)break}return!!i})}function Hn(e){var t=-1,n=e?e.length:0,r=[];while(++t<n){var i=e[t];i&&r.push(i)}return r}function Bn(e){var t=-1,n=e?e.length:0,r=C.apply(i,arguments),s=wt(r,n),o=[];while(++t<n){var u=e[t];s(u)||o.push(u)}return o}function jn(e,t,n){if(e){var r=e.length;return t==null||n?e[0]:Ot(e,0,I(F(0,t),r))}}function Fn(e,t){var n=-1,r=e?e.length:0,i=[];while(++n<r){var s=e[n];Xt(s)?O.apply(i,t?s:Fn(s)):i.push(s)}return i}function In(e,t,n){var r=-1,i=e?e.length:0;if(typeof n=="number")r=(n<0?F(0,i+n):n||0)-1;else if(n)return r=$n(e,t),e[r]===t?r:-1;while(++r<i)if(e[r]===t)return r;return-1}function qn(e,t,n){if(!e)return[];var r=e.length;return t=t==null||n?1:t||0,Ot(e,0,I(F(0,r-t),r))}function Rn(e){var t=arguments,n=t.length,r={},i=[];return bn(e,function(e){if(In(i,e)<0){var s=n;while(--s)if(!(r[s]||(r[s]=wt(t[s])))(e))return;i.push(e)}}),i}function Un(e,t,n){if(e){var r=e.length;return t==null||n?e[r-1]:Ot(e,F(0,r-t))}}function zn(e,t,n){var r=e?e.length:0;typeof n=="number"&&(r=(n<0?F(0,r+n):I(n,r-1))+1);while(r--)if(e[r]===t)return r;return-1}function Wn(e,t){var n=-1,r=e?e.length:0,i={};while(++n<r){var s=e[n];t?i[s]=t[n]:i[s[0]]=s[1]}return i}function Xn(e,t,n){e=+e||0,n=+n||1,t==null&&(t=e,e=0);var r=-1,i=F(0,N((t-e)/n)),s=Array(i);while(++r<i)s[r]=e,e+=n;return s}function Vn(e,t,n){return Ot(e,t==null||n?1:F(0,t))}function $n(e,t,n,r){var i=0,s=e?e.length:i;n=n?Tt(n,r):hr,t=n(t);while(i<s){var o=i+s>>>1;n(e[o])<t?i=o+1:s=o}return i
  2. }function Jn(){return Kn(C.apply(i,arguments))}function Kn(e,t,n,r){var i=-1,s=e?e.length:0,o=[],u=o;typeof t=="function"&&(r=n,n=t,t=!1);var a=!t&&s>74;if(a)var f={};n&&(u=[],n=Tt(n,r));while(++i<s){var l=e[i],c=n?n(l,i,e):l;a&&(u=A.call(f,c+"")?f[c]:f[c]=[]);if(t?!i||u[u.length-1]!==c:In(u,c)<0)(n||a)&&u.push(c),o.push(l)}return o}function Qn(e){var t=-1,n=e?e.length:0,r=wt(arguments,1,20),i=[];while(++t<n){var s=e[t];r(s)||i.push(s)}return i}function Gn(e){var t=-1,n=e?xn(Nn(arguments,"length")):0,r=Array(n);while(++t<n)r[t]=Nn(arguments,t);return r}function Yn(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}}function Zn(e,t){return Z||D&&arguments.length>2?D.call.apply(D,arguments):xt(e,t,Ot(arguments,2))}function er(e){var t=arguments,n=t.length>1?0:(t=Ut(e),-1),r=t.length;while(++n<r){var i=t[n];e[i]=Zn(e[i],e)}return e}function tr(e,t){return xt(e,t,Ot(arguments,2))}function nr(){var e=arguments;return function(){var t=arguments,n=e.length;while(n--)t=[e[n].apply(this,t)];return t[0]}}function rr(e,t,n){function u(){o=null,n||(i=e.apply(s,r))}var r,i,s,o;return function(){var a=n&&!o;return r=arguments,s=this,clearTimeout(o),o=setTimeout(u,t),a&&(i=e.apply(s,r)),i}}function ir(e,n){var r=Ot(arguments,2);return setTimeout(function(){e.apply(t,r)},n)}function sr(e){var n=Ot(arguments,1);return setTimeout(function(){e.apply(t,n)},1)}function or(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return A.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}}function ur(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}}function ar(e){return xt(e,Ot(arguments,1))}function fr(e,t){function u(){o=new Date,s=null,r=e.apply(i,n)}var n,r,i,s,o=0;return function(){var a=new Date,f=t-(a-o);return n=arguments,i=this,f<=0?(clearTimeout(s),s=null,o=a,r=e.apply(i,n)):s||(s=setTimeout(u,f)),r}}function lr(e,t){return function(){var n=[e];return O.apply(n,arguments),t.apply(this,n)}}function cr(e){return e==null?"":(e+"").replace(E,kt)}function hr(e){return e}function pr(e){bn(Ut(e),function(t){var n=dt[t]=e[t];dt.prototype[t]=function(){var e=[this.__wrapped__];O.apply(e,arguments);var t=n.apply(dt,e);return new dt(t)}})}function dr(){return e._=f,this}function vr(e,t){return e==null&&t==null&&(t=1),e=+e||0,t==null&&(t=e,e=0),e+k(q()*((+t||0)-e+1))}function mr(e,t){var n=e?e[t]:null;return Yt(n)?e[t]():n}function gr(e,t,n){e||(e=""),n||(n={});var r,i,s=dt.templateSettings,o=0,u=n.interpolate||s.interpolate||w,a="__p += '",f=n.variable||s.variable,c=f,v=RegExp((n.escape||s.escape||w).source+"|"+u.source+"|"+(u===b?y:w).source+"|"+(n.evaluate||s.evaluate||w).source+"|$","g");e.replace(v,function(t,n,i,s,u,f){return i||(i=s),a+=e.slice(o,f).replace(S,Ct),n&&(a+="' +\n__e("+n+") +\n'"),u&&(a+="';\n"+u+";\n__p += '"),i&&(a+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),r||(r=u||l.test(n||i)),o=f+t.length,t}),a+="';\n";if(!c){f="obj";if(r)a="with ("+f+") {\n"+a+"\n}\n";else{var g=RegExp("(\\(\\s*)"+f+"\\."+f+"\\b","g");a=a.replace(m,"$&"+f+".").replace(g,"$1__d")}}a=(r?a.replace(h,""):a).replace(p,"$1").replace(d,"$1;"),a="function("+f+") {\n"+(c?"":f+" || ("+f+" = {});\n")+"var __t, __p = '', __e = _.escape"+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":(c?"":", __d = "+f+"."+f+" || "+f)+";\n")+a+"return __p\n}";var E=ft?"\n//@ sourceURL="+(n.sourceURL||"/lodash/template/source["+T++ +"]"):"";try{i=vt("_","return "+a+E)(dt)}catch(x){throw x.source=a,x}return t?i(t):(i.source=a,i)}function yr(e,t,n){e=+e||0;var r=-1,i=Array(e);while(++r<e)i[r]=t.call(n,r);return i}function br(e){return e==null?"":(e+"").replace(c,Mt)}function wr(e){return(e==null?"":e+"")+ ++o}function Er(e){return new dt(e)}function Sr(e,t){return t(e),e}function xr(){return this}function Tr(){return String(this.__wrapped__)}function Nr(){return this.__wrapped__}var n=typeof exports=="object"&&exports,r=typeof global=="object"&&global;r.global===r&&(e=r);var i=[],s=new function(){},o=0,u=s,a=30,f=e._,l=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,c=/&(?:amp|lt|gt|quot|#x27);/g,h=/\b__p \+= '';/g,p=/\b(__p \+=) '' \+/g,d=/(__e\(.*?\)|\b__t\)) \+\n'';/g,v=/\w*$/,m=/(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g,g=RegExp("^"+(s.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),y=/\$\{((?:(?=\\?)\\?[\s\S])*?)}/g,b=/<%=([\s\S]+?)%>/g,w=/($^)/,E=/[&<>"']/g,S=/['\n\r\t\u2028\u2029\\]/g,x=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T=0,N=Math.ceil,C=i.concat,k=Math.floor,L=g.test(L=Object.getPrototypeOf)&&L,A=s.hasOwnProperty,O=i.push,M=s.propertyIsEnumerable,_=s.toString,D=g.test(D=Ot.bind)&&D,P=g.test(P=Array.isArray)&&P,H=e.isFinite,B=e.isNaN,j=g.test(j=Object.keys)&&j,F=Math.max,I=Math.min,q=Math.random,R="[object Arguments]",U="[object Array]",z="[object Boolean]",W="[object Date]",X="[object Function]",V="[object Number]",$="[object Object]",J="[object RegExp]",K="[object String]",Q=!/1/.test(Function("1")),G=!!e.attachEvent,Y=D&&!/\n|true/.test(D+G),Z=D&&!Y,et=j&&(G||Y),tt,nt,rt=(rt={0:1,length:1},i.splice.call(rt,0,1),rt[0]),it=!0;(function(){function t(){this.x=1}var e=[];t.prototype={valueOf:1,y:1};for(var n in new t)e.push(n);for(n in arguments)it=!n;tt=!/valueOf/.test(e),nt=e[0]!="x"})(1);var st=!Dt(arguments),ot="x"[0]+Object("x")[0]!="xx";try{var ut=({toString:0}+"",_.call(document)==$)}catch(at){}try{var ft=(Function("//@")(),!G)}catch(at){}var lt={};lt[X]=!1,lt[R]=lt[U]=lt[z]=lt[W]=lt[V]=lt[$]=lt[J]=lt[K]=!0;var ct={};ct[U]=Array,ct[z]=Boolean,ct[W]=Date,ct[$]=Object,ct[V]=Number,ct[J]=RegExp,ct[K]=String;var ht={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,"undefined":!1},pt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};dt.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:b,variable:""};if(G||Y||!Q)vt=Function;var mt=gr("<% if (obj.useStrict) { %>'use strict';\n<% } %>var index, iteratee = <%= firstArg %>, result = <%= firstArg %>;\nif (!<%= firstArg %>) return result;\n<%= top %>;\n<% if (arrayLoop) { %>var length = iteratee.length; index = -1;\nif (typeof length == 'number') { <% if (noCharByIndex) { %>\n if (isString(iteratee)) {\n iteratee = iteratee.split('')\n } <% } %>\n while (++index < length) {\n <%= arrayLoop %>\n }\n}\nelse { <% } else if (noArgsEnum) { %>\n var length = iteratee.length; index = -1;\n if (length && isArguments(iteratee)) {\n while (++index < length) {\n index += '';\n <%= objectLoop %>\n }\n } else { <% } %> <% if (!hasDontEnumBug) { %>\n var skipProto = typeof iteratee == 'function' && \n propertyIsEnumerable.call(iteratee, 'prototype');\n <% } %> <% if (isKeysFast && useHas) { %>\n var ownIndex = -1,\n ownProps = objectTypes[typeof iteratee] ? nativeKeys(iteratee) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n <% if (!hasDontEnumBug) { %>if (!(skipProto && index == 'prototype')) {\n <% } %> <%= objectLoop %>\n <% if (!hasDontEnumBug) { %>}\n<% } %> } <% } else { %>\n for (index in iteratee) {<% if (!hasDontEnumBug || useHas) { %>\n if (<% if (!hasDontEnumBug) { %>!(skipProto && index == 'prototype')<% } if (!hasDontEnumBug && useHas) { %> && <% } if (useHas) { %>hasOwnProperty.call(iteratee, index)<% } %>) { <% } %>\n <%= objectLoop %>; <% if (!hasDontEnumBug || useHas) { %>\n }<% } %>\n } <% } %> <% if (hasDontEnumBug) { %>\n\n var ctor = iteratee.constructor;\n <% for (var k = 0; k < 7; k++) { %>\n index = '<%= shadowed[k] %>';\n if (<% if (shadowed[k] == 'constructor') { %>!(ctor && ctor.prototype === iteratee) && <% } %>hasOwnProperty.call(iteratee, index)) {\n <%= objectLoop %>\n } <% } %> <% } %> <% if (arrayLoop || noArgsEnum) { %>\n}<% } %>\n<%= bottom %>;\nreturn result"),gt={args:"object, source, guard",top:"for (var argsIndex = 1, argsLength = typeof guard == 'number' ? 2 : arguments.length; argsIndex < argsLength; argsIndex++) {\n if ((iteratee = arguments[argsIndex])) {",objectLoop:"result[index] = iteratee[index]",bottom:" }\n}"},yt={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)",arrayLoop:"if (callback(iteratee[index], index, collection) === false) return result",objectLoop:"if (callback(iteratee[index], index, collection) === false) return result"},bt={arrayLoop:null},_t=Nt(gt);st&&(Dt=function(e){return e?A.call(e,"callee"):!1});var Pt=Nt(yt,bt,{useHas:!1}),Ht=Nt(yt,bt),Ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},It=Wt(Ft),Rt=Nt(gt,{objectLoop:"if (result[index] == null) "+gt.objectLoop}),Xt=P||function(e){return _.call(e)==U};Yt(/x/)&&(Yt=function(e){return _.call(e)==X});var rn=L?function(e){if(!e||typeof e!="object")return!1;var t=e.valueOf,n=typeof t=="function"&&(n=L(t))&&L(n);return n?e==n||L(e)==n&&!Dt(e):Bt(e)}:Bt,an=j?function(e){return typeof e=="function"&&M.call(e,"prototype")?jt(e):Zt(e)?j(e):[]}:jt,bn=Nt(yt);dt.assign=_t,dt.bindAll=er,dt.chain=Er,dt.compact=Hn,dt.countBy=vn,dt.defaults=Rt,dt.difference=Bn,dt.filter=gn,dt.flatten=Fn,dt.forEach=bn,dt.forIn=Pt,dt.forOwn=Ht,dt.functions=Ut,dt.groupBy=wn,dt.initial=qn,dt.intersection=Rn,dt.invert=Wt,dt.invoke=En,dt.keys=an,dt.map=Sn,dt.max=xn,dt.merge=fn,dt.min=Tn,dt.object=Wn,dt.omit=ln,dt.pairs=cn,dt.pick=hn,dt.pluck=Nn,dt.range=Xn,dt.reject=Ln,dt.rest=Vn,dt.shuffle=An,dt.sortBy=_n,dt.tap=Sr,dt.times=yr,dt.toArray=Dn,dt.union=Jn,dt.uniq=Kn,dt.values=pn,dt.where=Pn,dt.without=Qn,dt.zip=Gn,dt.collect=Sn,dt.drop=Vn,dt.each=bn,dt.extend=_t,dt.methods=Ut,dt.select=gn,dt.tail=Vn,dt.unique=Kn,pr(dt),dt.after=Yn,dt.bind=Zn,dt.bindKey=tr,dt.clone=qt,dt.compose=nr,dt.contains=dn,dt.debounce=rr,dt.defer=sr,dt.delay=ir,dt.escape=cr,dt.every=mn,dt.find=yn,dt.has=zt,dt.identity=hr,dt.indexOf=In,dt.isArguments=Dt,dt.isArray=Xt,dt.isBoolean=Vt,dt.isDate=$t,dt.isElement=Jt,dt.isEmpty=Kt,dt.isEqual=Qt,dt.isFinite=Gt,dt.isFunction=Yt,dt.isNaN=en,dt.isNull=tn,dt.isNumber=nn,dt.isObject=Zt,dt.isPlainObject=rn,dt.isRegExp=sn,dt.isString=on,dt.isUndefined=un,dt.lastIndexOf=zn,dt.memoize=or,dt.mixin=pr,dt.noConflict=dr,dt.once=ur,dt.partial=ar,dt.random=vr,dt.reduce=Cn,dt.reduceRight=kn,dt.result=mr,dt.size=On,dt.some=Mn,dt.sortedIndex=$n,dt.template=gr,dt.throttle=fr,dt.unescape=br,dt.uniqueId=wr,dt.wrap=lr,dt.all=mn,dt.any=Mn,dt.detect=yn,dt.foldl=Cn,dt.foldr=kn,dt.include=dn,dt.inject=Cn,Ht(dt,function(e,t){dt.prototype[t]||(dt.prototype[t]=function(){var t=[this.__wrapped__];return O.apply(t,arguments),e.apply(dt,t)})}),dt.first=jn,dt.last=Un,dt.take=jn,dt.head=jn,Ht(dt,function(e,t){dt.prototype[t]||(dt.prototype[t]=function(t,n){var r=e(this.__wrapped__,t,n);return t==null||n?r:new dt(r)})}),dt.VERSION="1.0.0-rc.2",dt.prototype.chain=xr,dt.prototype.toString=Tr,dt.prototype.value=Nr,dt.prototype.valueOf=Nr,bn(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];dt.prototype[e]=function(){var e=this.__wrapped__;return t.apply(e,arguments),rt&&e.length===0&&delete e[0],this}}),bn(["concat","join","slice"],function(e){var t=i[e];dt.prototype[e]=function(){var e=this.__wrapped__,n=t.apply(e,arguments);return new dt(n)}}),dt._iteratorTemplate=mt,typeof define=="function"&&typeof define.amd=="object"&&define.amd?(e._=dt,define(function(){return dt})):n?typeof module=="object"&&module&&module.exports==n?(module.exports=dt)._=dt:n._=dt:e._=dt}(this);var Sylvester={version:"0.1.3",precision:1e-6};Matrix.prototype={e:function(e,t){return e<1||e>this.elements.length||t<1||t>this.elements[0].length?null:this.elements[e-1][t-1]},map:function(e){var t=[],n=this.elements.length,r=n,i,s,o=this.elements[0].length,u;do{i=r-n,s=o,t[i]=[];do u=o-s,t[i][u]=e(this.elements[i][u],i+1,u+1);while(--s)}while(--n);return Matrix.create(t)},multiply:function(e){if(!e.elements)return this.map(function(t){return t*e});var t=e.modulus?!0:!1,n=e.elements||e;typeof n[0][0]=="undefined"&&(n=Matrix.create(n).elements);if(!this.canMultiplyFromLeft(n))return null;var r=this.elements.length,i=r,s,o,u=n[0].length,a,f=this.elements[0].length,l=[],c,h,p;do{s=i-r,l[s]=[],o=u;do{a=u-o,c=0,h=f;do p=f-h,c+=this.elements[s][p]*n[p][a];while(--h);l[s][a]=c}while(--o)}while(--r);var n=Matrix.create(l);return t?n.col(1):n},x:function(e){return this.multiply(e)},canMultiplyFromLeft:function(e){var t=e.elements||e;return typeof t[0][0]=="undefined"&&(t=Matrix.create(t).elements),this.elements[0].length==t.length},setElements:function(e){var t,n=e.elements||e;if(typeof n[0][0]!="undefined"){var r=n.length,i=r,s,o,u;this.elements=[];do{t=i-r,s=n[t].length,o=s,this.elements[t]=[];do u=o-s,this.elements[t][u]=n[t][u];while(--s)}while(--r);return this}var a=n.length,f=a;this.elements=[];do t=f-a,this.elements.push([n[t]]);while(--a);return this}},Matrix.create=function(e){var t=new Matrix;return t.setElements(e)},$M=Matrix.create,$.fn.draghover=function(e){return this.each(function(){var e=$(),t=$(this);t.on("dragenter",function(n){e.size()===0&&t.trigger("draghoverstart"),e=e.add(n.target)}),t.on("dragleave",function(n){setTimeout(function(){e=e.not(n.target),e.size()===0&&t.trigger("draghoverend")},1)})})},function(e){if(!e.cssHooks)throw"jQuery 1.4.3+ is needed for this plugin to work";var t="",n="transform",r,i,o,u,a,f=n.charAt(0).toUpperCase()+n.slice(1),l=["Moz","Webkit","O","ms"],c=document.createElement("div");if(n in c.style)i=n,o=c.style.perspective!==undefined;else for(var h=0;h<l.length;h++){r=l[h]+f;if(r in c.style){i=r,l[h]==="Moz"&&(t="px"),l[h]+"Perspective"in c.style?o=!0:u=!0;break}}i||(a="filter"in c.style,i="filter"),c=null,e.support[n]=i;var p=i,d={rotateX:{defaultValue:0,matrix:function(e){return o?$M([[1,0,0,0],[0,Math.cos(e),Math.sin(-e),0],[0,Math.sin(e),Math.cos(e),0],[0,0,0,1]]):$M([[1,0,0],[0,1,0],[0,0,1]])}},rotateY:{defaultValue:0,matrix:function(e){return o?$M([[Math.cos(e),0,Math.sin(e),0],[0,1,0,0],[Math.sin(-e),0,Math.cos(e),0],[0,0,0,1]]):$M([[1,0,0],[0,1,0],[0,0,1]])}},rotateZ:{defaultValue:0,matrix:function(e){return o?$M([[Math.cos(e),Math.sin(-e),0,0],[Math.sin(e),Math.cos(e),0,0],[0,0,1,0],[0,0,0,1]]):$M([[Math.cos(e),Math.sin(-e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]])}},scale:{defaultValue:1,matrix:function(e){return o?$M([[e,0,0,0],[0,e,0,0],[0,0,e,0],[0,0,0,1]]):$M([[e,0,0],[0,e,0],[0,0,1]])}},translateX:{defaultValue:0,matrix:function(e){return o?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[e,0,0,1]]):$M([[1,0,0],[0,1,0],[e,0,1]])}},translateY:{defaultValue:0,matrix:function(e){return o?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,e,0,1]]):$M([[1,0,0],[0,1,0],[0,e,1]])}},translateZ:{defaultValue:0,matrix:function(e){return o?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,e,1]]):$M([[1,0,0],[0,1,0],[0,0,1]])}}},v=function(n){var r=e(n).data("transforms"),i;o?i=$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]):i=$M([[1,0,0],[0,1,0],[0,0,1]]);for(var f in d)i=i.x(d[f].matrix(r[f]||d[f].defaultValue));o?(s="matrix3d(",s+=i.e(1,1).toFixed(10)+","+i.e(1,2).toFixed(10)+","+i.e(1,3).toFixed(10)+","+i.e(1,4).toFixed(10)+",",s+=i.e(2,1).toFixed(10)+","+i.e(2,2).toFixed(10)+","+i.e(2,3).toFixed(10)+","+i.e(2,4).toFixed(10)+",",s+=i.e(3,1).toFixed(10)+","+i.e(3,2).toFixed(10)+","+i.e(3,3).toFixed(10)+","+i.e(3,4).toFixed(10)+",",s+=i.e(4,1).toFixed(10)+","+i.e(4,2).toFixed(10)+","+i.e(4,3).toFixed(10)+","+i.e(4,4).toFixed(10),s+=")"):u?(s="matrix(",s+=i.e(1,1).toFixed(10)+","+i.e(1,2).toFixed(10)+",",s+=i.e(2,1).toFixed(10)+","+i.e(2,2).toFixed(10)+",",s+=i.e(3,1).toFixed(10)+t+","+i.e(3,2).toFixed(10)+t,s+=")"):a&&(s="progid:DXImageTransform.Microsoft.",s+="Matrix(",s+="M11="+i.e(1,1).toFixed(10)+",",s+="M12="+i.e(1,2).toFixed(10)+",",s+="M21="+i.e(2,1).toFixed(10)+",",s+="M22="+i.e(2,2).toFixed(10)+",",s+="SizingMethod='auto expand'",s+=")",n.style.top=i.e(3,1),n.style.left=i.e(3,2)),n.style[p]=s},m=function(t){return e.fx.step[t]=function(n){e.cssHooks[t].set(n.elem,n.now+n.unit)},{get:function(n,r,i){var s=e(n).data("transforms");return s===undefined&&(s={},e(n).data("transforms",s)),s[t]||d[t].defaultValue},set:function(n,r){var i=e(n).data("transforms");i===undefined&&(i={});var s=d[t];typeof s.apply=="function"?i[t]=s.apply(i[t]||s.defaultValue,r):i[t]=r,e(n).data("transforms",i),v(n)}}};if(p)for(var g in d)e.cssHooks[g]=m(g),e.cssNumber[g]=!0}(jQuery);var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="",n,r,i,s,o,u,a,f=0;e=Base64._utf8_encode(e);while(f<e.length)n=e.charCodeAt(f++),r=e.charCodeAt(f++),i=e.charCodeAt(f++),s=n>>2,o=(n&3)<<4|r>>4,u=(r&15)<<2|i>>6,a=i&63,isNaN(r)?u=a=64:isNaN(i)&&(a=64),t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a);return t},decode:function(e){var t="",n,r,i,s,o,u,a,f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length)s=this._keyStr.indexOf(e.charAt(f++)),o=this._keyStr.indexOf(e.charAt(f++)),u=this._keyStr.indexOf(e.charAt(f++)),a=this._keyStr.indexOf(e.charAt(f++)),n=s<<2|o>>4,r=(o&15)<<4|u>>2,i=(u&3)<<6|a,t+=String.fromCharCode(n),u!=64&&(t+=String.fromCharCode(r)),a!=64&&(t+=String.fromCharCode(i));return t=Base64._utf8_decode(t),t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t},_utf8_decode:function(e){var t="",n=0,r=c1=c2=0;while(n<e.length)r=e.charCodeAt(n),r<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((r&31)<<6|c2&63),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63),n+=3);return t}};DroplrKit.prototype.isUploading=function(){return this.xhr!==null},DroplrKit.prototype.upload=function(file,date,authHeader){if(this.xhr!==null)return console.log("DroplrKit: Request in progress; ignoring request to upload"),!1;var xhr=new XMLHttpRequest,kit=this;return xhr.upload.onprogress=function(e){e.lengthComputable&&kit.progressCallback!==null&&kit.progressCallback(kit,e.loaded,e.total)},xhr.onreadystatechange=function(){switch(this.readyState){case 1:console.log("DroplrKit: Connection established..."),kit.connectCallback!==null&&(kit.xhr=this,kit.connectCallback(kit));break;case 4:this.responseText?console.log("DroplrKit: Response was "+this.status+" with content "+this.responseText):console.log("DroplrKit: Response was "+this.status+" with no content."),kit.xhr=null;if(this.status==201&&kit.successCallback!==null){var content=eval("("+this.responseText+")");kit.successCallback(kit,content)}else kit.failureCallback!==null&&kit.failureCallback(kit,this.status)}},console.log("target: "+this.uploadEndpoint),xhr.open("POST",this.uploadEndpoint,!0),xhr.setRequestHeader("Content-Type",file.type||"application/octet-stream"),xhr.setRequestHeader("x-droplr-filename",Base64.encode(file.name)),xhr.setRequestHeader("Authorization",authHeader),xhr.setRequestHeader("x-droplr-date",date),xhr.send(file),!0},DroplrKit.prototype.abort=function(){return this.xhr===null?!1:this.xhr},Droplr.notifications={showNotification:function(e){e=_.extend({dismissable:!0,message:"An error occurred.",timeout:5e3,level:"error",css:{}},e);var t=Droplr.TemplateCache.get("#notification"),n=t.render(e),r=$(".notification"),i=$($.parseHTML(n)).css(e.css);$("body").prepend(i),setTimeout(function(){i.addClass("show")},0),i.find(".close").click(_.bind(Droplr.notifications.removeNotification,this,i)),e.timeout&&setTimeout(_.bind(Droplr.notifications.removeNotification,this,i),e.timeout)},removeNotification:function(e,t){t&&t.preventDefault(),e.removeClass("show"),setTimeout(function(){e.remove()},300)}},$(function(){$(".notification").on("click",".close",function(e){var t=$(this).closest(".notification");Droplr.notifications.removeNotification(t,e)})}),function(){var e;e=jQuery,e.fn.extend({rotateText:function(t){var n,r,i,s;return s={rotationSpeed:2e3,animationSpeed:400,fadeDistance:10,words:[]},s=e.extend(s,t),r={position:"absolute",left:0,bottom:0},n={"-webkit-transition":"all "+s.animationSpeed+"ms","-moz-transition":"all "+s.animationSpeed+"ms","-ms-transition":"all "+s.animationSpeed+"ms","-o-transition":"all "+s.animationSpeed+"ms",transition:"all "+s.animationSpeed+"ms"},i=function(e){var t;return t=Math.floor(Math.random()*s.words.length),s.words[t]!==e?s.words[t]:i(e)},this.each(function(){var t,o,u,a,f;return u=e(this),t=e("<span>",{text:u.text(),"class":"current"}),o=e("<span>",{"class":"next"}),f=function(){var n;return n=e.extend({},r),t.removeAttr("style").css(r),o.removeAttr("style").css(e.extend(n,{bottom:s.fadeDistance*-1,opacity:0}))},a=function(){return t.css(n),o.css(n)},u.text("").css({position:"relative",display:"inline-block"}),f(),u.prepend(e("<span>",{text:t.text(),css:{visibility:"hidden"}})),u.append(t),u.append(o),o.on("webkitTransitionEnd transitionend MSTransitionEnd oTransitionEnd",function(){return t.text(o.text()),f()}),setInterval(function(){return a(),o.text(i(t.text())),t.css({opacity:0,bottom:s.fadeDistance*2}),o.css({opacity:1,bottom:0})},s.rotationSpeed)})}})}.call(this),function(){var e,t=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty,r=function(e,t){function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=function(e,t){var n,r;for(r in t)n=t[r],e[r]=n;return e},_.templateSettings={interpolate:/\{\{=(.+?)\}\}/g,evaluate:/\{\{(.+?)\}\}/g},Droplr.isProduction||(window._gaq=[]),e(Droplr,{showIntegrationModal:function(t){var n,r,i=this;return t.preventDefault(),n=$("#integrations"),r=e(_.clone(Droplr.modalOptions),{lightboxSpeed:0,overlaySpeed:0,modalCSS:{display:"block",position:"fixed",top:20,bottom:20,zIndex:1002},centered:!1,hideOnClose:!1,onLoad:function(){return $("body").css({overflow:"hidden"}),Droplr.setIntegrationTableScroll(n),n.css({opacity:1}),$(window).on("resize",_.bind(Droplr.setIntegrationTableScroll,i,n))},onClose:function(){return $("body").css({overflow:""}),n.css({opacity:"",display:"none",zIndex:-1})}}),n.lightbox_me(r)},setIntegrationTableScroll:function(e){var t,n,r;return t=e.find(".tbody-container"),n=parseInt(e.css("border-bottom-width"),10)*2,r=e.outerHeight()-n-t.position().top,e.find("th").eq(0).css({width:t.find("td").eq(0).outerWidth()}),e.find("th").eq(1).css({width:t.find("td").eq(1).outerWidth()}),e.find("th").eq(2).css({width:t.find("td").eq(2).outerWidth()}),t.css({height:r})},parseTwitterUrl:function(e,t){var n;return e.length>30&&(e=""+e.substr(0,29)+"..."),n="Just posted to @droplr: "+e,"https://twitter.com/share?url="+t+"&text="+n+"&related=droplr"},parseFacebookUrl:function(e,t){var n,r;return n=encodeURIComponent(e),r=encodeURIComponent(t),"http://www.facebook.com/sharer.php?u="+r+"&t="+n+"&q="+(new Date).getTime()},parseEmailUrl:function(e,t){var n,r;return r=encodeURIComponent("Check this out on Droplr"),n=encodeURIComponent(t),"mailto:?Subject="+r+"&body="+n},rotateTitleKeywords:function(){var e,t,n,r;return r=["images.","documents.","videos.","files.","code.","notes."],e=$("#current-drop-type"),t=$("#next-drop-type"),n=function(e){var t;return t=_.random(0,r.length-1),r[t]!==e?r[t]:n(e)},setInterval(function(){return e.addClass("transition"),t.addClass("transition"),setTimeout(function(){return t.text(n(t.text())),e.text(t.text()),t.removeClass("transition"),e.removeClass("transition")},500)},2e3)},trackPageview:function(e){return console.log("tracking page view for "+e),_gaq.push(["_trackPageview",e])},modalOptions:{overlayCSS:{opacity:0},centered:!0,overlaySpeed:200,lightboxSpeed:300}}),Droplr.dropZone=function(){function e(){this.$dropZone=$("#drop-zone"),this.$instructions=$("#drop-instructions"),this.$progress=$("#drop-progress"),this.$success=$("#drop-success")}return e.prototype.showInstructions=function(e){var t=this;return e&&e.preventDefault(),this.hideAll(function(){return t.$instructions.fadeIn(100)}),$("#upload-trigger").val(""),new Droplr.DragToUpload},e.prototype.showProgress=function(){var e=this;return this.hideAll(function(){return e.$progress.fadeIn(100)})},e.prototype.updateProgress=function(e){var t;return(t=this.$progressBar)==null&&(this.$progressBar=$("#show-progress")),this.$progressBar.animate({width:""+e+"%"},{duration:10})},e.prototype.showSuccess=function(e){var t=this;return this.drop=e,this.updateSocialLinks(),$("#upload-another").on("click",_.bind(this.showInstructions,this)),$("#delete-drop").on("click",_.bind(this.deleteDrop,this)),$("#new-drop-link").attr("href",this.drop.shortlink).text(this.drop.shortlink),this.hideAll(function(){return t.$success.fadeIn(100),t.showSocialIcons()})},e.prototype.showSocialIcons=function(){var e,t,n,r,i,s;e=$(".single-social-share"),s=[];for(t=r=0,i=e.length;r<i;t=++r)n=e[t],s.push(function(e,t){var n;return n=t*.1,$(e).css({"-webkit-animation":"success-share 0.4s "+n+"s forwards","-moz-animation":"success-share 0.4s "+n+"s forwards","-o-animation":"success-share 0.4s "+n+"s forwards","-ms-animation":"success-share 0.4s "+n+"s forwards",animation:"success-share 0.4s "+n+"s forwards"})}(n,t));return s},e.prototype.deleteDrop=function(e){e.preventDefault(),console.log("Prompting to delete drop: "+this.drop.shortlink);if(confirm("Are you sure you want to delete this drop?"))return this.drop["delete"](),this.showInstructions()},e.prototype.updateSocialLinks=function(){$("#twitter-share").attr("href",Droplr.parseTwitterUrl(this.drop.title,this.drop.shortlink)),$("#email-share").attr("href",Droplr.parseEmailUrl(this.drop.title,this.drop.shortlink)),$("#facebook-share").attr("href",Droplr.parseFacebookUrl(this.drop.title,this.drop.shortlink)),this.setupClickToCopy(),this.setupEmbed();if(Droplr.user.isLoggedIn==null)return this.showUnauthenticatedWarning()},e.prototype.setupClickToCopy=function(){var e,t;return e=$("#copy-share"),ZeroClipboard.setDefaults({moviePath:"https://d25ss6wjc6pfq2.cloudfront.net/assets/ZeroClipboard-c625ee33c0bfb7da173ce97928fa4d4f.swf",allowScriptAccess:"always",trustedDomains:["*"]}),e.attr("data-clipboard-text",this.drop.shortlink),t=new ZeroClipboard(e),t.on("complete",function(){return Droplr.notifications.showNotification({level:"success",message:"Link copied to clipboard."})}),t.on("noflash",function(){return e.closest("li").addClass("noflash")})},e.prototype.isFlashInstalled=function(){var e,t;try{return e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),t=typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object",e||t}catch(n){return navigator.mimeTypes["application/x-shockwave-flash"]!==void 0}},e.prototype.setupEmbed=function(){var e,t,n,r,i;return i=this.drop.type==="IMAGE"?"image":"file",r=$("#"+i+"-html-input-template").html(),t=$("#"+i+"-bbcode-input-template").html(),n=_.template(r,{shortLink:this.drop.shortlink}),e=_.template(t,{shortLink:this.drop.shortlink}),$("#embed-links").find("input").remove(),$("#html-input-container").append(n),$("#bbedit-input-container").append(e),$("#embed-links").find("input").on("click",function(){return $(this).select()}),$("#image-instructions")[i==="image"?"show":"hide"](),$("#file-instructions")[i==="file"?"show":"hide"]()},e.prototype.showUnauthenticatedWarning=function(){return $("#unauthenticated-warning").lightbox_me(Droplr.modalOptions)},e.prototype.hideAll=function(e){return this.$dropZone.children(":visible").fadeOut(100,e)},e}(),Droplr.droplrKit=new DroplrKit,e(Droplr.droplrKit,{uploadEndpoint:Droplr.endpoint,connectCallback:function(e,t){return console.log("Connected to server, uploading to "+e.uploadEndpoint),this.dropZone.showProgress()},progressCallback:function(e,t,n){var r;return r=t/n*100,this.dropZone.updateProgress(r),console.log(r)},successCallback:function(e,t){return this.dropZone.showSuccess(new Droplr.drop(t))},failureCallback:function(e,t,n){var r=this;return console.log(e,t),n==null&&(n="An error occurred when attempting to upload your file."),Droplr.notifications.showNotification({message:n}),setTimeout(function(){return r.dropZone.showInstructions()},2500)}}),Droplr.Uploaders=function(){function e(){this.processFile=t(this.processFile,this)}return e.prototype.processFile=function(e){var t,n;return e.stopPropagation(),t=e.dataTransfer?e.dataTransfer.files:e.target.files,t!==null&&t instanceof FileList&&t.length!==0?t.length>1?(n="You can only upload one file at a time.",Droplr.droplrKit.failureCallback("",null,n)):t[0].size===0?(n="You can't upload empty files or folders.",Droplr.droplrKit.failureCallback("",null,n)):t[0].size>Droplr.user.maxUploadSize*1024*1024?(n="Anonymous web uploads are limited to 50MB.",Droplr.droplrKit.failureCallback("",null,n)):(console.log(t),this.getAuthCode(t[0])):(n="This isn't a valid file for uploading.",Droplr.droplrKit.failureCallback("",null,n))},e.prototype.getAuthCode=function(e){var t,n,r=this;return console.log("authToken="+Droplr.user.authToken),n=(new Date).getTime(),t=$.ajax("/drops",{data:{content_type:e.type||"application/octet-stream",date:n,authenticity_token:Droplr.user.authToken},type:"POST"}),t.done(function(t){return Droplr.user.isLoggedIn=t.logged_in,t.logged_in==null&&r.noteAnonymousUpload(),Droplr.droplrKit.upload(e,n,t.header)}),t.fail(function(){var e;return e="An error on our end prevented your upload from completing :( We've been notified.",Droplr.notifications.showNotification({message:e,timeout:null})})},e.prototype.noteAnonymousUpload=function(){return console.log("hi"),$.ajax("/drops/anon_upload_complete",{data:{authenticity_token:Droplr.user.authToken},type:"POST"})},e}(),Droplr.ClickToUpload=function(e){function t(e){e.on("change",_.bind(this.processFile,this))}return r(t,e),t}(Droplr.Uploaders),Droplr.DragToUpload=function(e){function n(){this.removeOverlay=t(this.removeOverlay,this),this.noop=t(this.noop,this),this.handleDragLeave=t(this.handleDragLeave,this),this.handleDrop=t(this.handleDrop,this),this.handleDragOver=t(this.handleDragOver,this),this.checkBrowserCapabilities()}return r(n,e),n.prototype.checkBrowserCapabilities=function(){var e,t;return e=window.File&&window.FileList&&window.Blob&&window.FormData,e?(this.dropTarget=window,this.enableDropTarget()):(t="By upgrading to a <a href='http://google.com/chrome'>newer browser</a>, you'll be able to drag and drop files to upload them.",Droplr.notifications.showNotification({message:t,timeout:null}))},n.prototype.enableDropTarget=function(){return this.dropTarget.addEventListener("drop",this.handleDrop,!1),this.dropTarget.addEventListener("dragover",this.noop,!1),$(this.dropTarget).draghover().on({draghoverstart:this.handleDragOver,draghoverend:this.handleDragLeave}),console.log("Drag and drop enabled.")},n.prototype.disableDragDrop=function(){return this.dropTarget.removeEventListener("dragover",this.noop,!1),this.dropTarget.removeEventListener("drop",this.handleDrop,!1),$(this.dropTarget).off("draghoverstart draghoverend"),console.log("Drag and drop disabled.")},n.prototype.handleDragOver=function(e){var t,n=this;return e.preventDefault(),$("#drag-overlay").remove(),t='<style> #drag-overlay { -webkit-transition: opacity 0.25s; -ms-transition: opacity 0.25s; -moz-transition: opacity 0.25s; -o-transition: opacity 0.25s; transition: opacity 0.25s; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); opacity: 0; } #drag-message { -webkit-transition: all 0.25s; -ms-transition: all 0.25s; -moz-transition: all 0.25s; -o-transition: all 0.25s; transition: all 0.25s; font-family: "freight-sans-pro", helvetica, arial, sans-serif; position: fixed; width: 100%; top: 50px; font-size: 2rem; text-align: center; color: #ffffff; text-shadow: 0 1px rgba(0, 0, 0, 1.0); opacity: 0; -webkit-font-smoothing: antialiased; } #drag-overlay.show { opacity: 1; } #drag-message.show { top: 75px; opacity: 1; } </style> <div id="drag-overlay"> <span id="drag-message">Drop your file anywhere on this page to upload it.</span> </div>',this.$overlay=$("<div>",{html:t}),this.$overlay.appendTo($("body")),setTimeout(function(){return $("#drag-message").addClass("show"),$("#drag-overlay").addClass("show")},0)},n.prototype.handleDrop=function(e){return e.preventDefault(),this.disableDragDrop(),this.removeOverlay(),this.pr

Report this snippet  

You need to login to post a comment.