From bf5d9ecf0c9c6cd9f690b0f7f9cf7a1f3bca7942 Mon Sep 17 00:00:00 2001 From: Dharma Ferrari Date: Tue, 19 Feb 2013 16:16:23 +0100 Subject: [PATCH] Site updated at 2013-02-19 15:16:23 UTC --- atom.xml | 46 +- blog/2012/12/05/atk-backup-snippet/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- blog/2013/02/19/jquery-ctrl/index.html | 205 + blog/archives/index.html | 46 +- blog/categories/atk/atom.xml | 2 +- blog/categories/atk/index.html | 8 +- blog/categories/backup/atom.xml | 2 +- blog/categories/backup/index.html | 8 +- blog/categories/doctrine/atom.xml | 2 +- blog/categories/doctrine/index.html | 8 +- blog/categories/html5/atom.xml | 2 +- blog/categories/html5/index.html | 8 +- blog/categories/i18n/atom.xml | 2 +- blog/categories/i18n/index.html | 8 +- blog/categories/jquery/atom.xml | 46 +- blog/categories/jquery/index.html | 32 +- blog/categories/keyboard/atom.xml | 60 + blog/categories/keyboard/index.html | 135 + blog/categories/mobile/atom.xml | 2 +- blog/categories/mobile/index.html | 8 +- blog/categories/symfony1/atom.xml | 2 +- blog/categories/symfony1/index.html | 8 +- blog/categories/user-input/atom.xml | 60 + blog/categories/user-input/index.html | 135 + favicon.png | Bin 400 -> 4391 bytes index.html | 92 +- javascripts/ender.js | 34 +- javascripts/github.js | 55 +- javascripts/libs/ender.js | 4525 ++++++++++++----- javascripts/octopress.js | 1 + robots.txt | 8 +- sitemap.xml | 18 +- stylesheets/screen.css | 2 +- 35 files changed, 4080 insertions(+), 1496 deletions(-) create mode 100644 blog/2013/02/19/jquery-ctrl/index.html create mode 100644 blog/categories/keyboard/atom.xml create mode 100644 blog/categories/keyboard/index.html create mode 100644 blog/categories/user-input/atom.xml create mode 100644 blog/categories/user-input/index.html diff --git a/atom.xml b/atom.xml index 280a9ed..806bae8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Biki]]> - 2012-12-05T02:10:47+01:00 + 2013-02-19T16:11:50+01:00 http://basilico.github.com/ @@ -13,6 +13,50 @@ Octopress + + <![CDATA[Grabbing ctrl+input key with jQuery]]> + + 2013-02-19T12:00:00+01:00 + http://basilico.github.com/blog/2013/02/19/jquery-ctrl + Snippet usage

+ +
1
+2
+3
+
$.ctrl('S', function() {
+  //save
+});
+
+ + +

Snippet source code

+ +
plugin - jquery.ctrl.js
+
1
+2
+3
+4
+5
+6
+7
+8
+9
+
$.ctrl = function(key, callback, args) {
+  $(document).keydown(function(e) {
+    if(!args) args=[]; // IE barks when args is null
+    if(e.keyCode == key.charCodeAt(0) && e.ctrlKey) {
+      callback.apply(this, args);
+      return false;
+    }
+  });
+};
+
+ + + +]]>
+
+ <![CDATA[Registrare evento di scroll su dispositivi mobile]]> diff --git a/blog/2012/12/05/atk-backup-snippet/index.html b/blog/2012/12/05/atk-backup-snippet/index.html index f60cfec..4d6f9a9 100644 --- a/blog/2012/12/05/atk-backup-snippet/index.html +++ b/blog/2012/12/05/atk-backup-snippet/index.html @@ -322,7 +322,7 @@

Atk backup snippet

-