bespoke-jumpy
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "bespoke-jumpy", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"dependencies": { | ||
"bespoke.js": ">=0.3.0", | ||
"bespoke-convenient": "~0.1.0" | ||
"bespoke-convenient": "~0.2.1" | ||
} | ||
} |
/*! | ||
* bespoke-jumpy v0.1.0 | ||
* bespoke-jumpy v0.1.1 | ||
* https://github.com/joelpurra/bespoke-jumpy | ||
@@ -4,0 +4,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/*! bespoke-jumpy v0.1.0 © 2013 Joel Purra, Licensed MIT */ | ||
/*! bespoke-jumpy v0.1.1 © 2013 Joel Purra, Licensed MIT */ | ||
!function(a,b,c,d,e,f){"use strict";var g=c.builder(e),h={END:35,HOME:36},i=function(a){for(var b=a;b>9;)b-=48;return b},j=function(a){var b=a>=48&&57>=a||a>=96&&105>=a;return b},k={firstIndex:function(){var a=0;return a},lastIndex:function(){var a=Math.max(0,this.slides.length-1);return a},first:function(a){var b=this.firstIndex(),c=g.fire(this,"first",null,b,a)&&this.slide(b,a);return c},last:function(a){var b=this.lastIndex(),c=g.fire(this,"last",null,b,a)&&this.slide(b,a);return c}},l=function(b){var c=["firstIndex","lastIndex","first","last"],d={},e=function(){c.forEach(function(a){d[a]=b[a],b[a]=k[a].bind(b)})},f=function(a){var c,d,e=!1;return e=e||a.which===h.END&&g.fire(b,"end",a)&&!b.last(),e=e||a.which===h.HOME&&g.fire(b,"home",a)&&!b.first(),j(a.which)&&(c=i(a.which),d=(c-1+10)%10,e=e||g.fire(b,"jump",a,d)&&!b.slide(d)),e&&a.preventDefault(),!e},l=function(){a.addEventListener("keydown",f,!1)},m=function(){e(),l()};m()};if(d[e]!==f)throw g.generateErrorObject("The "+e+" plugin has already been loaded.");d[e]=l}(document,bespoke,bespoke.plugins.convenient,bespoke.plugins,"jumpy"); |
{ | ||
"name": "bespoke-jumpy", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Keyboard shortcuts to jump straight to a specific slide in bespoke.js", | ||
@@ -33,3 +33,3 @@ "homepage": "https://github.com/joelpurra/bespoke-jumpy", | ||
"bespoke": ">=0.3.0", | ||
"bespoke-convenient": "~0.1.0" | ||
"bespoke-convenient": "~0.2.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package